data

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultKeyProvider is the standard with which keys and certificates get created in the Cloudogu EcoSystem.
	DefaultKeyProvider = "pkcs1v15"
)
View Source
const (

	// DoguLabelName is used to select a dogu pod by name.
	DoguLabelName = "dogu.name"
)

Variables

This section is empty.

Functions

func NewCreateLoadBalancerStep added in v0.16.0

func NewCreateLoadBalancerStep(config *appcontext.SetupJsonConfiguration, clientSet kubernetes.Interface, namespace string) *createLoadBalancerStep

NewCreateLoadBalancerStep creates the external loadbalancer service for the Cloudogu EcoSystem

func NewFQDNRetrieverStep added in v0.15.0

func NewFQDNRetrieverStep(config *appcontext.SetupJsonConfiguration, clientSet kubernetes.Interface, namespace string) *fqdnRetrieverStep

NewFQDNRetrieverStep creates a new setup step sets the FQDN

func NewGenerateSSLStep

func NewGenerateSSLStep(config *appcontext.SetupJsonConfiguration) *generateSSLStep

NewGenerateSSLStep creates a new setup step which on generates ssl certificates

func NewInstanceSecretValidatorStep

func NewInstanceSecretValidatorStep(clientSet kubernetes.Interface, targetNamespace string) *instanceSecretValidatorStep

NewInstanceSecretValidatorStep creates a new object of type instanceSecretValidatorStep.

func NewStringDataConfigurationWriter added in v0.5.0

func NewStringDataConfigurationWriter() *stringDataConfigurationWriter

NewStringDataConfigurationWriter creates a new instance of a map string data configuration write used for registry config encrypted

func NewWriteAdminDataStep

func NewWriteAdminDataStep(writer RegistryWriter, configuration *appcontext.SetupJsonConfiguration) *writeAdminDataStep

NewWriteAdminDataStep create a new setup step which writes the admin data into the registry.

func NewWriteDoguDataStep

func NewWriteDoguDataStep(writer RegistryWriter, configuration *appcontext.SetupJsonConfiguration) *writeDoguDataStep

NewWriteDoguDataStep create a new setup step which writes the dogu data into the registry.

func NewWriteLdapDataStep

func NewWriteLdapDataStep(writer RegistryWriter, configuration *appcontext.SetupJsonConfiguration) *writeLdapDataStep

NewWriteLdapDataStep create a new setup step which writes the ldap configuration into the registry.

func NewWriteNamingDataStep

func NewWriteNamingDataStep(writer RegistryWriter, configuration *appcontext.SetupJsonConfiguration, clientSet kubernetes.Interface, namespace string) *writeNamingDataStep

NewWriteNamingDataStep create a new setup step which writes the naming data into the registry.

func NewWriteRegistryConfigDataStep

func NewWriteRegistryConfigDataStep(writer RegistryWriter, configuration *appcontext.SetupJsonConfiguration) *writeRegistryConfigDataStep

NewWriteRegistryConfigDataStep create a new setup step which writes the registry config configuration into the registry.

func NewWriteRegistryConfigEncryptedStep added in v0.5.0

func NewWriteRegistryConfigEncryptedStep(configuration *appcontext.SetupJsonConfiguration, clientSet kubernetes.Interface, namespace string) *writeRegistryConfigEncryptedStep

NewWriteRegistryConfigEncryptedStep create a new setup step which writes the registry config encrypted configuration into the cluster.

Types

type KeyProviderSetterStep

type KeyProviderSetterStep struct {
	Writer      RegistryWriter
	KeyProvider string
}

KeyProviderSetterStep writes the key provider in the registry

func NewKeyProviderStep

func NewKeyProviderStep(writer RegistryWriter, keyProvider string) *KeyProviderSetterStep

NewKeyProviderStep create a new setup step which on sets the key provider

func (*KeyProviderSetterStep) GetStepDescription

func (kps *KeyProviderSetterStep) GetStepDescription() string

GetStepDescription return the human-readable description of the step

func (*KeyProviderSetterStep) PerformSetupStep

func (kps *KeyProviderSetterStep) PerformSetupStep(context.Context) error

PerformSetupStep sets the key provider in the global config

type MapWriter added in v0.5.0

type MapWriter interface {
	WriteConfigToStringDataMap(registryConfig appcontext.CustomKeyValue) (map[string]map[string]string, error)
}

MapWriter is responsible to write entries into a map[string]map[string]string{}.

type RegistryConfigurationWriter added in v0.5.0

type RegistryConfigurationWriter struct {
	Registry registry.Registry
}

RegistryConfigurationWriter writes a configuration into the registry.

func NewRegistryConfigurationWriter added in v0.5.0

func NewRegistryConfigurationWriter(registry registry.Registry) *RegistryConfigurationWriter

NewRegistryConfigurationWriter creates a new configuration writer.

func (*RegistryConfigurationWriter) WriteConfigToRegistry added in v0.5.0

func (gcw *RegistryConfigurationWriter) WriteConfigToRegistry(registryConfig appcontext.CustomKeyValue) error

WriteConfigToRegistry write the given registry config to the registry

type RegistryWriter

type RegistryWriter interface {
	WriteConfigToRegistry(registryConfig appcontext.CustomKeyValue) error
}

RegistryWriter is responsible to write entries into the registry.

type SSLGenerator

type SSLGenerator interface {
	GenerateSelfSignedCert(fqdn string, domain string, certExpireDays int, country string,
		province string, locality string, altDNSNames []string) (string, string, error)
}

SSLGenerator is used to generate a self-signed certificate for a specific fqdn and domain

Jump to

Keyboard shortcuts

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