Documentation ¶
Index ¶
- func ClientConfig(c, caCert *x509.Certificate, key *ecdsa.PrivateKey) *tls.Config
- func ServerConfig(c, caCert *x509.Certificate, key *ecdsa.PrivateKey) *tls.Config
- type CryptoUnit
- func (cu *CryptoUnit) CaCertificate() *x509.Certificate
- func (cu *CryptoUnit) Certificate() *x509.Certificate
- func (cu *CryptoUnit) DecodePublicKey(key []byte) (*ecdsa.PublicKey, error)
- func (cu *CryptoUnit) EncodePublicKey() ([]byte, error)
- func (cu *CryptoUnit) PrivateKey() *ecdsa.PrivateKey
- func (cu *CryptoUnit) PublicKey() *ecdsa.PublicKey
- func (cu *CryptoUnit) SaveState() error
- type CryptoUnitConfig
- type DirectoryGRPCClient
- type DirectoryServerConn
- type PolicyStoreConn
- type PolicyStoreGRPCClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientConfig ¶
func ClientConfig(c, caCert *x509.Certificate, key *ecdsa.PrivateKey) *tls.Config
func ServerConfig ¶
func ServerConfig(c, caCert *x509.Certificate, key *ecdsa.PrivateKey) *tls.Config
Types ¶
type CryptoUnit ¶
type CryptoUnit struct {
// contains filtered or unexported fields
}
func LoadCu ¶
func LoadCu(path string) (*CryptoUnit, error)
func NewCu ¶
func NewCu(path string, config *CryptoUnitConfig) (*CryptoUnit, error)
func (*CryptoUnit) CaCertificate ¶
func (cu *CryptoUnit) CaCertificate() *x509.Certificate
func (*CryptoUnit) Certificate ¶
func (cu *CryptoUnit) Certificate() *x509.Certificate
func (*CryptoUnit) DecodePublicKey ¶
func (cu *CryptoUnit) DecodePublicKey(key []byte) (*ecdsa.PublicKey, error)
func (*CryptoUnit) EncodePublicKey ¶
func (cu *CryptoUnit) EncodePublicKey() ([]byte, error)
func (*CryptoUnit) PrivateKey ¶
func (cu *CryptoUnit) PrivateKey() *ecdsa.PrivateKey
func (*CryptoUnit) PublicKey ¶
func (cu *CryptoUnit) PublicKey() *ecdsa.PublicKey
func (*CryptoUnit) SaveState ¶
func (cu *CryptoUnit) SaveState() error
type CryptoUnitConfig ¶
type DirectoryGRPCClient ¶
type DirectoryGRPCClient struct { pb.DirectoryServerClient // contains filtered or unexported fields }
func NewDirectoryServerGRPCClient ¶
func NewDirectoryServerGRPCClient(cert, caCert *x509.Certificate, priv *ecdsa.PrivateKey) (*DirectoryGRPCClient, error)
func (*DirectoryGRPCClient) Dial ¶
func (c *DirectoryGRPCClient) Dial(addr string) (*DirectoryServerConn, error)
type DirectoryServerConn ¶
type DirectoryServerConn struct { pb.DirectoryServerClient // contains filtered or unexported fields }
func (*DirectoryServerConn) CloseConn ¶
func (c *DirectoryServerConn) CloseConn()
type PolicyStoreConn ¶
type PolicyStoreConn struct { pb.PolicyStoreClient // contains filtered or unexported fields }
func (*PolicyStoreConn) CloseConn ¶
func (c *PolicyStoreConn) CloseConn()
type PolicyStoreGRPCClient ¶
type PolicyStoreGRPCClient struct { pb.PolicyStoreClient // contains filtered or unexported fields }
func NewPolicyStoreClient ¶
func NewPolicyStoreClient(cert, caCert *x509.Certificate, priv *ecdsa.PrivateKey) (*PolicyStoreGRPCClient, error)
func (*PolicyStoreGRPCClient) Dial ¶
func (c *PolicyStoreGRPCClient) Dial(addr string) (*PolicyStoreConn, error)
Click to show internal directories.
Click to hide internal directories.