grpc

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 24 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 *mongodb.Store, logger log.Logger) (*CertificateAuthorityServer, error)

func (*CertificateAuthorityServer) DeleteSigningRecords added in v2.7.18

func (*CertificateAuthorityServer) GetSigningRecords added in v2.7.18

func (*CertificateAuthorityServer) SignCertificate

func (*CertificateAuthorityServer) SignIdentityCertificate

type CertificateSigner

type CertificateSigner interface {
	// csr is encoded by PEM and returns PEM
	Sign(ctx context.Context, csr []byte) ([]byte, error)
}

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 SignerConfig

type SignerConfig struct {
	KeyFile   string        `yaml:"keyFile" json:"keyFile" description:"file name of CA private key in PEM format"`
	CertFile  string        `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"`
}

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