config

package
v1.3.1-dev.18.0...-398431f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationStruct

type ConfigurationStruct struct {
	LogLevel         string
	SecretStore      SecretStoreInfo
	Databases        map[string]Database
	KongAdmin        KongAdminInfo
	SecureMessageBus SecureMessageBusInfo
}

func (*ConfigurationStruct) EmptyWritablePtr

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

EmptyWritablePtr returns a pointer to a service-specific empty WritableInfo struct. Not needed for this service, so return nil

func (*ConfigurationStruct) GetBootstrap

GetBootstrap returns the configuration elements required by the bootstrap. Not needed for this service, so return empty struct

func (*ConfigurationStruct) GetDatabaseInfo

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

GetDatabaseInfo returns a database information map. Not needed for this service, so return nil

func (*ConfigurationStruct) GetInsecureSecrets

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

GetInsecureSecrets returns the service's InsecureSecrets Not used for this service, so return nil

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. Not needed for this service, so return empty struct

func (*ConfigurationStruct) UpdateFromRaw

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

UpdateFromRaw converts configuration received from the registry to a service-specific configuration struct Not needed for this service, so always return false

func (*ConfigurationStruct) UpdateWritableFromRaw

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

UpdateWritableFromRaw converts configuration received from the registry to a service-specific WritableInfo struct Not needed for this service, so always return false

type Database

type Database struct {
	Username string
	Service  string
}

type KongAdminInfo

type KongAdminInfo struct {
	ConfigTemplatePath string
	ConfigFilePath     string
	ConfigJWTPath      string
	ConfigJWTDuration  string
}

type SecretStoreInfo

type SecretStoreInfo struct {
	Type                        string
	Protocol                    string
	Host                        string
	Port                        int
	ServerName                  string
	CertPath                    string
	CaFilePath                  string
	CertFilePath                string
	KeyFilePath                 string
	TokenFolderPath             string
	TokenFile                   string
	VaultSecretShares           int
	VaultSecretThreshold        int
	TokenProvider               string
	TokenProviderArgs           []string
	TokenProviderType           string
	TokenProviderAdminTokenPath string
	PasswordProvider            string
	PasswordProviderArgs        []string
	RevokeRootTokens            bool
	ConsulSecretsAdminTokenPath string
}

func (SecretStoreInfo) GetBaseURL

func (s SecretStoreInfo) GetBaseURL() string

GetBaseURL builds and returns the base URL for the SecretStore service

type SecureMessageBusInfo

type SecureMessageBusInfo struct {
	Type             string
	KuiperConfigPath string
}

Jump to

Keyboard shortcuts

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