deplactive

package
v3.0.3-alpha2+incompat... Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 15 Imported by: 1

Documentation

Index

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

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 ValidateContainer(cont container.Container) error

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
}

Jump to

Keyboard shortcuts

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