gen

package
v1.13.13 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MPL-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalGenerator

type LocalGenerator struct {
	// contains filtered or unexported fields
}

LocalGenerator represents the OS identity generator.

func NewLocalGenerator

func NewLocalGenerator(caKey, caCrt []byte) (g *LocalGenerator, err error)

NewLocalGenerator initializes a LocalGenerator.

func (*LocalGenerator) Identity

func (g *LocalGenerator) Identity(csr *x509.CertificateSigningRequest) (ca, crt []byte, err error)

Identity creates an identity certificate using a local root CA.

type RemoteGenerator

type RemoteGenerator struct {
	// contains filtered or unexported fields
}

RemoteGenerator represents the OS identity generator.

func NewRemoteGenerator

func NewRemoteGenerator(token string, endpoints []string, acceptedCAs []*x509.PEMEncodedCertificate) (g *RemoteGenerator, err error)

NewRemoteGenerator initializes a RemoteGenerator with a preconfigured grpc.ClientConn.

func (*RemoteGenerator) Close

func (g *RemoteGenerator) Close() error

Close closes the gRPC client connection.

func (*RemoteGenerator) Identity

func (g *RemoteGenerator) Identity(csr *x509.CertificateSigningRequest) (ca, crt []byte, err error)

Identity creates an identity certificate via the security API.

func (*RemoteGenerator) IdentityContext

func (g *RemoteGenerator) IdentityContext(ctx context.Context, csr *x509.CertificateSigningRequest) (ca, crt []byte, err error)

IdentityContext creates an identity certificate via the security API.

Jump to

Keyboard shortcuts

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