client

package
v0.0.0-...-51508ad Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateJob

func CreateOrUpdateJob(client clientset.Interface, job *batchv1.Job) (*batchv1.Job, error)

CreateOrUpdateJob creates a Job if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.

func CreateOrUpdateNetworkPolicy

func CreateOrUpdateNetworkPolicy(client clientset.Interface, np *netv1.NetworkPolicy) (*netv1.NetworkPolicy, error)

CreateOrUpdateNetworkPolicy returns the NetworkPolicy

func CreateOrUpdatePod

func CreateOrUpdatePod(client clientset.Interface, service *corev1.Pod) (*corev1.Pod, error)

CreateOrUpdatePod creates or updates a Pod object

func CreateOrUpdateService

func CreateOrUpdateService(client clientset.Interface, service *corev1.Service) (*corev1.Service, error)

CreateOrUpdateService creates a Deployment if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.

func DeleteNetworkPolicyForeground

func DeleteNetworkPolicyForeground(client clientset.Interface, np *netv1.NetworkPolicy) error

DeleteNetworkPolicyForeground deletes a NetworkPolicy Deletion is performed in foreground mode; i.e. it blocks until/makes sure all the resources are deleted.

func DeleteServiceForeground

func DeleteServiceForeground(client clientset.Interface, service *corev1.Service) error

DeleteServiceForeground deletes a Service Deletion is performed in foreground mode; i.e. it blocks until/makes sure all the resources are deleted.

func WaitForObject

func WaitForObject(cli rest.Interface, obj metav1.Common) error

WaitForObject waits for an object to be ready in the apiserver

func WaitForURL

func WaitForURL(request *rest.Request) error

WaitForURL waits for an URL to be GET'able

Types

This section is empty.

Jump to

Keyboard shortcuts

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