Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeApps
- type FakeControllerRevisions
- func (c *FakeControllerRevisions) Create(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error)
- func (c *FakeControllerRevisions) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeControllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeControllerRevisions) Get(name string, options v1.GetOptions) (result *apps.ControllerRevision, err error)
- func (c *FakeControllerRevisions) List(opts v1.ListOptions) (result *apps.ControllerRevisionList, err error)
- func (c *FakeControllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.ControllerRevision, err error)
- func (c *FakeControllerRevisions) Update(controllerRevision *apps.ControllerRevision) (result *apps.ControllerRevision, err error)
- func (c *FakeControllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeStatefulSets
- func (c *FakeStatefulSets) Create(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error)
- func (c *FakeStatefulSets) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeStatefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeStatefulSets) Get(name string, options v1.GetOptions) (result *apps.StatefulSet, err error)
- func (c *FakeStatefulSets) GetScale(statefulSetName string, options v1.GetOptions) (result *autoscaling.Scale, err error)
- func (c *FakeStatefulSets) List(opts v1.ListOptions) (result *apps.StatefulSetList, err error)
- func (c *FakeStatefulSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.StatefulSet, err error)
- func (c *FakeStatefulSets) Update(statefulSet *apps.StatefulSet) (result *apps.StatefulSet, err error)
- func (c *FakeStatefulSets) UpdateScale(statefulSetName string, scale *autoscaling.Scale) (result *autoscaling.Scale, err error)
- func (c *FakeStatefulSets) UpdateStatus(statefulSet *apps.StatefulSet) (*apps.StatefulSet, error)
- func (c *FakeStatefulSets) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeApps ¶
func (*FakeApps) ControllerRevisions ¶
func (c *FakeApps) ControllerRevisions(namespace string) internalversion.ControllerRevisionInterface
func (*FakeApps) RESTClient ¶
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 ¶
func (c *FakeControllerRevisions) List(opts v1.ListOptions) (result *apps.ControllerRevisionList, err error)
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 ¶
func (c *FakeControllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, error)
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 ¶ added in v1.8.8
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 ¶ added in v1.8.8
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.