Package fake has the automatically generated clients.
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
FakeLeases implements LeaseInterface
Create takes the representation of a lease and creates it. Returns the server's representation of the lease, and an error, if there is any.
Delete takes name of the lease and deletes it. Returns an error if one occurs.
DeleteCollection deletes a collection of objects.
func (c *FakeLeases) Get(name string, options v1.GetOptions) (result *coordinationv1.Lease, err error)
Get takes name of the lease, and returns the corresponding lease object, and an error if there is any.
List takes label and field selectors, and returns the list of Leases that match those selectors.
func (c *FakeLeases) Patch(name string, pt types.PatchType, data byte, subresources ...string) (result *coordinationv1.Lease, err error)
Patch applies the patch and returns the patched lease.
Update takes the representation of a lease and updates it. Returns the server's representation of the lease, and an error, if there is any.
Watch returns a watch.Interface that watches the requested leases.