Documentation ¶
Index ¶
Constants ¶
View Source
const ( CertificateListAPIEndpoint string = "/apis/giantswarm.io/v1/certificates" CertificateWatchAPIEndpoint string = "/apis/giantswarm.io/v1/watch/certificates" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct { // Dependencies. CAService *ca.Service Logger micrologger.Logger K8sClient kubernetes.Interface VaultClient *vaultapi.Client // Settings. Flag *flag.Flag Viper *viper.Viper }
Config represents the configuration used to create a Crt service.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig provides a default configuration to create a new create service by best effort.
type Service ¶
type Service struct { Config // contains filtered or unexported fields }
Service implements the Crt service interface.
func (*Service) Boot ¶
func (s *Service) Boot()
Boot starts the service and implements the watch for the certificate TPR.
func (*Service) CreateCertificate ¶
CreateCertificate saves the certificate as a k8s secret.
func (*Service) DeleteCertificate ¶
func (s *Service) DeleteCertificate(cert certificatetpr.Spec) error
DeleteCertificate deletes the k8s secret that stores the certificate.
Click to show internal directories.
Click to hide internal directories.