fake

package
v1.10.6-lite6 Latest Latest
Warning

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

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

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeApps

type FakeApps struct {
	*testing.Fake
}

func (*FakeApps) ControllerRevisions

func (c *FakeApps) ControllerRevisions(namespace string) internalversion.ControllerRevisionInterface

func (*FakeApps) RESTClient

func (c *FakeApps) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeApps) StatefulSets

func (c *FakeApps) StatefulSets(namespace string) internalversion.StatefulSetInterface

type FakeControllerRevisions

type FakeControllerRevisions struct {
	Fake *FakeApps
	// contains filtered or unexported fields
}

FakeControllerRevisions implements ControllerRevisionInterface

func (*FakeControllerRevisions) Create

func (c *FakeControllerRevisions) Create(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error)

Create takes the representation of a controllerRevision and creates it. Returns the server's representation of the controllerRevision, and an error, if there is any.

func (*FakeControllerRevisions) Delete

func (c *FakeControllerRevisions) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the controllerRevision and deletes it. Returns an error if one occurs.

func (*FakeControllerRevisions) DeleteCollection

func (c *FakeControllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeControllerRevisions) Get

func (c *FakeControllerRevisions) Get(name string, options v1.GetOptions) (result *apps.ControllerRevision, err error)

Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any.

func (*FakeControllerRevisions) List

List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors.

func (*FakeControllerRevisions) Patch

func (c *FakeControllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.ControllerRevision, err error)

Patch applies the patch and returns the patched controllerRevision.

func (*FakeControllerRevisions) Update

func (c *FakeControllerRevisions) Update(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error)

Update takes the representation of a controllerRevision and updates it. Returns the server's representation of the controllerRevision, and an error, if there is any.

func (*FakeControllerRevisions) Watch

Watch returns a watch.Interface that watches the requested controllerRevisions.

type FakeStatefulSets

type FakeStatefulSets struct {
	Fake *FakeApps
	// contains filtered or unexported fields
}

FakeStatefulSets implements StatefulSetInterface

func (*FakeStatefulSets) Create

func (c *FakeStatefulSets) Create(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error)

Create takes the representation of a statefulSet and creates it. Returns the server's representation of the statefulSet, and an error, if there is any.

func (*FakeStatefulSets) Delete

func (c *FakeStatefulSets) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the statefulSet and deletes it. Returns an error if one occurs.

func (*FakeStatefulSets) DeleteCollection

func (c *FakeStatefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeStatefulSets) Get

func (c *FakeStatefulSets) Get(name string, options v1.GetOptions) (result *apps.StatefulSet, err error)

Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any.

func (*FakeStatefulSets) GetScale

func (c *FakeStatefulSets) GetScale(statefulSetName string, options v1.GetOptions) (result *autoscaling.Scale, err error)

GetScale takes name of the statefulSet, and returns the corresponding scale object, and an error if there is any.

func (*FakeStatefulSets) List

func (c *FakeStatefulSets) List(opts v1.ListOptions) (result *apps.StatefulSetList, err error)

List takes label and field selectors, and returns the list of StatefulSets that match those selectors.

func (*FakeStatefulSets) Patch

func (c *FakeStatefulSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.StatefulSet, err error)

Patch applies the patch and returns the patched statefulSet.

func (*FakeStatefulSets) Update

func (c *FakeStatefulSets) Update(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error)

Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any.

func (*FakeStatefulSets) UpdateScale

func (c *FakeStatefulSets) UpdateScale(statefulSetName string, scale *autoscaling.Scale) (result *autoscaling.Scale, err error)

UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.

func (*FakeStatefulSets) UpdateStatus

func (c *FakeStatefulSets) UpdateStatus(statefulSet *apps.StatefulSet) (*apps.StatefulSet, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeStatefulSets) Watch

func (c *FakeStatefulSets) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested statefulSets.

Jump to

Keyboard shortcuts

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