fqdn

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

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

type ConfigChange struct {
	FQDN             string
	CertType         string
	AlternativeFQDNs string
}

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

func (s *Service) ChangeFQDN(ctx context.Context) (err error)

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.

Jump to

Keyboard shortcuts

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