Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalGenerator ¶ added in v0.3.0
type LocalGenerator struct {
// contains filtered or unexported fields
}
LocalGenerator represents the OS identity generator.
func NewLocalGenerator ¶ added in v0.3.0
func NewLocalGenerator(caKey, caCrt []byte) (g *LocalGenerator, err error)
NewLocalGenerator initializes a LocalGenerator.
func (*LocalGenerator) Identity ¶ added in v0.3.0
func (g *LocalGenerator) Identity(csr *x509.CertificateSigningRequest) (ca, crt []byte, err error)
Identity creates an identity certificate using a local root CA.
type RemoteGenerator ¶ added in v0.3.0
type RemoteGenerator struct {
// contains filtered or unexported fields
}
RemoteGenerator represents the OS identity generator.
func NewRemoteGenerator ¶ added in v0.3.0
func NewRemoteGenerator(token string, endpoints []string, port int) (g *RemoteGenerator, err error)
NewRemoteGenerator initializes a RemoteGenerator with a preconfigured grpc.ClientConn.
func (*RemoteGenerator) Certificate ¶ added in v0.3.0
func (g *RemoteGenerator) Certificate(in *securityapi.CertificateRequest) (resp *securityapi.CertificateResponse, err error)
Certificate implements the securityapi.SecurityClient interface.
func (*RemoteGenerator) Close ¶ added in v0.3.0
func (g *RemoteGenerator) Close() error
Close closes the gRPC client connection.
func (*RemoteGenerator) Identity ¶ added in v0.3.0
func (g *RemoteGenerator) Identity(csr *x509.CertificateSigningRequest) (ca, crt []byte, err error)
Identity creates an identity certificate via the security API.
Click to show internal directories.
Click to hide internal directories.