service

package
v0.0.0-...-26d813d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 19 Imported by: 11

Documentation

Index

Constants

View Source
const (
	KeyTypeForPCKS1 = "PKCS#1"
	KeyTypeForPCKS8 = "PKCS#8"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateServiceConfig

type CertificateServiceConfig struct {
	DomainCertValue *atomic.Value
	DomainKey       *rsa.PrivateKey
}

type ConfigServiceConfig

type ConfigServiceConfig struct {
	DomainID     string
	DomainKey    *rsa.PrivateKey
	Driver       string
	DisableCache bool
	KubeClient   kubernetes.Interface
}

type ICertificateService

type ICertificateService interface {
	// ValidateGenerateKeyCertsRequest check request.
	ValidateGenerateKeyCertsRequest(ctx context.Context, request *confmanager.GenerateKeyCertsRequest) *errorcode.Errs
	// GenerateKeyCerts create a pair of x509 key and cert with domain ca cert.
	GenerateKeyCerts(context.Context, *confmanager.GenerateKeyCertsRequest) *confmanager.GenerateKeyCertsResponse
}

ICertificateService is service which manager x509 keys and certificates. It can be used by grpc-mtls/https/process-call.

func NewCertificateService

func NewCertificateService(conf *CertificateServiceConfig) ICertificateService

Jump to

Keyboard shortcuts

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