container

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name    string
	Id      string
	Image   string
	Runtime string
	Command string
	Env     []v1.EnvVar
	Ports   []v1.ServicePort
	Volumes []canaryv1.Volume
}

func New

func New(image string, env []v1.EnvVar, ports []v1.ServicePort, volumes []canaryv1.Volume) Container

func (Container) Exec

func (c Container) Exec(command ...string) (string, error)

func (Container) Remove

func (c Container) Remove() error

func (Container) Start

func (c Container) Start() error

func (Container) Status

func (c Container) Status() (string, error)

Jump to

Keyboard shortcuts

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