Documentation ¶
Index ¶
- Constants
- type EnvConfig
- func (e *EnvConfig) Add(createReq *apistructs.EnvConfigAddOrUpdateRequest, namespace string, ...) error
- func (e *EnvConfig) BatchUpdate(permission *permission.Permission, ...) error
- func (e *EnvConfig) DeleteConfig(permission *permission.Permission, namespace, key, userID string) error
- func (e *EnvConfig) GetConfigs(permission *permission.Permission, namespace, userID string, decrypt bool) ([]apistructs.EnvConfig, error)
- func (e *EnvConfig) GetDeployConfigs(permission *permission.Permission, userID, namespace string) ([]apistructs.EnvConfig, error)
- func (e *EnvConfig) GetMultiNamespaceConfigs(permission *permission.Permission, userID string, ...) (map[string][]apistructs.EnvConfig, error)
- func (e *EnvConfig) ListConfigs(namespaceParams []apistructs.NamespaceParam) (map[string][]apistructs.EnvConfig, error)
- func (e *EnvConfig) Update(permission *permission.Permission, ...) error
- type Option
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 (*EnvConfig) Add ¶
func (e *EnvConfig) Add(createReq *apistructs.EnvConfigAddOrUpdateRequest, namespace string, encrypt bool) error
Add 添加 env config
func (*EnvConfig) BatchUpdate ¶
func (e *EnvConfig) BatchUpdate(permission *permission.Permission, createReq *apistructs.EnvConfigAddOrUpdateRequest, namespace, userID string, encrypt bool) error
BatchUpdate 批量更新 env config
func (*EnvConfig) DeleteConfig ¶
func (e *EnvConfig) DeleteConfig(permission *permission.Permission, namespace, key, userID string) error
DeleteConfig 删除指定 namespace 下的某个配置
func (*EnvConfig) GetConfigs ¶
func (e *EnvConfig) GetConfigs(permission *permission.Permission, namespace, userID string, decrypt bool) ([]apistructs.EnvConfig, error)
GetConfigs 根据指定 namespace 获取 env config
func (*EnvConfig) GetDeployConfigs ¶
func (e *EnvConfig) GetDeployConfigs(permission *permission.Permission, userID, namespace string) ([]apistructs.EnvConfig, error)
GetDeployConfigs 根据指定 namespace 获取部署环境变量配置
func (*EnvConfig) GetMultiNamespaceConfigs ¶
func (e *EnvConfig) GetMultiNamespaceConfigs(permission *permission.Permission, userID string, namespaceParams []apistructs.NamespaceParam) (map[string][]apistructs.EnvConfig, error)
GetMultiNamespaceConfigs 根据多个 namespace 获取所有配置信息
func (*EnvConfig) ListConfigs ¶
func (e *EnvConfig) ListConfigs(namespaceParams []apistructs.NamespaceParam) (map[string][]apistructs.EnvConfig, error)
func (*EnvConfig) Update ¶
func (e *EnvConfig) Update(permission *permission.Permission, createReq *apistructs.EnvConfigAddOrUpdateRequest, namespace, userID string, encrypt bool) error
Update 更新 env config
Click to show internal directories.
Click to hide internal directories.