server

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeP11toPB added in v0.7.0

func AttributeP11toPB(attr uint) padlockpb.AttributeType

AttributeP11toPB converts mechanism enums

func AttributePBtoP11 added in v0.7.0

func AttributePBtoP11(attr padlockpb.AttributeType) uint

AttributePBtoP11 converts attribute enums

func AttributesPBtoP11 added in v0.7.2

func AttributesPBtoP11(attrs []*padlockpb.Attribute) []*pkcs11.Attribute

AttributesPBtoP11 converts multiple attributes to enums

func MechanismP11toPB added in v0.5.0

func MechanismP11toPB(mech uint) padlockpb.MechanismType

MechanismP11toPB converts mechanism enums

func MechanismPBtoP11 added in v0.5.0

func MechanismPBtoP11(mech *padlockpb.Mechanism) *pkcs11.Mechanism

MechanismPBtoP11 converts a mechanism

func MechanismTypePBtoP11 added in v0.7.2

func MechanismTypePBtoP11(mech padlockpb.MechanismType) uint

MechanismTypePBtoP11 converts mechanism enums

func MechanismsPBtoP11 added in v0.7.2

func MechanismsPBtoP11(mechs []*padlockpb.Mechanism) []*pkcs11.Mechanism

MechanismsPBtoP11 converts multiple mechanisms

func Serve

func Serve(cfg Config) error

Serve creates a new server handle and starts serving traffic

Types

type Config

type Config struct {
	Address  string   `json:"address"`
	Port     uint16   `json:"port"`
	CertFile string   `json:"cert_file"`
	KeyFile  string   `json:"key_file"`
	CAFiles  []string `json:"ca_files"`
	FS       fs.FS    `json:"-"`
}

Config is the config for the server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL