fake

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

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

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

Get takes name of the machineInventory, and returns the corresponding machineInventory object, and an error if there is any.

func (*FakeMachineInventories) List

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

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

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

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

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

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

Get takes name of the machineRegistration, and returns the corresponding machineRegistration object, and an error if there is any.

func (*FakeMachineRegistrations) List

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

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

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

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

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

Get takes name of the managedOSImage, and returns the corresponding managedOSImage object, and an error if there is any.

func (*FakeManagedOSImages) List

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

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

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

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

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

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

Get takes name of the managedOSVersionChannel, and returns the corresponding managedOSVersionChannel object, and an error if there is any.

func (*FakeManagedOSVersionChannels) List

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

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

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

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

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

Get takes name of the managedOSVersion, and returns the corresponding managedOSVersion object, and an error if there is any.

func (*FakeManagedOSVersions) List

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

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

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

Watch returns a watch.Interface that watches the requested managedOSVersions.

type FakeRancherosV1

type FakeRancherosV1 struct {
	*testing.Fake
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL