config

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 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 {
	CfToken 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
	GetLogstashConfig() LogstashConfig
}
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 LogstashConfig added in v1.7.0

type LogstashConfig struct {
	Host string
	Port int
}

type MysqlDBConfig

type MysqlDBConfig struct {
	URL 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