Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeMachineInventories
- func (c *FakeMachineInventories) Create(ctx context.Context, machineInventory *rancheroscattleiov1.MachineInventory, ...) (result *rancheroscattleiov1.MachineInventory, err error)
- func (c *FakeMachineInventories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMachineInventories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMachineInventories) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.MachineInventory, err error)
- func (c *FakeMachineInventories) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.MachineInventoryList, err error)
- func (c *FakeMachineInventories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *rancheroscattleiov1.MachineInventory, err error)
- func (c *FakeMachineInventories) Update(ctx context.Context, machineInventory *rancheroscattleiov1.MachineInventory, ...) (result *rancheroscattleiov1.MachineInventory, err error)
- func (c *FakeMachineInventories) UpdateStatus(ctx context.Context, machineInventory *rancheroscattleiov1.MachineInventory, ...) (*rancheroscattleiov1.MachineInventory, error)
- func (c *FakeMachineInventories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMachineRegistrations
- func (c *FakeMachineRegistrations) Create(ctx context.Context, ...) (result *rancheroscattleiov1.MachineRegistration, err error)
- func (c *FakeMachineRegistrations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMachineRegistrations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMachineRegistrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.MachineRegistration, err error)
- func (c *FakeMachineRegistrations) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.MachineRegistrationList, err error)
- func (c *FakeMachineRegistrations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *rancheroscattleiov1.MachineRegistration, err error)
- func (c *FakeMachineRegistrations) Update(ctx context.Context, ...) (result *rancheroscattleiov1.MachineRegistration, err error)
- func (c *FakeMachineRegistrations) UpdateStatus(ctx context.Context, ...) (*rancheroscattleiov1.MachineRegistration, error)
- func (c *FakeMachineRegistrations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeManagedOSImages
- func (c *FakeManagedOSImages) Create(ctx context.Context, managedOSImage *rancheroscattleiov1.ManagedOSImage, ...) (result *rancheroscattleiov1.ManagedOSImage, err error)
- func (c *FakeManagedOSImages) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeManagedOSImages) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeManagedOSImages) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.ManagedOSImage, err error)
- func (c *FakeManagedOSImages) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.ManagedOSImageList, err error)
- func (c *FakeManagedOSImages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *rancheroscattleiov1.ManagedOSImage, err error)
- func (c *FakeManagedOSImages) Update(ctx context.Context, managedOSImage *rancheroscattleiov1.ManagedOSImage, ...) (result *rancheroscattleiov1.ManagedOSImage, err error)
- func (c *FakeManagedOSImages) UpdateStatus(ctx context.Context, managedOSImage *rancheroscattleiov1.ManagedOSImage, ...) (*rancheroscattleiov1.ManagedOSImage, error)
- func (c *FakeManagedOSImages) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeManagedOSVersionChannels
- func (c *FakeManagedOSVersionChannels) Create(ctx context.Context, ...) (result *rancheroscattleiov1.ManagedOSVersionChannel, err error)
- func (c *FakeManagedOSVersionChannels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeManagedOSVersionChannels) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeManagedOSVersionChannels) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.ManagedOSVersionChannel, err error)
- func (c *FakeManagedOSVersionChannels) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.ManagedOSVersionChannelList, err error)
- func (c *FakeManagedOSVersionChannels) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *rancheroscattleiov1.ManagedOSVersionChannel, err error)
- func (c *FakeManagedOSVersionChannels) Update(ctx context.Context, ...) (result *rancheroscattleiov1.ManagedOSVersionChannel, err error)
- func (c *FakeManagedOSVersionChannels) UpdateStatus(ctx context.Context, ...) (*rancheroscattleiov1.ManagedOSVersionChannel, error)
- func (c *FakeManagedOSVersionChannels) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeManagedOSVersions
- func (c *FakeManagedOSVersions) Create(ctx context.Context, managedOSVersion *rancheroscattleiov1.ManagedOSVersion, ...) (result *rancheroscattleiov1.ManagedOSVersion, err error)
- func (c *FakeManagedOSVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeManagedOSVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeManagedOSVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.ManagedOSVersion, err error)
- func (c *FakeManagedOSVersions) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.ManagedOSVersionList, err error)
- func (c *FakeManagedOSVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *rancheroscattleiov1.ManagedOSVersion, err error)
- func (c *FakeManagedOSVersions) Update(ctx context.Context, managedOSVersion *rancheroscattleiov1.ManagedOSVersion, ...) (result *rancheroscattleiov1.ManagedOSVersion, err error)
- func (c *FakeManagedOSVersions) UpdateStatus(ctx context.Context, managedOSVersion *rancheroscattleiov1.ManagedOSVersion, ...) (*rancheroscattleiov1.ManagedOSVersion, error)
- func (c *FakeManagedOSVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeRancherosV1
- func (c *FakeRancherosV1) MachineInventories(namespace string) v1.MachineInventoryInterface
- func (c *FakeRancherosV1) MachineRegistrations(namespace string) v1.MachineRegistrationInterface
- func (c *FakeRancherosV1) ManagedOSImages(namespace string) v1.ManagedOSImageInterface
- func (c *FakeRancherosV1) ManagedOSVersionChannels(namespace string) v1.ManagedOSVersionChannelInterface
- func (c *FakeRancherosV1) ManagedOSVersions(namespace string) v1.ManagedOSVersionInterface
- func (c *FakeRancherosV1) RESTClient() rest.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeMachineInventories ¶
type FakeMachineInventories struct { Fake *FakeRancherosV1 // contains filtered or unexported fields }
FakeMachineInventories implements MachineInventoryInterface
func (*FakeMachineInventories) Create ¶
func (c *FakeMachineInventories) Create(ctx context.Context, machineInventory *rancheroscattleiov1.MachineInventory, opts v1.CreateOptions) (result *rancheroscattleiov1.MachineInventory, err error)
Create takes the representation of a machineInventory and creates it. Returns the server's representation of the machineInventory, and an error, if there is any.
func (*FakeMachineInventories) Delete ¶
func (c *FakeMachineInventories) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the machineInventory and deletes it. Returns an error if one occurs.
func (*FakeMachineInventories) DeleteCollection ¶
func (c *FakeMachineInventories) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMachineInventories) Get ¶
func (c *FakeMachineInventories) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.MachineInventory, err error)
Get takes name of the machineInventory, and returns the corresponding machineInventory object, and an error if there is any.
func (*FakeMachineInventories) List ¶
func (c *FakeMachineInventories) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.MachineInventoryList, err error)
List takes label and field selectors, and returns the list of MachineInventories that match those selectors.
func (*FakeMachineInventories) Patch ¶
func (c *FakeMachineInventories) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *rancheroscattleiov1.MachineInventory, err error)
Patch applies the patch and returns the patched machineInventory.
func (*FakeMachineInventories) Update ¶
func (c *FakeMachineInventories) Update(ctx context.Context, machineInventory *rancheroscattleiov1.MachineInventory, opts v1.UpdateOptions) (result *rancheroscattleiov1.MachineInventory, err error)
Update takes the representation of a machineInventory and updates it. Returns the server's representation of the machineInventory, and an error, if there is any.
func (*FakeMachineInventories) UpdateStatus ¶
func (c *FakeMachineInventories) UpdateStatus(ctx context.Context, machineInventory *rancheroscattleiov1.MachineInventory, opts v1.UpdateOptions) (*rancheroscattleiov1.MachineInventory, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMachineInventories) Watch ¶
func (c *FakeMachineInventories) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested machineInventories.
type FakeMachineRegistrations ¶
type FakeMachineRegistrations struct { Fake *FakeRancherosV1 // contains filtered or unexported fields }
FakeMachineRegistrations implements MachineRegistrationInterface
func (*FakeMachineRegistrations) Create ¶
func (c *FakeMachineRegistrations) Create(ctx context.Context, machineRegistration *rancheroscattleiov1.MachineRegistration, opts v1.CreateOptions) (result *rancheroscattleiov1.MachineRegistration, err error)
Create takes the representation of a machineRegistration and creates it. Returns the server's representation of the machineRegistration, and an error, if there is any.
func (*FakeMachineRegistrations) Delete ¶
func (c *FakeMachineRegistrations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the machineRegistration and deletes it. Returns an error if one occurs.
func (*FakeMachineRegistrations) DeleteCollection ¶
func (c *FakeMachineRegistrations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMachineRegistrations) Get ¶
func (c *FakeMachineRegistrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.MachineRegistration, err error)
Get takes name of the machineRegistration, and returns the corresponding machineRegistration object, and an error if there is any.
func (*FakeMachineRegistrations) List ¶
func (c *FakeMachineRegistrations) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.MachineRegistrationList, err error)
List takes label and field selectors, and returns the list of MachineRegistrations that match those selectors.
func (*FakeMachineRegistrations) Patch ¶
func (c *FakeMachineRegistrations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *rancheroscattleiov1.MachineRegistration, err error)
Patch applies the patch and returns the patched machineRegistration.
func (*FakeMachineRegistrations) Update ¶
func (c *FakeMachineRegistrations) Update(ctx context.Context, machineRegistration *rancheroscattleiov1.MachineRegistration, opts v1.UpdateOptions) (result *rancheroscattleiov1.MachineRegistration, err error)
Update takes the representation of a machineRegistration and updates it. Returns the server's representation of the machineRegistration, and an error, if there is any.
func (*FakeMachineRegistrations) UpdateStatus ¶
func (c *FakeMachineRegistrations) UpdateStatus(ctx context.Context, machineRegistration *rancheroscattleiov1.MachineRegistration, opts v1.UpdateOptions) (*rancheroscattleiov1.MachineRegistration, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMachineRegistrations) Watch ¶
func (c *FakeMachineRegistrations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested machineRegistrations.
type FakeManagedOSImages ¶
type FakeManagedOSImages struct { Fake *FakeRancherosV1 // contains filtered or unexported fields }
FakeManagedOSImages implements ManagedOSImageInterface
func (*FakeManagedOSImages) Create ¶
func (c *FakeManagedOSImages) Create(ctx context.Context, managedOSImage *rancheroscattleiov1.ManagedOSImage, opts v1.CreateOptions) (result *rancheroscattleiov1.ManagedOSImage, err error)
Create takes the representation of a managedOSImage and creates it. Returns the server's representation of the managedOSImage, and an error, if there is any.
func (*FakeManagedOSImages) Delete ¶
func (c *FakeManagedOSImages) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the managedOSImage and deletes it. Returns an error if one occurs.
func (*FakeManagedOSImages) DeleteCollection ¶
func (c *FakeManagedOSImages) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeManagedOSImages) Get ¶
func (c *FakeManagedOSImages) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.ManagedOSImage, err error)
Get takes name of the managedOSImage, and returns the corresponding managedOSImage object, and an error if there is any.
func (*FakeManagedOSImages) List ¶
func (c *FakeManagedOSImages) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.ManagedOSImageList, err error)
List takes label and field selectors, and returns the list of ManagedOSImages that match those selectors.
func (*FakeManagedOSImages) Patch ¶
func (c *FakeManagedOSImages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *rancheroscattleiov1.ManagedOSImage, err error)
Patch applies the patch and returns the patched managedOSImage.
func (*FakeManagedOSImages) Update ¶
func (c *FakeManagedOSImages) Update(ctx context.Context, managedOSImage *rancheroscattleiov1.ManagedOSImage, opts v1.UpdateOptions) (result *rancheroscattleiov1.ManagedOSImage, err error)
Update takes the representation of a managedOSImage and updates it. Returns the server's representation of the managedOSImage, and an error, if there is any.
func (*FakeManagedOSImages) UpdateStatus ¶
func (c *FakeManagedOSImages) UpdateStatus(ctx context.Context, managedOSImage *rancheroscattleiov1.ManagedOSImage, opts v1.UpdateOptions) (*rancheroscattleiov1.ManagedOSImage, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeManagedOSImages) Watch ¶
func (c *FakeManagedOSImages) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested managedOSImages.
type FakeManagedOSVersionChannels ¶
type FakeManagedOSVersionChannels struct { Fake *FakeRancherosV1 // contains filtered or unexported fields }
FakeManagedOSVersionChannels implements ManagedOSVersionChannelInterface
func (*FakeManagedOSVersionChannels) Create ¶
func (c *FakeManagedOSVersionChannels) Create(ctx context.Context, managedOSVersionChannel *rancheroscattleiov1.ManagedOSVersionChannel, opts v1.CreateOptions) (result *rancheroscattleiov1.ManagedOSVersionChannel, err error)
Create takes the representation of a managedOSVersionChannel and creates it. Returns the server's representation of the managedOSVersionChannel, and an error, if there is any.
func (*FakeManagedOSVersionChannels) Delete ¶
func (c *FakeManagedOSVersionChannels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the managedOSVersionChannel and deletes it. Returns an error if one occurs.
func (*FakeManagedOSVersionChannels) DeleteCollection ¶
func (c *FakeManagedOSVersionChannels) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeManagedOSVersionChannels) Get ¶
func (c *FakeManagedOSVersionChannels) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.ManagedOSVersionChannel, err error)
Get takes name of the managedOSVersionChannel, and returns the corresponding managedOSVersionChannel object, and an error if there is any.
func (*FakeManagedOSVersionChannels) List ¶
func (c *FakeManagedOSVersionChannels) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.ManagedOSVersionChannelList, err error)
List takes label and field selectors, and returns the list of ManagedOSVersionChannels that match those selectors.
func (*FakeManagedOSVersionChannels) Patch ¶
func (c *FakeManagedOSVersionChannels) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *rancheroscattleiov1.ManagedOSVersionChannel, err error)
Patch applies the patch and returns the patched managedOSVersionChannel.
func (*FakeManagedOSVersionChannels) Update ¶
func (c *FakeManagedOSVersionChannels) Update(ctx context.Context, managedOSVersionChannel *rancheroscattleiov1.ManagedOSVersionChannel, opts v1.UpdateOptions) (result *rancheroscattleiov1.ManagedOSVersionChannel, err error)
Update takes the representation of a managedOSVersionChannel and updates it. Returns the server's representation of the managedOSVersionChannel, and an error, if there is any.
func (*FakeManagedOSVersionChannels) UpdateStatus ¶
func (c *FakeManagedOSVersionChannels) UpdateStatus(ctx context.Context, managedOSVersionChannel *rancheroscattleiov1.ManagedOSVersionChannel, opts v1.UpdateOptions) (*rancheroscattleiov1.ManagedOSVersionChannel, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeManagedOSVersionChannels) Watch ¶
func (c *FakeManagedOSVersionChannels) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested managedOSVersionChannels.
type FakeManagedOSVersions ¶
type FakeManagedOSVersions struct { Fake *FakeRancherosV1 // contains filtered or unexported fields }
FakeManagedOSVersions implements ManagedOSVersionInterface
func (*FakeManagedOSVersions) Create ¶
func (c *FakeManagedOSVersions) Create(ctx context.Context, managedOSVersion *rancheroscattleiov1.ManagedOSVersion, opts v1.CreateOptions) (result *rancheroscattleiov1.ManagedOSVersion, err error)
Create takes the representation of a managedOSVersion and creates it. Returns the server's representation of the managedOSVersion, and an error, if there is any.
func (*FakeManagedOSVersions) Delete ¶
func (c *FakeManagedOSVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the managedOSVersion and deletes it. Returns an error if one occurs.
func (*FakeManagedOSVersions) DeleteCollection ¶
func (c *FakeManagedOSVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeManagedOSVersions) Get ¶
func (c *FakeManagedOSVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *rancheroscattleiov1.ManagedOSVersion, err error)
Get takes name of the managedOSVersion, and returns the corresponding managedOSVersion object, and an error if there is any.
func (*FakeManagedOSVersions) List ¶
func (c *FakeManagedOSVersions) List(ctx context.Context, opts v1.ListOptions) (result *rancheroscattleiov1.ManagedOSVersionList, err error)
List takes label and field selectors, and returns the list of ManagedOSVersions that match those selectors.
func (*FakeManagedOSVersions) Patch ¶
func (c *FakeManagedOSVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *rancheroscattleiov1.ManagedOSVersion, err error)
Patch applies the patch and returns the patched managedOSVersion.
func (*FakeManagedOSVersions) Update ¶
func (c *FakeManagedOSVersions) Update(ctx context.Context, managedOSVersion *rancheroscattleiov1.ManagedOSVersion, opts v1.UpdateOptions) (result *rancheroscattleiov1.ManagedOSVersion, err error)
Update takes the representation of a managedOSVersion and updates it. Returns the server's representation of the managedOSVersion, and an error, if there is any.
func (*FakeManagedOSVersions) UpdateStatus ¶
func (c *FakeManagedOSVersions) UpdateStatus(ctx context.Context, managedOSVersion *rancheroscattleiov1.ManagedOSVersion, opts v1.UpdateOptions) (*rancheroscattleiov1.ManagedOSVersion, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeManagedOSVersions) Watch ¶
func (c *FakeManagedOSVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested managedOSVersions.
type FakeRancherosV1 ¶
func (*FakeRancherosV1) MachineInventories ¶
func (c *FakeRancherosV1) MachineInventories(namespace string) v1.MachineInventoryInterface
func (*FakeRancherosV1) MachineRegistrations ¶
func (c *FakeRancherosV1) MachineRegistrations(namespace string) v1.MachineRegistrationInterface
func (*FakeRancherosV1) ManagedOSImages ¶
func (c *FakeRancherosV1) ManagedOSImages(namespace string) v1.ManagedOSImageInterface
func (*FakeRancherosV1) ManagedOSVersionChannels ¶
func (c *FakeRancherosV1) ManagedOSVersionChannels(namespace string) v1.ManagedOSVersionChannelInterface
func (*FakeRancherosV1) ManagedOSVersions ¶
func (c *FakeRancherosV1) ManagedOSVersions(namespace string) v1.ManagedOSVersionInterface
func (*FakeRancherosV1) RESTClient ¶
func (c *FakeRancherosV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.