conf

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagConf = "conf"

Functions

func InitialRoot

func InitialRoot(rv reflect.Value)

func RancherInternal

func RancherInternal(stackName string, serviceName string) rancherInternal

Types

type DockerDefaults

type DockerDefaults map[string]interface{}

func (DockerDefaults) Merge

func (dockerDefaults DockerDefaults) Merge(nextDockerDefaults DockerDefaults) DockerDefaults

type EnvVar

type EnvVar struct {
	Value reflect.Value
	TagConfOption
}

func (EnvVar) GetFallbackValue

func (envVar EnvVar) GetFallbackValue(security bool) string

func (EnvVar) GetValue

func (envVar EnvVar) GetValue(security bool) string

type EnvVars

type EnvVars map[string]EnvVar

func CollectEnvVars

func CollectEnvVars(rv reflect.Value, envVarKey string) (envVars EnvVars, err error)

func UnmarshalConf

func UnmarshalConf(c interface{}, prefix string) EnvVars

func (EnvVars) Merge

func (envVars EnvVars) Merge(nextEnvVars EnvVars)

func (EnvVars) Print

func (envVars EnvVars) Print()

func (EnvVars) Set

func (envVars EnvVars) Set(key string, envVar EnvVar)

type ICanInit

type ICanInit interface {
	Init()
}

type IDefaultsMarshaller

type IDefaultsMarshaller interface {
	MarshalDefaults(v interface{})
}

check and modify value

type IHasDockerDefaults

type IHasDockerDefaults interface {
	DockerDefaults() DockerDefaults
}

type ISecurityStringer

type ISecurityStringer interface {
	SecurityString() string
}

type Scanner

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

func NewScanner

func NewScanner(prefix string) *Scanner

func (*Scanner) Unmarshal

func (vs *Scanner) Unmarshal(rv reflect.Value, tpe reflect.Type) (bool, transform.ErrMsgMap)

type TagConfOption

type TagConfOption struct {
	CanConfig     bool `opt:"env"`
	IsUpstream    bool `opt:"upstream"`
	FallbackValue interface{}
}

func GetTagConfOption

func GetTagConfOption(opt string) (tagConfOption TagConfOption)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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