console

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPodCompleted = fmt.Errorf("pod ran to completion")

ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state.

Functions

func List

func List(k8s *k8s.K8s, environments []string, everyone bool, machineID string)

List lists all running console pods

func Start

func Start(k8s *k8s.K8s, options Options)

Start the console

Types

type Options

type Options struct {
	LabelSelector  string
	Timeout        time.Duration
	Command        []string
	ContainerName  string
	Limits         string
	Image          string
	NoRm           bool
	DeploymentName string
	MachineID      string
	RunAsRoot      bool
}

Options defines how the console should be ran

Jump to

Keyboard shortcuts

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