Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeLifecycleV1alpha1
- type FakeMachineTypes
- func (c *FakeMachineTypes) Apply(ctx context.Context, ...) (result *v1alpha1.MachineType, err error)
- func (c *FakeMachineTypes) ApplyStatus(ctx context.Context, ...) (result *v1alpha1.MachineType, err error)
- func (c *FakeMachineTypes) Create(ctx context.Context, machineType *v1alpha1.MachineType, opts v1.CreateOptions) (result *v1alpha1.MachineType, err error)
- func (c *FakeMachineTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMachineTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMachineTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachineType, err error)
- func (c *FakeMachineTypes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineTypeList, err error)
- func (c *FakeMachineTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.MachineType, err error)
- func (c *FakeMachineTypes) Update(ctx context.Context, machineType *v1alpha1.MachineType, opts v1.UpdateOptions) (result *v1alpha1.MachineType, err error)
- func (c *FakeMachineTypes) UpdateStatus(ctx context.Context, machineType *v1alpha1.MachineType, opts v1.UpdateOptions) (*v1alpha1.MachineType, error)
- func (c *FakeMachineTypes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMachines
- func (c *FakeMachines) Apply(ctx context.Context, machine *lifecyclev1alpha1.MachineApplyConfiguration, ...) (result *v1alpha1.Machine, err error)
- func (c *FakeMachines) ApplyStatus(ctx context.Context, machine *lifecyclev1alpha1.MachineApplyConfiguration, ...) (result *v1alpha1.Machine, err error)
- func (c *FakeMachines) Create(ctx context.Context, machine *v1alpha1.Machine, opts v1.CreateOptions) (result *v1alpha1.Machine, err error)
- func (c *FakeMachines) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMachines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMachines) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Machine, err error)
- func (c *FakeMachines) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineList, err error)
- func (c *FakeMachines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Machine, err error)
- func (c *FakeMachines) Update(ctx context.Context, machine *v1alpha1.Machine, opts v1.UpdateOptions) (result *v1alpha1.Machine, err error)
- func (c *FakeMachines) UpdateStatus(ctx context.Context, machine *v1alpha1.Machine, opts v1.UpdateOptions) (*v1alpha1.Machine, error)
- func (c *FakeMachines) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeLifecycleV1alpha1 ¶
func (*FakeLifecycleV1alpha1) MachineTypes ¶
func (c *FakeLifecycleV1alpha1) MachineTypes(namespace string) v1alpha1.MachineTypeInterface
func (*FakeLifecycleV1alpha1) Machines ¶
func (c *FakeLifecycleV1alpha1) Machines(namespace string) v1alpha1.MachineInterface
func (*FakeLifecycleV1alpha1) RESTClient ¶
func (c *FakeLifecycleV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeMachineTypes ¶
type FakeMachineTypes struct { Fake *FakeLifecycleV1alpha1 // contains filtered or unexported fields }
FakeMachineTypes implements MachineTypeInterface
func (*FakeMachineTypes) Apply ¶
func (c *FakeMachineTypes) Apply(ctx context.Context, machineType *lifecyclev1alpha1.MachineTypeApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineType, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied machineType.
func (*FakeMachineTypes) ApplyStatus ¶
func (c *FakeMachineTypes) ApplyStatus(ctx context.Context, machineType *lifecyclev1alpha1.MachineTypeApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineType, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeMachineTypes) Create ¶
func (c *FakeMachineTypes) Create(ctx context.Context, machineType *v1alpha1.MachineType, opts v1.CreateOptions) (result *v1alpha1.MachineType, err error)
Create takes the representation of a machineType and creates it. Returns the server's representation of the machineType, and an error, if there is any.
func (*FakeMachineTypes) Delete ¶
func (c *FakeMachineTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the machineType and deletes it. Returns an error if one occurs.
func (*FakeMachineTypes) DeleteCollection ¶
func (c *FakeMachineTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMachineTypes) Get ¶
func (c *FakeMachineTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachineType, err error)
Get takes name of the machineType, and returns the corresponding machineType object, and an error if there is any.
func (*FakeMachineTypes) List ¶
func (c *FakeMachineTypes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineTypeList, err error)
List takes label and field selectors, and returns the list of MachineTypes that match those selectors.
func (*FakeMachineTypes) Patch ¶
func (c *FakeMachineTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineType, err error)
Patch applies the patch and returns the patched machineType.
func (*FakeMachineTypes) Update ¶
func (c *FakeMachineTypes) Update(ctx context.Context, machineType *v1alpha1.MachineType, opts v1.UpdateOptions) (result *v1alpha1.MachineType, err error)
Update takes the representation of a machineType and updates it. Returns the server's representation of the machineType, and an error, if there is any.
func (*FakeMachineTypes) UpdateStatus ¶
func (c *FakeMachineTypes) UpdateStatus(ctx context.Context, machineType *v1alpha1.MachineType, opts v1.UpdateOptions) (*v1alpha1.MachineType, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMachineTypes) Watch ¶
func (c *FakeMachineTypes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested machineTypes.
type FakeMachines ¶
type FakeMachines struct { Fake *FakeLifecycleV1alpha1 // contains filtered or unexported fields }
FakeMachines implements MachineInterface
func (*FakeMachines) Apply ¶
func (c *FakeMachines) Apply(ctx context.Context, machine *lifecyclev1alpha1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Machine, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied machine.
func (*FakeMachines) ApplyStatus ¶
func (c *FakeMachines) ApplyStatus(ctx context.Context, machine *lifecyclev1alpha1.MachineApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Machine, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeMachines) Create ¶
func (c *FakeMachines) Create(ctx context.Context, machine *v1alpha1.Machine, opts v1.CreateOptions) (result *v1alpha1.Machine, err error)
Create takes the representation of a machine and creates it. Returns the server's representation of the machine, and an error, if there is any.
func (*FakeMachines) Delete ¶
func (c *FakeMachines) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the machine and deletes it. Returns an error if one occurs.
func (*FakeMachines) DeleteCollection ¶
func (c *FakeMachines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMachines) Get ¶
func (c *FakeMachines) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Machine, err error)
Get takes name of the machine, and returns the corresponding machine object, and an error if there is any.
func (*FakeMachines) List ¶
func (c *FakeMachines) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineList, err error)
List takes label and field selectors, and returns the list of Machines that match those selectors.
func (*FakeMachines) Patch ¶
func (c *FakeMachines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Machine, err error)
Patch applies the patch and returns the patched machine.
func (*FakeMachines) Update ¶
func (c *FakeMachines) Update(ctx context.Context, machine *v1alpha1.Machine, opts v1.UpdateOptions) (result *v1alpha1.Machine, err error)
Update takes the representation of a machine and updates it. Returns the server's representation of the machine, and an error, if there is any.
func (*FakeMachines) UpdateStatus ¶
func (c *FakeMachines) UpdateStatus(ctx context.Context, machine *v1alpha1.Machine, opts v1.UpdateOptions) (*v1alpha1.Machine, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMachines) Watch ¶
func (c *FakeMachines) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested machines.