k8sapi

package
v0.9.2-beta Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sapiExecutor

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

func NewK8sapiExecutor

func NewK8sapiExecutor(n string, pod string, client clientset.Interface, cycloneServer string, kubecfg string) *K8sapiExecutor

func (*K8sapiExecutor) CollectLog

func (k *K8sapiExecutor) CollectLog(container, workflowrun, stage string) error

CollectLog collects container logs.

func (*K8sapiExecutor) CopyFromContainer

func (k *K8sapiExecutor) CopyFromContainer(container, path, dst string) error

CopyFromContainer copy a file/directory frome container:path to dst.

func (*K8sapiExecutor) GetPod

func (k *K8sapiExecutor) GetPod() (*core_v1.Pod, error)

GetPod get the stage pod.

func (*K8sapiExecutor) GetResource

func (k *K8sapiExecutor) GetResource(name string) (*v1alpha1.Resource, error)

GetResource get resource by its name

func (*K8sapiExecutor) WaitContainers

func (k *K8sapiExecutor) WaitContainers(expectState common.ContainerState, selectors ...common.ContainerSelector) error

WaitContainersTerminate waits containers that pass selectors.

Jump to

Keyboard shortcuts

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