client-go: k8s.io/client-go/kubernetes/typed/apps/v1/fake Index | Files

package fake

import "k8s.io/client-go/kubernetes/typed/apps/v1/fake"

Package fake has the automatically generated clients.

Index

Package Files

doc.go fake_apps_client.go fake_controllerrevision.go fake_daemonset.go fake_deployment.go fake_replicaset.go fake_statefulset.go

type FakeAppsV1 Uses

type FakeAppsV1 struct {
    *testing.Fake
}

func (*FakeAppsV1) ControllerRevisions Uses

func (c *FakeAppsV1) ControllerRevisions(namespace string) v1.ControllerRevisionInterface

func (*FakeAppsV1) DaemonSets Uses

func (c *FakeAppsV1) DaemonSets(namespace string) v1.DaemonSetInterface

func (*FakeAppsV1) Deployments Uses

func (c *FakeAppsV1) Deployments(namespace string) v1.DeploymentInterface

func (*FakeAppsV1) RESTClient Uses

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

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

func (*FakeAppsV1) ReplicaSets Uses

func (c *FakeAppsV1) ReplicaSets(namespace string) v1.ReplicaSetInterface

func (*FakeAppsV1) StatefulSets Uses

func (c *FakeAppsV1) StatefulSets(namespace string) v1.StatefulSetInterface

type FakeControllerRevisions Uses

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

FakeControllerRevisions implements ControllerRevisionInterface

func (*FakeControllerRevisions) Create Uses

func (c *FakeControllerRevisions) Create(controllerRevision *apps_v1.ControllerRevision) (result *apps_v1.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 Uses

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 Uses

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

DeleteCollection deletes a collection of objects.

func (*FakeControllerRevisions) Get Uses

func (c *FakeControllerRevisions) Get(name string, options v1.GetOptions) (result *apps_v1.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 Uses

func (c *FakeControllerRevisions) List(opts v1.ListOptions) (result *apps_v1.ControllerRevisionList, err error)

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

func (*FakeControllerRevisions) Patch Uses

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

Patch applies the patch and returns the patched controllerRevision.

func (*FakeControllerRevisions) Update Uses

func (c *FakeControllerRevisions) Update(controllerRevision *apps_v1.ControllerRevision) (result *apps_v1.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 Uses

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

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

type FakeDaemonSets Uses

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

FakeDaemonSets implements DaemonSetInterface

func (*FakeDaemonSets) Create Uses

func (c *FakeDaemonSets) Create(daemonSet *apps_v1.DaemonSet) (result *apps_v1.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 Uses

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 Uses

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

DeleteCollection deletes a collection of objects.

func (*FakeDaemonSets) Get Uses

func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *apps_v1.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 Uses

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

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

func (*FakeDaemonSets) Patch Uses

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

Patch applies the patch and returns the patched daemonSet.

func (*FakeDaemonSets) Update Uses

func (c *FakeDaemonSets) Update(daemonSet *apps_v1.DaemonSet) (result *apps_v1.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 Uses

func (c *FakeDaemonSets) UpdateStatus(daemonSet *apps_v1.DaemonSet) (*apps_v1.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 Uses

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

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

type FakeDeployments Uses

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

FakeDeployments implements DeploymentInterface

func (*FakeDeployments) Create Uses

func (c *FakeDeployments) Create(deployment *apps_v1.Deployment) (result *apps_v1.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 Uses

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 Uses

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

DeleteCollection deletes a collection of objects.

func (*FakeDeployments) Get Uses

func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *apps_v1.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 Uses

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

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

func (*FakeDeployments) Patch Uses

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

Patch applies the patch and returns the patched deployment.

func (*FakeDeployments) Update Uses

func (c *FakeDeployments) Update(deployment *apps_v1.Deployment) (result *apps_v1.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 Uses

func (c *FakeDeployments) UpdateStatus(deployment *apps_v1.Deployment) (*apps_v1.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 Uses

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

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

type FakeReplicaSets Uses

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

FakeReplicaSets implements ReplicaSetInterface

func (*FakeReplicaSets) Create Uses

func (c *FakeReplicaSets) Create(replicaSet *apps_v1.ReplicaSet) (result *apps_v1.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 Uses

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 Uses

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

DeleteCollection deletes a collection of objects.

func (*FakeReplicaSets) Get Uses

func (c *FakeReplicaSets) Get(name string, options v1.GetOptions) (result *apps_v1.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 Uses

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

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

func (*FakeReplicaSets) Patch Uses

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

Patch applies the patch and returns the patched replicaSet.

func (*FakeReplicaSets) Update Uses

func (c *FakeReplicaSets) Update(replicaSet *apps_v1.ReplicaSet) (result *apps_v1.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 Uses

func (c *FakeReplicaSets) UpdateStatus(replicaSet *apps_v1.ReplicaSet) (*apps_v1.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 Uses

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

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

type FakeStatefulSets Uses

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

FakeStatefulSets implements StatefulSetInterface

func (*FakeStatefulSets) Create Uses

func (c *FakeStatefulSets) Create(statefulSet *apps_v1.StatefulSet) (result *apps_v1.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 Uses

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 Uses

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

DeleteCollection deletes a collection of objects.

func (*FakeStatefulSets) Get Uses

func (c *FakeStatefulSets) Get(name string, options v1.GetOptions) (result *apps_v1.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 Uses

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

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

func (*FakeStatefulSets) Patch Uses

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

Patch applies the patch and returns the patched statefulSet.

func (*FakeStatefulSets) Update Uses

func (c *FakeStatefulSets) Update(statefulSet *apps_v1.StatefulSet) (result *apps_v1.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 Uses

func (c *FakeStatefulSets) UpdateStatus(statefulSet *apps_v1.StatefulSet) (*apps_v1.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 Uses

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

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

Package fake imports 9 packages (graph) and is imported by 2 packages. Updated 2018-05-22. Refresh now. Tools for package owners.