Documentation ¶
Index ¶
- type BootStrapperInfo
- type ConfigurationStruct
- func (c *ConfigurationStruct) EmptyWritablePtr() interface{}
- func (c *ConfigurationStruct) GetBootstrap() bootstrapConfig.BootstrapConfiguration
- func (c *ConfigurationStruct) GetDatabaseInfo() map[string]bootstrapConfig.Database
- func (c *ConfigurationStruct) GetInsecureSecrets() bootstrapConfig.InsecureSecrets
- func (c *ConfigurationStruct) GetLogLevel() string
- func (c *ConfigurationStruct) GetRegistryInfo() bootstrapConfig.RegistryInfo
- func (c *ConfigurationStruct) GetTelemetryInfo() *bootstrapConfig.TelemetryInfo
- func (c *ConfigurationStruct) GetWritablePtr() any
- func (c *ConfigurationStruct) UpdateFromRaw(rawConfig interface{}) bool
- func (c *ConfigurationStruct) UpdateWritableFromRaw(rawWritable interface{}) bool
- type DatabaseInfo
- type ReadyInfo
- type SecretStoreSetupInfo
- type StageGateInfo
- type TokensInfo
- type WaitForInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootStrapperInfo ¶
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 ¶
func (c *ConfigurationStruct) GetBootstrap() bootstrapConfig.BootstrapConfiguration
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 ¶
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 ¶
WaitForInfo defines some fields related to waitFor subcommand of security-bootstrapper