environment

package
v1.3.0-rc.0...-a07df58 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Web             = "WEB"
	DeployEnvFormat = "^[A-Za-z_][A-Za-z0-9_]*"
	NotDeleteValue  = "N"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvConfig

type EnvConfig struct {
	// contains filtered or unexported fields
}

EnvConfig 命名空间参数

func New

func New(options ...Option) *EnvConfig

New 新建 EnvConfig 实例

func (*EnvConfig) GetDeployConfigs

func (e *EnvConfig) GetDeployConfigs(namespace string) ([]apistructs.EnvConfig, error)

GetDeployConfigs 根据指定 namespace 获取部署环境变量配置

type Option

type Option func(*EnvConfig)

Option 定义 EnvConfig 对象的配置选项

func WithDBClient

func WithDBClient(db *dbclient.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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