external

package
v0.0.0-...-36d85a8 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectFieldsAccessor

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

func NewObjectFieldsAccessor

func NewObjectFieldsAccessor(obj interface{}) *ObjectFieldsAccessor

func (*ObjectFieldsAccessor) Get

func (o *ObjectFieldsAccessor) Get(field string) (value string)

Get returns the value for the provided field.

func (*ObjectFieldsAccessor) Has

func (o *ObjectFieldsAccessor) Has(field string) (exists bool)

func (*ObjectFieldsAccessor) Write

func (o *ObjectFieldsAccessor) Write(p []byte) (n int, err error)

type RESTClient

type RESTClient struct {
	NegotiatedSerializer runtime.NegotiatedSerializer

	Req  *http.Request
	Resp *http.Response
	Err  error
	// contains filtered or unexported fields
}

RESTClient provides a fake RESTClient interface.

func NewRESTClient

func NewRESTClient(resourceStore store.ResourceStore, name string) *RESTClient

func (*RESTClient) APIVersion

func (c *RESTClient) APIVersion() schema.GroupVersion

func (*RESTClient) Close

func (c *RESTClient) Close()

func (*RESTClient) Delete

func (c *RESTClient) Delete() *restclient.Request

func (*RESTClient) Do

func (c *RESTClient) Do(req *http.Request) (*http.Response, error)

func (*RESTClient) EmitObjectWatchEvent

func (c *RESTClient) EmitObjectWatchEvent(resource ccapi.ResourceType, eType watch.EventType, object runtime.Object) error

func (*RESTClient) Get

func (c *RESTClient) Get() *restclient.Request

func (*RESTClient) GetRateLimiter

func (c *RESTClient) GetRateLimiter() flowcontrol.RateLimiter

func (*RESTClient) List

func (c *RESTClient) List(resource ccapi.ResourceType, fieldsSelector fields.Selector) (runtime.Object, error)

func (*RESTClient) Nodes

func (c *RESTClient) Nodes(fieldsSelector fields.Selector) *v1.NodeList

func (*RESTClient) Patch

func (*RESTClient) PersistentVolumeClaims

func (c *RESTClient) PersistentVolumeClaims(fieldsSelector fields.Selector) *v1.PersistentVolumeClaimList

func (*RESTClient) PersistentVolumes

func (c *RESTClient) PersistentVolumes(fieldsSelector fields.Selector) *v1.PersistentVolumeList

func (*RESTClient) Pods

func (c *RESTClient) Pods(fieldsSelector fields.Selector) *v1.PodList

func (*RESTClient) Post

func (c *RESTClient) Post() *restclient.Request

func (*RESTClient) Put

func (c *RESTClient) Put() *restclient.Request

func (*RESTClient) Services

func (c *RESTClient) Services(fieldsSelector fields.Selector) *v1.ServiceList

func (*RESTClient) Verb

func (c *RESTClient) Verb(verb string) *restclient.Request

Jump to

Keyboard shortcuts

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