pod

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(k *kubectl.CLI, hash string, out *output.Interface) error

Delete deletes the pod associated with a hash, if any

func DeleteAll

func DeleteAll(k *kubectl.CLI, out *output.Interface) error

DeleteAll deletes all pods associated with hashes

func Name

func Name(hash string) string

Name gets the name of the pod associated with a hash

Types

type Process

type Process struct {
	Pod       string
	Container string
	// contains filtered or unexported fields
}

Process represents a process in a pod

func Apply

func Apply(k *kubectl.CLI, hash string, build func(dockerPod string, op output.Operation) error, settings *Settings, out *output.Interface) (*Process, error)

Apply creates or updates a pod associated with a hash

func (*Process) ExitCode

func (p *Process) ExitCode() (int, error)

ExitCode gets the exit code of the process

func (*Process) Exited

func (p *Process) Exited() bool

Exited indicates if the process has exited

type Settings

type Settings struct {
	Inherit     string
	Labels      []string
	Annotations []string
	NoLifecycle bool
	NoProbes    bool
	Image       string
	Env         []string
	Replace     bool
	Listen      bool
	Stdin       bool
	TTY         bool
	Command     []string
}

Settings represents settings for a pod

Jump to

Keyboard shortcuts

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