Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeComputeV1alpha1
- type FakeMachineClasses
- func (c *FakeMachineClasses) Apply(ctx context.Context, ...) (result *v1alpha1.MachineClass, err error)
- func (c *FakeMachineClasses) Create(ctx context.Context, machineClass *v1alpha1.MachineClass, ...) (result *v1alpha1.MachineClass, err error)
- func (c *FakeMachineClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMachineClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMachineClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachineClass, err error)
- func (c *FakeMachineClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineClassList, err error)
- func (c *FakeMachineClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.MachineClass, err error)
- func (c *FakeMachineClasses) Update(ctx context.Context, machineClass *v1alpha1.MachineClass, ...) (result *v1alpha1.MachineClass, err error)
- func (c *FakeMachineClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMachinePools
- func (c *FakeMachinePools) Apply(ctx context.Context, ...) (result *v1alpha1.MachinePool, err error)
- func (c *FakeMachinePools) ApplyStatus(ctx context.Context, ...) (result *v1alpha1.MachinePool, err error)
- func (c *FakeMachinePools) Create(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.CreateOptions) (result *v1alpha1.MachinePool, err error)
- func (c *FakeMachinePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMachinePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMachinePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachinePool, err error)
- func (c *FakeMachinePools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachinePoolList, err error)
- func (c *FakeMachinePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.MachinePool, err error)
- func (c *FakeMachinePools) Update(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.UpdateOptions) (result *v1alpha1.MachinePool, err error)
- func (c *FakeMachinePools) UpdateStatus(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.UpdateOptions) (*v1alpha1.MachinePool, error)
- func (c *FakeMachinePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMachines
- func (c *FakeMachines) Apply(ctx context.Context, machine *computev1alpha1.MachineApplyConfiguration, ...) (result *v1alpha1.Machine, err error)
- func (c *FakeMachines) ApplyStatus(ctx context.Context, machine *computev1alpha1.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 FakeComputeV1alpha1 ¶
func (*FakeComputeV1alpha1) MachineClasses ¶
func (c *FakeComputeV1alpha1) MachineClasses() v1alpha1.MachineClassInterface
func (*FakeComputeV1alpha1) MachinePools ¶
func (c *FakeComputeV1alpha1) MachinePools() v1alpha1.MachinePoolInterface
func (*FakeComputeV1alpha1) Machines ¶
func (c *FakeComputeV1alpha1) Machines(namespace string) v1alpha1.MachineInterface
func (*FakeComputeV1alpha1) RESTClient ¶
func (c *FakeComputeV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeMachineClasses ¶
type FakeMachineClasses struct {
Fake *FakeComputeV1alpha1
}
FakeMachineClasses implements MachineClassInterface
func (*FakeMachineClasses) Apply ¶
func (c *FakeMachineClasses) Apply(ctx context.Context, machineClass *computev1alpha1.MachineClassApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachineClass, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied machineClass.
func (*FakeMachineClasses) Create ¶
func (c *FakeMachineClasses) Create(ctx context.Context, machineClass *v1alpha1.MachineClass, opts v1.CreateOptions) (result *v1alpha1.MachineClass, err error)
Create takes the representation of a machineClass and creates it. Returns the server's representation of the machineClass, and an error, if there is any.
func (*FakeMachineClasses) Delete ¶
func (c *FakeMachineClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the machineClass and deletes it. Returns an error if one occurs.
func (*FakeMachineClasses) DeleteCollection ¶
func (c *FakeMachineClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMachineClasses) Get ¶
func (c *FakeMachineClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachineClass, err error)
Get takes name of the machineClass, and returns the corresponding machineClass object, and an error if there is any.
func (*FakeMachineClasses) List ¶
func (c *FakeMachineClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachineClassList, err error)
List takes label and field selectors, and returns the list of MachineClasses that match those selectors.
func (*FakeMachineClasses) Patch ¶
func (c *FakeMachineClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineClass, err error)
Patch applies the patch and returns the patched machineClass.
func (*FakeMachineClasses) Update ¶
func (c *FakeMachineClasses) Update(ctx context.Context, machineClass *v1alpha1.MachineClass, opts v1.UpdateOptions) (result *v1alpha1.MachineClass, err error)
Update takes the representation of a machineClass and updates it. Returns the server's representation of the machineClass, and an error, if there is any.
func (*FakeMachineClasses) Watch ¶
func (c *FakeMachineClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested machineClasses.
type FakeMachinePools ¶
type FakeMachinePools struct {
Fake *FakeComputeV1alpha1
}
FakeMachinePools implements MachinePoolInterface
func (*FakeMachinePools) Apply ¶
func (c *FakeMachinePools) Apply(ctx context.Context, machinePool *computev1alpha1.MachinePoolApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachinePool, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied machinePool.
func (*FakeMachinePools) ApplyStatus ¶
func (c *FakeMachinePools) ApplyStatus(ctx context.Context, machinePool *computev1alpha1.MachinePoolApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.MachinePool, 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 (*FakeMachinePools) Create ¶
func (c *FakeMachinePools) Create(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.CreateOptions) (result *v1alpha1.MachinePool, err error)
Create takes the representation of a machinePool and creates it. Returns the server's representation of the machinePool, and an error, if there is any.
func (*FakeMachinePools) Delete ¶
func (c *FakeMachinePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the machinePool and deletes it. Returns an error if one occurs.
func (*FakeMachinePools) DeleteCollection ¶
func (c *FakeMachinePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMachinePools) Get ¶
func (c *FakeMachinePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachinePool, err error)
Get takes name of the machinePool, and returns the corresponding machinePool object, and an error if there is any.
func (*FakeMachinePools) List ¶
func (c *FakeMachinePools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MachinePoolList, err error)
List takes label and field selectors, and returns the list of MachinePools that match those selectors.
func (*FakeMachinePools) Patch ¶
func (c *FakeMachinePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachinePool, err error)
Patch applies the patch and returns the patched machinePool.
func (*FakeMachinePools) Update ¶
func (c *FakeMachinePools) Update(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.UpdateOptions) (result *v1alpha1.MachinePool, err error)
Update takes the representation of a machinePool and updates it. Returns the server's representation of the machinePool, and an error, if there is any.
func (*FakeMachinePools) UpdateStatus ¶
func (c *FakeMachinePools) UpdateStatus(ctx context.Context, machinePool *v1alpha1.MachinePool, opts v1.UpdateOptions) (*v1alpha1.MachinePool, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMachinePools) Watch ¶
func (c *FakeMachinePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested machinePools.
type FakeMachines ¶
type FakeMachines struct { Fake *FakeComputeV1alpha1 // contains filtered or unexported fields }
FakeMachines implements MachineInterface
func (*FakeMachines) Apply ¶
func (c *FakeMachines) Apply(ctx context.Context, machine *computev1alpha1.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 *computev1alpha1.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.