Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDefconfig ¶
func ClearDefconfig()
Types ¶
type Defconf ¶
type Defconf struct { Capacitylable map[string]struct { Cpu string `yaml:"cpu"` Mem string `yaml:"mem"` } Defualtinfo struct { Cmdarg struct { Args map[string][]string `yaml:"args,omitempty"` Ign map[string][]string `yaml:"ign,omitempty"` } `yaml:"cmdarg,omitempty"` Build map[string]struct { Cmd string `yaml:"cmd,omitempty"` Arg string `yaml:"arg,omitempty"` Config string `yaml:"config,omitempty"` Jenkignor []string `yaml:"jenkignor,omitempty"` } `yaml:"build,omitempty"` Sidecar struct { Neighbour map[string][]string `yaml:"neighbour,omitempty"` Ign map[string][]string `yaml:"ign,omitempty"` } `yaml:"sidecar,omitempty"` Output string `yaml:"output,omitempty"` Port string `yaml:"port,omitempty"` Resource map[string][]string `yaml:"resource,omitempty"` // Volumes []string Capacity map[string]struct { Capacity string `yaml:"capacity,omitempty"` Replica int `yaml:"replica,omitempty"` Cpu string `yaml:"cpu,omitempty"` Mem string `yaml:"mem,omitempty"` } `yaml:"capacity,omitempty"` Datacenter map[string][]string `yaml:"datacenter,omitempty"` Deploy struct { Limited []string `yaml:"limited,omitempty"` Strategy []struct { Flow string `yaml:"flow,omitempty"` Env []string `yaml:"env,omitempty"` } `yaml:"strategy,omitempty"` } `yaml:"deploy,omitempty"` } }
func GenDefig ¶
var dockerpath = constset.Apppath + constset.PthSep + "repo" + constset.PthSep + "temple" + constset.PthSep
func GetDefconfig ¶
func (*Defconf) GetCapacity ¶
func (*Defconf) GetEnvKeys ¶
Click to show internal directories.
Click to hide internal directories.