Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeDaemonSets
- func (c *FakeDaemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error)
- func (c *FakeDaemonSets) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *extensions.DaemonSet, err error)
- func (c *FakeDaemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSetList, err error)
- func (c *FakeDaemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error)
- func (c *FakeDaemonSets) Update(daemonSet *extensions.DaemonSet) (result *extensions.DaemonSet, err error)
- func (c *FakeDaemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (*extensions.DaemonSet, error)
- func (c *FakeDaemonSets) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeDeployments
- func (c *FakeDeployments) Create(deployment *extensions.Deployment) (result *extensions.Deployment, err error)
- func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *extensions.Deployment, err error)
- func (c *FakeDeployments) GetScale(deploymentName string, options v1.GetOptions) (result *autoscaling.Scale, err error)
- func (c *FakeDeployments) List(opts v1.ListOptions) (result *extensions.DeploymentList, err error)
- func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error)
- func (c *FakeDeployments) Rollback(deploymentRollback *extensions.DeploymentRollback) error
- func (c *FakeDeployments) Update(deployment *extensions.Deployment) (result *extensions.Deployment, err error)
- func (c *FakeDeployments) UpdateScale(deploymentName string, scale *autoscaling.Scale) (result *autoscaling.Scale, err error)
- func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.Deployment, error)
- func (c *FakeDeployments) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeExtensions
- func (c *FakeExtensions) DaemonSets(namespace string) internalversion.DaemonSetInterface
- func (c *FakeExtensions) Deployments(namespace string) internalversion.DeploymentInterface
- func (c *FakeExtensions) Ingresses(namespace string) internalversion.IngressInterface
- func (c *FakeExtensions) RESTClient() rest.Interface
- func (c *FakeExtensions) ReplicaSets(namespace string) internalversion.ReplicaSetInterface
- type FakeIngresses
- func (c *FakeIngresses) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error)
- func (c *FakeIngresses) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeIngresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeIngresses) Get(name string, options v1.GetOptions) (result *extensions.Ingress, err error)
- func (c *FakeIngresses) List(opts v1.ListOptions) (result *extensions.IngressList, err error)
- func (c *FakeIngresses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error)
- func (c *FakeIngresses) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error)
- func (c *FakeIngresses) UpdateStatus(ingress *extensions.Ingress) (*extensions.Ingress, error)
- func (c *FakeIngresses) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeReplicaSets
- func (c *FakeReplicaSets) Create(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error)
- func (c *FakeReplicaSets) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeReplicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeReplicaSets) Get(name string, options v1.GetOptions) (result *extensions.ReplicaSet, err error)
- func (c *FakeReplicaSets) GetScale(replicaSetName string, options v1.GetOptions) (result *autoscaling.Scale, err error)
- func (c *FakeReplicaSets) List(opts v1.ListOptions) (result *extensions.ReplicaSetList, err error)
- func (c *FakeReplicaSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error)
- func (c *FakeReplicaSets) Update(replicaSet *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error)
- func (c *FakeReplicaSets) UpdateScale(replicaSetName string, scale *autoscaling.Scale) (result *autoscaling.Scale, err error)
- func (c *FakeReplicaSets) UpdateStatus(replicaSet *extensions.ReplicaSet) (*extensions.ReplicaSet, error)
- func (c *FakeReplicaSets) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDaemonSets ¶
type FakeDaemonSets struct { Fake *FakeExtensions // contains filtered or unexported fields }
FakeDaemonSets implements DaemonSetInterface
func (*FakeDaemonSets) Create ¶
func (c *FakeDaemonSets) Create(daemonSet *extensions.DaemonSet) (result *extensions.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 ¶
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 ¶
func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDaemonSets) Get ¶
func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *extensions.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 ¶
func (c *FakeDaemonSets) List(opts v1.ListOptions) (result *extensions.DaemonSetList, err error)
List takes label and field selectors, and returns the list of DaemonSets that match those selectors.
func (*FakeDaemonSets) Patch ¶
func (c *FakeDaemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.DaemonSet, err error)
Patch applies the patch and returns the patched daemonSet.
func (*FakeDaemonSets) Update ¶
func (c *FakeDaemonSets) Update(daemonSet *extensions.DaemonSet) (result *extensions.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 ¶
func (c *FakeDaemonSets) UpdateStatus(daemonSet *extensions.DaemonSet) (*extensions.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 ¶
func (c *FakeDaemonSets) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested daemonSets.
type FakeDeployments ¶
type FakeDeployments struct { Fake *FakeExtensions // contains filtered or unexported fields }
FakeDeployments implements DeploymentInterface
func (*FakeDeployments) Create ¶
func (c *FakeDeployments) Create(deployment *extensions.Deployment) (result *extensions.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 ¶
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 ¶
func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDeployments) Get ¶
func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *extensions.Deployment, err error)
Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any.
func (*FakeDeployments) GetScale ¶ added in v1.8.0
func (c *FakeDeployments) GetScale(deploymentName string, options v1.GetOptions) (result *autoscaling.Scale, err error)
GetScale takes name of the deployment, and returns the corresponding scale object, and an error if there is any.
func (*FakeDeployments) List ¶
func (c *FakeDeployments) List(opts v1.ListOptions) (result *extensions.DeploymentList, err error)
List takes label and field selectors, and returns the list of Deployments that match those selectors.
func (*FakeDeployments) Patch ¶
func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Deployment, err error)
Patch applies the patch and returns the patched deployment.
func (*FakeDeployments) Rollback ¶
func (c *FakeDeployments) Rollback(deploymentRollback *extensions.DeploymentRollback) error
func (*FakeDeployments) Update ¶
func (c *FakeDeployments) Update(deployment *extensions.Deployment) (result *extensions.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) UpdateScale ¶ added in v1.8.0
func (c *FakeDeployments) UpdateScale(deploymentName 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 (*FakeDeployments) UpdateStatus ¶
func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.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 ¶
func (c *FakeDeployments) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested deployments.
type FakeExtensions ¶
func (*FakeExtensions) DaemonSets ¶
func (c *FakeExtensions) DaemonSets(namespace string) internalversion.DaemonSetInterface
func (*FakeExtensions) Deployments ¶
func (c *FakeExtensions) Deployments(namespace string) internalversion.DeploymentInterface
func (*FakeExtensions) Ingresses ¶
func (c *FakeExtensions) Ingresses(namespace string) internalversion.IngressInterface
func (*FakeExtensions) RESTClient ¶
func (c *FakeExtensions) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeExtensions) ReplicaSets ¶
func (c *FakeExtensions) ReplicaSets(namespace string) internalversion.ReplicaSetInterface
type FakeIngresses ¶
type FakeIngresses struct { Fake *FakeExtensions // contains filtered or unexported fields }
FakeIngresses implements IngressInterface
func (*FakeIngresses) Create ¶
func (c *FakeIngresses) Create(ingress *extensions.Ingress) (result *extensions.Ingress, err error)
Create takes the representation of a ingress and creates it. Returns the server's representation of the ingress, and an error, if there is any.
func (*FakeIngresses) Delete ¶
func (c *FakeIngresses) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the ingress and deletes it. Returns an error if one occurs.
func (*FakeIngresses) DeleteCollection ¶
func (c *FakeIngresses) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeIngresses) Get ¶
func (c *FakeIngresses) Get(name string, options v1.GetOptions) (result *extensions.Ingress, err error)
Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any.
func (*FakeIngresses) List ¶
func (c *FakeIngresses) List(opts v1.ListOptions) (result *extensions.IngressList, err error)
List takes label and field selectors, and returns the list of Ingresses that match those selectors.
func (*FakeIngresses) Patch ¶
func (c *FakeIngresses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.Ingress, err error)
Patch applies the patch and returns the patched ingress.
func (*FakeIngresses) Update ¶
func (c *FakeIngresses) Update(ingress *extensions.Ingress) (result *extensions.Ingress, err error)
Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any.
func (*FakeIngresses) UpdateStatus ¶
func (c *FakeIngresses) UpdateStatus(ingress *extensions.Ingress) (*extensions.Ingress, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeIngresses) Watch ¶
func (c *FakeIngresses) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested ingresses.
type FakeReplicaSets ¶
type FakeReplicaSets struct { Fake *FakeExtensions // contains filtered or unexported fields }
FakeReplicaSets implements ReplicaSetInterface
func (*FakeReplicaSets) Create ¶
func (c *FakeReplicaSets) Create(replicaSet *extensions.ReplicaSet) (result *extensions.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 ¶
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 ¶
func (c *FakeReplicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeReplicaSets) Get ¶
func (c *FakeReplicaSets) Get(name string, options v1.GetOptions) (result *extensions.ReplicaSet, err error)
Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any.
func (*FakeReplicaSets) GetScale ¶ added in v1.8.0
func (c *FakeReplicaSets) GetScale(replicaSetName string, options v1.GetOptions) (result *autoscaling.Scale, err error)
GetScale takes name of the replicaSet, and returns the corresponding scale object, and an error if there is any.
func (*FakeReplicaSets) List ¶
func (c *FakeReplicaSets) List(opts v1.ListOptions) (result *extensions.ReplicaSetList, err error)
List takes label and field selectors, and returns the list of ReplicaSets that match those selectors.
func (*FakeReplicaSets) Patch ¶
func (c *FakeReplicaSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *extensions.ReplicaSet, err error)
Patch applies the patch and returns the patched replicaSet.
func (*FakeReplicaSets) Update ¶
func (c *FakeReplicaSets) Update(replicaSet *extensions.ReplicaSet) (result *extensions.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) UpdateScale ¶ added in v1.8.0
func (c *FakeReplicaSets) UpdateScale(replicaSetName 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 (*FakeReplicaSets) UpdateStatus ¶
func (c *FakeReplicaSets) UpdateStatus(replicaSet *extensions.ReplicaSet) (*extensions.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 ¶
func (c *FakeReplicaSets) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested replicaSets.