Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAssignments
- func (c *FakeAssignments) Create(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.CreateOptions) (result *v1alpha1.Assignment, err error)
- func (c *FakeAssignments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeAssignments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeAssignments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Assignment, err error)
- func (c *FakeAssignments) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AssignmentList, err error)
- func (c *FakeAssignments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Assignment, err error)
- func (c *FakeAssignments) Update(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.UpdateOptions) (result *v1alpha1.Assignment, err error)
- func (c *FakeAssignments) UpdateStatus(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.UpdateOptions) (*v1alpha1.Assignment, error)
- func (c *FakeAssignments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeFloatingIPs
- func (c *FakeFloatingIPs) Create(ctx context.Context, floatingIP *v1alpha1.FloatingIP, opts v1.CreateOptions) (result *v1alpha1.FloatingIP, err error)
- func (c *FakeFloatingIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeFloatingIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeFloatingIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FloatingIP, err error)
- func (c *FakeFloatingIPs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FloatingIPList, err error)
- func (c *FakeFloatingIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.FloatingIP, err error)
- func (c *FakeFloatingIPs) Update(ctx context.Context, floatingIP *v1alpha1.FloatingIP, opts v1.UpdateOptions) (result *v1alpha1.FloatingIP, err error)
- func (c *FakeFloatingIPs) UpdateStatus(ctx context.Context, floatingIP *v1alpha1.FloatingIP, opts v1.UpdateOptions) (*v1alpha1.FloatingIP, error)
- func (c *FakeFloatingIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeFloatingipV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAssignments ¶
type FakeAssignments struct { Fake *FakeFloatingipV1alpha1 // contains filtered or unexported fields }
FakeAssignments implements AssignmentInterface
func (*FakeAssignments) Create ¶
func (c *FakeAssignments) Create(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.CreateOptions) (result *v1alpha1.Assignment, err error)
Create takes the representation of a assignment and creates it. Returns the server's representation of the assignment, and an error, if there is any.
func (*FakeAssignments) Delete ¶
func (c *FakeAssignments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the assignment and deletes it. Returns an error if one occurs.
func (*FakeAssignments) DeleteCollection ¶
func (c *FakeAssignments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAssignments) Get ¶
func (c *FakeAssignments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Assignment, err error)
Get takes name of the assignment, and returns the corresponding assignment object, and an error if there is any.
func (*FakeAssignments) List ¶
func (c *FakeAssignments) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AssignmentList, err error)
List takes label and field selectors, and returns the list of Assignments that match those selectors.
func (*FakeAssignments) Patch ¶
func (c *FakeAssignments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Assignment, err error)
Patch applies the patch and returns the patched assignment.
func (*FakeAssignments) Update ¶
func (c *FakeAssignments) Update(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.UpdateOptions) (result *v1alpha1.Assignment, err error)
Update takes the representation of a assignment and updates it. Returns the server's representation of the assignment, and an error, if there is any.
func (*FakeAssignments) UpdateStatus ¶
func (c *FakeAssignments) UpdateStatus(ctx context.Context, assignment *v1alpha1.Assignment, opts v1.UpdateOptions) (*v1alpha1.Assignment, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeAssignments) Watch ¶
func (c *FakeAssignments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested assignments.
type FakeFloatingIPs ¶
type FakeFloatingIPs struct { Fake *FakeFloatingipV1alpha1 // contains filtered or unexported fields }
FakeFloatingIPs implements FloatingIPInterface
func (*FakeFloatingIPs) Create ¶
func (c *FakeFloatingIPs) Create(ctx context.Context, floatingIP *v1alpha1.FloatingIP, opts v1.CreateOptions) (result *v1alpha1.FloatingIP, err error)
Create takes the representation of a floatingIP and creates it. Returns the server's representation of the floatingIP, and an error, if there is any.
func (*FakeFloatingIPs) Delete ¶
func (c *FakeFloatingIPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the floatingIP and deletes it. Returns an error if one occurs.
func (*FakeFloatingIPs) DeleteCollection ¶
func (c *FakeFloatingIPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeFloatingIPs) Get ¶
func (c *FakeFloatingIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FloatingIP, err error)
Get takes name of the floatingIP, and returns the corresponding floatingIP object, and an error if there is any.
func (*FakeFloatingIPs) List ¶
func (c *FakeFloatingIPs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FloatingIPList, err error)
List takes label and field selectors, and returns the list of FloatingIPs that match those selectors.
func (*FakeFloatingIPs) Patch ¶
func (c *FakeFloatingIPs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FloatingIP, err error)
Patch applies the patch and returns the patched floatingIP.
func (*FakeFloatingIPs) Update ¶
func (c *FakeFloatingIPs) Update(ctx context.Context, floatingIP *v1alpha1.FloatingIP, opts v1.UpdateOptions) (result *v1alpha1.FloatingIP, err error)
Update takes the representation of a floatingIP and updates it. Returns the server's representation of the floatingIP, and an error, if there is any.
func (*FakeFloatingIPs) UpdateStatus ¶
func (c *FakeFloatingIPs) UpdateStatus(ctx context.Context, floatingIP *v1alpha1.FloatingIP, opts v1.UpdateOptions) (*v1alpha1.FloatingIP, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeFloatingIPs) Watch ¶
func (c *FakeFloatingIPs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested floatingIPs.
type FakeFloatingipV1alpha1 ¶
func (*FakeFloatingipV1alpha1) Assignments ¶
func (c *FakeFloatingipV1alpha1) Assignments(namespace string) v1alpha1.AssignmentInterface
func (*FakeFloatingipV1alpha1) FloatingIPs ¶
func (c *FakeFloatingipV1alpha1) FloatingIPs(namespace string) v1alpha1.FloatingIPInterface
func (*FakeFloatingipV1alpha1) RESTClient ¶
func (c *FakeFloatingipV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.