Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultDeployment() deployment.Deployment
- func FromFile(filename string) (deployment.Deployment, error)
- func ReplaceWizard(config Config) (deployment.Deployment, error)
- func ValidateContainer(cont container.Container) error
- func ValidateDeployment(depl deployment.Deployment) error
- func Wizard(config Config) (deployment.Deployment, error)
- type Config
Constants ¶
View Source
const ( ErrInvalidContainer chkitErrors.Err = "invalid container" ErrInvalidDeployment chkitErrors.Err = "invalid deployment" )
View Source
const ( MIN_REPLICAS = 1 MAX_REPLICAS = 15 MAX_CPU = 3000 MIN_CPU = 10 MAX_MEM = 8000 MIN_MEM = 10 )
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 DefaultDeployment ¶
func DefaultDeployment() deployment.Deployment
func FromFile ¶
func FromFile(filename string) (deployment.Deployment, error)
func ReplaceWizard ¶
func ReplaceWizard(config Config) (deployment.Deployment, error)
func ValidateContainer ¶
func ValidateDeployment ¶
func ValidateDeployment(depl deployment.Deployment) error
func Wizard ¶
func Wizard(config Config) (deployment.Deployment, error)
Types ¶
type Config ¶
type Config struct { Force bool Deployment *deployment.Deployment }
Click to show internal directories.
Click to hide internal directories.