fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 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 FakeAssignmentDedicatedHosts

type FakeAssignmentDedicatedHosts struct {
	Fake *FakeMaintenanceV1alpha1
	// contains filtered or unexported fields
}

FakeAssignmentDedicatedHosts implements AssignmentDedicatedHostInterface

func (*FakeAssignmentDedicatedHosts) Create

Create takes the representation of a assignmentDedicatedHost and creates it. Returns the server's representation of the assignmentDedicatedHost, and an error, if there is any.

func (*FakeAssignmentDedicatedHosts) Delete

Delete takes name of the assignmentDedicatedHost and deletes it. Returns an error if one occurs.

func (*FakeAssignmentDedicatedHosts) DeleteCollection

func (c *FakeAssignmentDedicatedHosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAssignmentDedicatedHosts) Get

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

func (*FakeAssignmentDedicatedHosts) List

List takes label and field selectors, and returns the list of AssignmentDedicatedHosts that match those selectors.

func (*FakeAssignmentDedicatedHosts) Patch

func (c *FakeAssignmentDedicatedHosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.AssignmentDedicatedHost, err error)

Patch applies the patch and returns the patched assignmentDedicatedHost.

func (*FakeAssignmentDedicatedHosts) Update

Update takes the representation of a assignmentDedicatedHost and updates it. Returns the server's representation of the assignmentDedicatedHost, and an error, if there is any.

func (*FakeAssignmentDedicatedHosts) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeAssignmentDedicatedHosts) Watch

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

type FakeAssignmentVirtualMachines

type FakeAssignmentVirtualMachines struct {
	Fake *FakeMaintenanceV1alpha1
	// contains filtered or unexported fields
}

FakeAssignmentVirtualMachines implements AssignmentVirtualMachineInterface

func (*FakeAssignmentVirtualMachines) Create

Create takes the representation of a assignmentVirtualMachine and creates it. Returns the server's representation of the assignmentVirtualMachine, and an error, if there is any.

func (*FakeAssignmentVirtualMachines) Delete

Delete takes name of the assignmentVirtualMachine and deletes it. Returns an error if one occurs.

func (*FakeAssignmentVirtualMachines) DeleteCollection

func (c *FakeAssignmentVirtualMachines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAssignmentVirtualMachines) Get

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

func (*FakeAssignmentVirtualMachines) List

List takes label and field selectors, and returns the list of AssignmentVirtualMachines that match those selectors.

func (*FakeAssignmentVirtualMachines) Patch

func (c *FakeAssignmentVirtualMachines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.AssignmentVirtualMachine, err error)

Patch applies the patch and returns the patched assignmentVirtualMachine.

func (*FakeAssignmentVirtualMachines) Update

Update takes the representation of a assignmentVirtualMachine and updates it. Returns the server's representation of the assignmentVirtualMachine, and an error, if there is any.

func (*FakeAssignmentVirtualMachines) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeAssignmentVirtualMachines) Watch

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

type FakeConfigurations

type FakeConfigurations struct {
	Fake *FakeMaintenanceV1alpha1
	// contains filtered or unexported fields
}

FakeConfigurations implements ConfigurationInterface

func (*FakeConfigurations) Create

func (c *FakeConfigurations) Create(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.CreateOptions) (result *v1alpha1.Configuration, err error)

Create takes the representation of a configuration and creates it. Returns the server's representation of the configuration, and an error, if there is any.

func (*FakeConfigurations) Delete

func (c *FakeConfigurations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the configuration and deletes it. Returns an error if one occurs.

func (*FakeConfigurations) DeleteCollection

func (c *FakeConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConfigurations) Get

func (c *FakeConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Configuration, err error)

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

func (*FakeConfigurations) List

func (c *FakeConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConfigurationList, err error)

List takes label and field selectors, and returns the list of Configurations that match those selectors.

func (*FakeConfigurations) Patch

func (c *FakeConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Configuration, err error)

Patch applies the patch and returns the patched configuration.

func (*FakeConfigurations) Update

func (c *FakeConfigurations) Update(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.UpdateOptions) (result *v1alpha1.Configuration, err error)

Update takes the representation of a configuration and updates it. Returns the server's representation of the configuration, and an error, if there is any.

func (*FakeConfigurations) UpdateStatus

func (c *FakeConfigurations) UpdateStatus(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.UpdateOptions) (*v1alpha1.Configuration, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeConfigurations) Watch

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

type FakeMaintenanceV1alpha1

type FakeMaintenanceV1alpha1 struct {
	*testing.Fake
}

func (*FakeMaintenanceV1alpha1) AssignmentDedicatedHosts

func (c *FakeMaintenanceV1alpha1) AssignmentDedicatedHosts(namespace string) v1alpha1.AssignmentDedicatedHostInterface

func (*FakeMaintenanceV1alpha1) AssignmentVirtualMachines

func (c *FakeMaintenanceV1alpha1) AssignmentVirtualMachines(namespace string) v1alpha1.AssignmentVirtualMachineInterface

func (*FakeMaintenanceV1alpha1) Configurations

func (c *FakeMaintenanceV1alpha1) Configurations(namespace string) v1alpha1.ConfigurationInterface

func (*FakeMaintenanceV1alpha1) RESTClient

func (c *FakeMaintenanceV1alpha1) 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