config

package
v1.3.1-0...-2eb6d4b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootStrapperInfo

type BootStrapperInfo struct {
	Host      string
	StartPort int
}

BootStrapperInfo defines the first stage gate info It is the first stage gate of security bootstrapping

type ConfigurationStruct

type ConfigurationStruct struct {
	LogLevel  string
	StageGate StageGateInfo
}

func (*ConfigurationStruct) EmptyWritablePtr

func (c *ConfigurationStruct) EmptyWritablePtr() interface{}

EmptyWritablePtr returns a pointer to a service-specific empty WritableInfo struct. It is used by the bootstrap to provide the appropriate structure to registry.Client's WatchForChanges().

func (*ConfigurationStruct) GetBootstrap

GetBootstrap returns the configuration elements required by the bootstrap. Currently, a copy of the configuration data is returned. This is intended to be temporary -- since ConfigurationStruct drives the configuration.yaml's structure -- until we can make backwards-breaking configuration.yaml changes (which would consolidate these fields into an bootstrapConfig.BootstrapConfiguration struct contained within ConfigurationStruct).

func (*ConfigurationStruct) GetDatabaseInfo

func (c *ConfigurationStruct) GetDatabaseInfo() map[string]bootstrapConfig.Database

GetDatabaseInfo returns a database information map.

func (*ConfigurationStruct) GetInsecureSecrets

func (c *ConfigurationStruct) GetInsecureSecrets() bootstrapConfig.InsecureSecrets

GetInsecureSecrets returns the service's InsecureSecrets.

func (*ConfigurationStruct) GetLogLevel

func (c *ConfigurationStruct) GetLogLevel() string

GetLogLevel returns the current ConfigurationStruct's log level.

func (*ConfigurationStruct) GetRegistryInfo

func (c *ConfigurationStruct) GetRegistryInfo() bootstrapConfig.RegistryInfo

GetRegistryInfo returns the RegistryInfo from the ConfigurationStruct.

func (*ConfigurationStruct) GetTelemetryInfo

func (c *ConfigurationStruct) GetTelemetryInfo() *bootstrapConfig.TelemetryInfo

GetTelemetryInfo returns the service's Telemetry settings of which this service doesn't have. I.e. service has no metrics

func (*ConfigurationStruct) GetWritablePtr

func (c *ConfigurationStruct) GetWritablePtr() any

GetWritablePtr returns pointer to the writable section Not needed for this service, so return nil

func (*ConfigurationStruct) UpdateFromRaw

func (c *ConfigurationStruct) UpdateFromRaw(rawConfig interface{}) bool

UpdateFromRaw converts configuration received from the registry to a service-specific configuration struct which is then used to overwrite the service's existing configuration struct.

func (*ConfigurationStruct) UpdateWritableFromRaw

func (c *ConfigurationStruct) UpdateWritableFromRaw(rawWritable interface{}) bool

UpdateWritableFromRaw converts configuration received from the registry to a service-specific WritableInfo struct which is then used to overwrite the service's existing configuration's WritableInfo struct.

type DatabaseInfo

type DatabaseInfo struct {
	Host      string
	Port      int
	ReadyPort int
}

DatabaseInfo defines the fields related to stage gating the database bootstrapping

type ReadyInfo

type ReadyInfo struct {
	ToRunPort int
}

ReadyInfo defines the ready stage gate info It is the last stage gate of security bootstrapping for Kong, and all other Edgex core services

type SecretStoreSetupInfo

type SecretStoreSetupInfo struct {
	Host   string
	Tokens TokensInfo
}

SecretStoreSetupInfo defines the fields related to stage gating the secretstore setup (formerly known as vault-worker) bootstrapping

type StageGateInfo

type StageGateInfo struct {
	BootStrapper     BootStrapperInfo
	Ready            ReadyInfo
	SecretStoreSetup SecretStoreSetupInfo
	Database         DatabaseInfo
	WaitFor          WaitForInfo
}

StageGateInfo defines the gate info for the security bootstrapper in different stages for services. From the YAML structure perspective, it is segmented in the way that environment variables are easier to read when they become all upper cases in the environment override.

type TokensInfo

type TokensInfo struct {
	ReadyPort int
}

TokensInfo defines the tokens ready stage gate info for the secretstore setup (formerly known as vault-worker)

type WaitForInfo

type WaitForInfo struct {
	Timeout       string
	RetryInterval string
}

WaitForInfo defines some fields related to waitFor subcommand of security-bootstrapper

Jump to

Keyboard shortcuts

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