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
type IConfigService ¶
type IConfigService interface { CreateConfig(context.Context, *confmanager.CreateConfigRequest) *confmanager.CreateConfigResponse QueryConfig(context.Context, *confmanager.QueryConfigRequest) *confmanager.QueryConfigResponse UpdateConfig(context.Context, *confmanager.UpdateConfigRequest) *confmanager.UpdateConfigResponse DeleteConfig(context.Context, *confmanager.DeleteConfigRequest) *confmanager.DeleteConfigResponse BatchQueryConfig(context.Context, *confmanager.BatchQueryConfigRequest) *confmanager.BatchQueryConfigResponse }
IConfigService manager configs.
func NewConfigService ¶
func NewConfigService(ctx context.Context, conf *ConfigServiceConfig) (IConfigService, error)
Click to show internal directories.
Click to hide internal directories.