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