container

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(cont container.Container) container.Container

Types

type Flags

type Flags struct {
	Image     string   `desc:"container image"`
	Memory    uint     `desc:"container memory limit, Mb"`
	CPU       uint     `desc:"container CPU limit, mCPU"`
	Env       []string `` /* 174-byte string literal not displayed */
	Volume    []string `desc:"container volume mounts, VOLUME:MOUNT_PATH or VOLUME (then MOUNT_PATH is /mnt/VOLUME)"`
	Configmap []string `desc:"container configmap mount, CONFIG:MOUNT_PATH or CONFIG (then MOUNTPATH is /etc/CONFIG)"`
}

func (Flags) Container

func (flags Flags) Container() (container.Container, error)

type ReplaceFlags

type ReplaceFlags struct {
	Flags
	DeleteConfigmap []string `desc:"configmap to delete"`
	DeleteVolume    []string `desc:"volume to delete"`
	DeleteEnv       []string `desc:"environment to delete"`
}

func (ReplaceFlags) Patch

type Wizard

type Wizard struct {
	Container   container.Container
	EditName    bool
	Deployment  string
	Deployments str.Vector
	Volumes     str.Vector
	Configs     str.Vector
}

func (Wizard) Run

func (wizard Wizard) Run() container.Container

Jump to

Keyboard shortcuts

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