deplactive

package
v3.3.4-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 19 Imported by: 0

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

Functions

func Fill

func Fill(depl *deployment.Deployment)

func FromFile

func FromFile(filename string) (deployment.Deployment, error)

func ValidateContainer

func ValidateContainer(cont container.Container) error

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

Jump to

Keyboard shortcuts

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