k8s

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespacedName added in v0.2.8

func GetNamespacedName(obj metav1.Object) types.NamespacedName

func PodRunningAndReady added in v0.2.8

func PodRunningAndReady(event watch.Event) (bool, error)

PodRunningAndReady returns true if the pod is running and ready, false if the pod has not yet reached those states, returns error in any other case

func WaitUntil

func WaitUntil(rc rest.Interface, obj runtime.Object, name, namespace, plural string, exitCondition watchtools.ConditionFunc, timeout time.Duration) (runtime.Object, error)

(deprecated) Wrapper for watchtools.UntilWithSync

Types

type Client

type Client interface {
	runtimeclient.Client
	GetLogs(string, string, *corev1.PodLogOptions) (io.ReadCloser, error)
	Attach(*corev1.Pod) error
}

type Factory

type Factory struct{}

func (*Factory) NewClient

func (f *Factory) NewClient(s *runtime.Scheme, context string) (Client, error)

type FactoryInterface

type FactoryInterface interface {
	NewClient(*runtime.Scheme, string) (Client, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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