fake

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 9 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 added in v1.7.0

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

func (*FakeApps) DaemonSets added in v1.13.0

func (c *FakeApps) DaemonSets(namespace string) internalversion.DaemonSetInterface

func (*FakeApps) Deployments added in v1.13.0

func (c *FakeApps) Deployments(namespace string) internalversion.DeploymentInterface

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) ReplicaSets added in v1.13.0

func (c *FakeApps) ReplicaSets(namespace string) internalversion.ReplicaSetInterface

func (*FakeApps) StatefulSets

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

type FakeControllerRevisions added in v1.7.0

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

FakeControllerRevisions implements ControllerRevisionInterface

func (*FakeControllerRevisions) Create added in v1.7.0

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 added in v1.7.0

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 added in v1.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeControllerRevisions) Get added in v1.7.0

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 added in v1.7.0

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

func (*FakeControllerRevisions) Patch added in v1.7.0

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 added in v1.7.0

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 added in v1.7.0

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

type FakeDaemonSets added in v1.13.0

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

FakeDaemonSets implements DaemonSetInterface

func (*FakeDaemonSets) Create added in v1.13.0

func (c *FakeDaemonSets) Create(daemonSet *apps.DaemonSet) (result *apps.DaemonSet, err error)

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

func (*FakeDaemonSets) Delete added in v1.13.0

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

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

func (*FakeDaemonSets) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeDaemonSets) Get added in v1.13.0

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

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

func (*FakeDaemonSets) List added in v1.13.0

func (c *FakeDaemonSets) List(opts v1.ListOptions) (result *apps.DaemonSetList, err error)

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

func (*FakeDaemonSets) Patch added in v1.13.0

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

Patch applies the patch and returns the patched daemonSet.

func (*FakeDaemonSets) Update added in v1.13.0

func (c *FakeDaemonSets) Update(daemonSet *apps.DaemonSet) (result *apps.DaemonSet, err error)

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

func (*FakeDaemonSets) UpdateStatus added in v1.13.0

func (c *FakeDaemonSets) UpdateStatus(daemonSet *apps.DaemonSet) (*apps.DaemonSet, error)

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

func (*FakeDaemonSets) Watch added in v1.13.0

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

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

type FakeDeployments added in v1.13.0

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

FakeDeployments implements DeploymentInterface

func (*FakeDeployments) Create added in v1.13.0

func (c *FakeDeployments) Create(deployment *apps.Deployment) (result *apps.Deployment, err error)

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

func (*FakeDeployments) Delete added in v1.13.0

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

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

func (*FakeDeployments) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeDeployments) Get added in v1.13.0

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

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

func (*FakeDeployments) List added in v1.13.0

func (c *FakeDeployments) List(opts v1.ListOptions) (result *apps.DeploymentList, err error)

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

func (*FakeDeployments) Patch added in v1.13.0

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

Patch applies the patch and returns the patched deployment.

func (*FakeDeployments) Update added in v1.13.0

func (c *FakeDeployments) Update(deployment *apps.Deployment) (result *apps.Deployment, err error)

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

func (*FakeDeployments) UpdateStatus added in v1.13.0

func (c *FakeDeployments) UpdateStatus(deployment *apps.Deployment) (*apps.Deployment, error)

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

func (*FakeDeployments) Watch added in v1.13.0

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

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

type FakeReplicaSets added in v1.13.0

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

FakeReplicaSets implements ReplicaSetInterface

func (*FakeReplicaSets) Create added in v1.13.0

func (c *FakeReplicaSets) Create(replicaSet *apps.ReplicaSet) (result *apps.ReplicaSet, err error)

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

func (*FakeReplicaSets) Delete added in v1.13.0

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

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

func (*FakeReplicaSets) DeleteCollection added in v1.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeReplicaSets) Get added in v1.13.0

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

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

func (*FakeReplicaSets) List added in v1.13.0

func (c *FakeReplicaSets) List(opts v1.ListOptions) (result *apps.ReplicaSetList, err error)

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

func (*FakeReplicaSets) Patch added in v1.13.0

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

Patch applies the patch and returns the patched replicaSet.

func (*FakeReplicaSets) Update added in v1.13.0

func (c *FakeReplicaSets) Update(replicaSet *apps.ReplicaSet) (result *apps.ReplicaSet, err error)

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

func (*FakeReplicaSets) UpdateStatus added in v1.13.0

func (c *FakeReplicaSets) UpdateStatus(replicaSet *apps.ReplicaSet) (*apps.ReplicaSet, error)

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

func (*FakeReplicaSets) Watch added in v1.13.0

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

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

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) 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) 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