config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 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
}

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
}
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 OpenStackApiConfig

type OpenStackApiConfig struct {
	NovaMicroVersion string
}

type PublicNetworkID

type PublicNetworkID struct {
	PublicNetworkID string
}

type VkeAgentConfig

type VkeAgentConfig struct {
	VkeAgentVersion          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