client

package
v0.0.0-...-123e828 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)

func WaitForInstanceProcessed

func WaitForInstanceProcessed(exampleClient *rest.RESTClient, name string) error

Types

type CRDClient

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

func NewCrdClient

func NewCrdClient(client *rest.RESTClient, scheme *runtime.Scheme, namespace string) *CRDClient

NewCrdClient returns a CRD client interface.

func (*CRDClient) Create

func (f *CRDClient) Create(obj *crdexamplev1.Item) (*crdexamplev1.Item, error)

func (*CRDClient) Delete

func (f *CRDClient) Delete(name string, options *metav1.DeleteOptions) error

func (*CRDClient) Get

func (f *CRDClient) Get(name string) (*crdexamplev1.Item, error)

func (*CRDClient) List

func (*CRDClient) NewListWatch

func (f *CRDClient) NewListWatch() *cache.ListWatch

NewListWatch creates a new List watch for CRD.

func (*CRDClient) Update

func (f *CRDClient) Update(name string, obj *crdexamplev1.Item) (*crdexamplev1.Item, error)

Jump to

Keyboard shortcuts

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