config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvironmentTypeLocal = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIEndpointsConfig

type APIEndpointsConfig struct {
	ComputeEndpoint      string
	NetworkEndpoint      string
	LoadBalancerEndpoint string
	IdentityEndpoint     string
	BlockStorageEndpoint string
	EnvoyEndpoint        string
}

type CloudflareConfig

type CloudflareConfig struct {
	AuthToken string
	ZoneID    string
	Domain    string
}

type IConfigureManager

type IConfigureManager interface {
	GetWebConfig() WebConfig
	GetMysqlDBConfig() MysqlDBConfig
	GetCloudflareConfig() CloudflareConfig
	GetImageRefConfig() ImageRef
	GetPublicNetworkIDConfig() PublicNetworkID
	GetLanguageConfig() LanguageConfig
	GetEndpointsConfig() APIEndpointsConfig
	GetOpenStackApiConfig() OpenStackApiConfig
	GetVkeAgentConfig() VkeAgentConfig
	GetOpenstackRolesConfig() OpenStackRolesConfig
	GetOpenSearchConfig() OpenSearchConfig
}
var GlobalConfig IConfigureManager

func NewConfigureManager

func NewConfigureManager() IConfigureManager

type ImageRef

type ImageRef struct {
	ImageRef string
}

type LanguageConfig

type LanguageConfig struct {
	Default   language.Tag
	Languages []language.Tag
}

type MysqlDBConfig

type MysqlDBConfig struct {
	URL string
}

type OpenSearchConfig added in v1.1.10

type OpenSearchConfig struct {
	Addresses []string
	Username  string
	Password  string
	Index     string
}

type OpenStackApiConfig

type OpenStackApiConfig struct {
	NovaMicroVersion     string
	LoadbalancerProvider string
}

type OpenStackRolesConfig added in v1.0.7

type OpenStackRolesConfig struct {
	OpenstackLoadbalancerRole string
	OpenstackMemberOrUserRole string
}

type PublicNetworkID

type PublicNetworkID struct {
	PublicNetworkID string
}

type VkeAgentConfig

type VkeAgentConfig struct {
	VkeAgentVersion          string
	ClusterAgentVersion      string
	ClusterAutoscalerVersion string
	CloudProviderVkeVersion  string
}

type WebConfig

type WebConfig struct {
	AppName  string
	Port     string
	Env      string
	Version  string
	Endpoint string
}

func (WebConfig) IsProductionEnv

func (w WebConfig) IsProductionEnv() bool

Jump to

Keyboard shortcuts

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