grpc

package
v2.16.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateAuthorityServer

type CertificateAuthorityServer struct {
	pb.UnimplementedCertificateAuthorityServer
	// contains filtered or unexported fields
}

CertificateAuthorityServer handles incoming requests.

func NewCertificateAuthorityServer

func NewCertificateAuthorityServer(ownerClaim string, hubID string, signerConfig SignerConfig, store store.Store, fileWatcher *fsnotify.Watcher, logger log.Logger) (*CertificateAuthorityServer, error)

func (*CertificateAuthorityServer) Close added in v2.11.0

func (s *CertificateAuthorityServer) Close()

func (*CertificateAuthorityServer) DeleteSigningRecords added in v2.7.18

func (*CertificateAuthorityServer) GetSigner added in v2.11.0

func (s *CertificateAuthorityServer) GetSigner() *Signer

func (*CertificateAuthorityServer) GetSigningRecords added in v2.7.18

func (*CertificateAuthorityServer) SignCertificate

func (*CertificateAuthorityServer) SignIdentityCertificate

type Config

type Config = server.Config

type Service

type Service struct {
	*server.Server
}

func New

func New(config Config, clientApplicationServer *CertificateAuthorityServer, validator *validator.Validator, fileWatcher *fsnotify.Watcher, logger log.Logger, tracerProvider trace.TracerProvider) (*Service, error)

type Signer added in v2.11.0

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

func NewSigner added in v2.11.0

func NewSigner(ownerClaim string, hubID string, signerConfig SignerConfig) (*Signer, error)

func (*Signer) Sign added in v2.11.0

func (s *Signer) Sign(ctx context.Context, csr []byte) ([]byte, *pb.SigningRecord, error)

func (*Signer) SignIdentityCSR added in v2.11.0

func (s *Signer) SignIdentityCSR(ctx context.Context, csr []byte) ([]byte, *pb.SigningRecord, error)

type SignerConfig

type SignerConfig struct {
	CAPool    interface{}         `yaml:"caPool" json:"caPool" description:"file path to the root certificates in PEM format"`
	KeyFile   urischeme.URIScheme `yaml:"keyFile" json:"keyFile" description:"file name of CA private key in PEM format"`
	CertFile  urischeme.URIScheme `yaml:"certFile" json:"certFile" description:"file name of CA certificate in PEM format"`
	ValidFrom string              `yaml:"validFrom" json:"validFrom" description:"format https://github.com/karrick/tparse"`
	ExpiresIn time.Duration       `yaml:"expiresIn" json:"expiresIn"`
	// contains filtered or unexported fields
}

func (*SignerConfig) String added in v2.11.0

func (c *SignerConfig) String() string

func (*SignerConfig) Validate

func (c *SignerConfig) Validate() error

Jump to

Keyboard shortcuts

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