Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate []byte
Certificate represents the certificate in the ecosystem certificate secret.
type CertificateKey ¶
type CertificateKey []byte
CertificateKey represents the key in the ecosystem certificate secret.
type Change ¶
type Change struct {
ConfigChange
SecretChange
}
Change represents a change request for fqdn and certificate.
type ConfigChange ¶
ConfigChange represents the fqdn and certificate type that should be changed.
type SecretChange ¶
type SecretChange struct {
Certificate
CertificateKey
}
SecretChange represents a change of the certificate and key in the ecosystem certificate secret.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the service that handles the fqdn change.
func NewService ¶
func NewService(configService configGetter, globalConfigRepository globalConfigRepository, configMapRepository configMapRepository, secretRepository secretRepository) *Service
NewService creates a new instance of the fqdn change service.
func (*Service) ChangeFQDN ¶
ChangeFQDN changes the fqdn and certificate of the importing system by taking over the configuration of the exporter. It creates a backup of the fqdn and certificate before the change and restores it if the change fails.