kubernetes

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter maps Devfiles to Kubernetes resources and actions

func New

func New(adapterContext common.AdapterContext, client kclient.Client) Adapter

New instantiates a kubernetes adapter

func (Adapter) ComponentInfo added in v1.2.6

func (k Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)

func (Adapter) Delete added in v1.1.2

func (k Adapter) Delete(labels map[string]string, show bool) error

Delete deletes the Kubernetes resources that correspond to the devfile

func (Adapter) DoesComponentExist added in v1.1.2

func (k Adapter) DoesComponentExist(cmpName string) (bool, error)

DoesComponentExist returns true if a component with the specified name exists

func (Adapter) Exec added in v1.2.4

func (k Adapter) Exec(command []string) error

Exec executes a command in the component

func (Adapter) ExecCMDInContainer added in v1.2.6

func (k Adapter) ExecCMDInContainer(info common.ComponentInfo, cmd []string, stdOut io.Writer, stdErr io.Writer, stdIn io.Reader, show bool) error

func (Adapter) Log added in v1.2.4

func (k Adapter) Log(follow, debug bool) (io.ReadCloser, error)

Log shows log from component

func (Adapter) Logger added in v1.2.6

func (Adapter) Push added in v1.1.2

func (k Adapter) Push(parameters common.PushParameters) error

Push creates Kubernetes resources that correspond to the devfile if they don't already exist

func (Adapter) SupervisorComponentInfo added in v1.2.6

func (k Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)

func (Adapter) Test added in v1.2.4

func (k Adapter) Test(testCmd string, show bool) error

Test runs the devfile test command

type KubernetesContext added in v1.1.2

type KubernetesContext struct {
	Namespace string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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