Documentation
¶
Index ¶
Constants ¶
View Source
const ( MIN_REPLICAS = 1 MAX_REPLICAS = 15 MAX_CPU = 3000 MIN_CPU = 10 MAX_MEM = 8000 MIN_MEM = 10 )
View Source
const ( ErrInvalidContainer chkitErrors.Err = "invalid container" ErrInvalidDeployment chkitErrors.Err = "invalid deployment" )
Variables ¶
View Source
var ( MemLimit = intranger.IntRanger(MIN_MEM, MAX_MEM) CPULimit = intranger.IntRanger(MIN_CPU, MAX_CPU) ReplicasLimit = intranger.IntRanger(MIN_REPLICAS, MAX_REPLICAS) )
Functions ¶
func Fill ¶
func Fill(depl *deployment.Deployment)
func FromFile ¶
func FromFile(filename string) (deployment.Deployment, error)
func ValidateContainer ¶
func ValidateDeployment ¶
func ValidateDeployment(depl deployment.Deployment) error
Types ¶
type Flags ¶
type Flags struct { Force bool `flag:"force f" desc:"suppress confirmation, optional"` File string `desc:"file with configmap data, .json, .yaml, .yml, optional"` // Output string `flag:"output o" desc:"output format, json/yaml"` Replicas uint `desc:"deployment replicas, optional"` // deployment Name string `desc:"deployment name, optional"` // deployment Image []string `desc:"container image,\nCONTAINER_NAME@IMAGE in case of multiple containers or IMAGE in case of one container"` // container + Env []string `` // container + /* 133-byte string literal not displayed */ Memory []string `desc:"container memory limit, Mb,\nCONTAINER_NAME@MEMORY in case of multiple containers or MEMORY in case of one container"` // container + CPU []string `desc:"container memory limit, mCPU,\nCONTAINER_NAME@CPU in case of multiple containers or CPU in case of one container"` // container + Volume []string `` // container + /* 225-byte string literal not displayed */ Configmap []string `` // container + /* 239-byte string literal not displayed */ // contains filtered or unexported fields }
func FlagsFromDeployment ¶
func FlagsFromDeployment(depl deployment.Deployment) Flags
func (Flags) BuildContainers ¶
func (flags Flags) BuildContainers() (chkitContainer.ContainerList, error)
func (Flags) Deployment ¶
func (flags Flags) Deployment() (deployment.Deployment, error)
type Wizard ¶
type Wizard struct { Deployment *deployment.Deployment EditName bool Configmaps []string Volumes []string }
func (Wizard) Run ¶
func (config Wizard) Run() deployment.Deployment
Click to show internal directories.
Click to hide internal directories.