fake

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 9 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 FakeClabernetesV1alpha1

type FakeClabernetesV1alpha1 struct {
	*testing.Fake
}

func (*FakeClabernetesV1alpha1) Configs

func (*FakeClabernetesV1alpha1) Connectivities added in v0.0.21

func (c *FakeClabernetesV1alpha1) Connectivities(namespace string) v1alpha1.ConnectivityInterface

func (*FakeClabernetesV1alpha1) ImageRequests

func (c *FakeClabernetesV1alpha1) ImageRequests(namespace string) v1alpha1.ImageRequestInterface

func (*FakeClabernetesV1alpha1) RESTClient

func (c *FakeClabernetesV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeClabernetesV1alpha1) Topologies

func (c *FakeClabernetesV1alpha1) Topologies(namespace string) v1alpha1.TopologyInterface

type FakeConfigs

type FakeConfigs struct {
	Fake *FakeClabernetesV1alpha1
	// contains filtered or unexported fields
}

FakeConfigs implements ConfigInterface

func (*FakeConfigs) Create

func (c *FakeConfigs) Create(
	ctx context.Context,
	config *v1alpha1.Config,
	opts v1.CreateOptions,
) (result *v1alpha1.Config, err error)

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

func (*FakeConfigs) Delete

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

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

func (*FakeConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigs) Get

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

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

func (*FakeConfigs) List

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

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

func (*FakeConfigs) Patch

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

Patch applies the patch and returns the patched config.

func (*FakeConfigs) Update

func (c *FakeConfigs) Update(
	ctx context.Context,
	config *v1alpha1.Config,
	opts v1.UpdateOptions,
) (result *v1alpha1.Config, err error)

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

func (*FakeConfigs) UpdateStatus

func (c *FakeConfigs) UpdateStatus(
	ctx context.Context,
	config *v1alpha1.Config,
	opts v1.UpdateOptions,
) (*v1alpha1.Config, error)

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

func (*FakeConfigs) Watch

func (c *FakeConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeConnectivities added in v0.0.21

type FakeConnectivities struct {
	Fake *FakeClabernetesV1alpha1
	// contains filtered or unexported fields
}

FakeConnectivities implements ConnectivityInterface

func (*FakeConnectivities) Create added in v0.0.21

func (c *FakeConnectivities) Create(
	ctx context.Context,
	connectivity *v1alpha1.Connectivity,
	opts v1.CreateOptions,
) (result *v1alpha1.Connectivity, err error)

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

func (*FakeConnectivities) Delete added in v0.0.21

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

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

func (*FakeConnectivities) DeleteCollection added in v0.0.21

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

DeleteCollection deletes a collection of objects.

func (*FakeConnectivities) Get added in v0.0.21

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

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

func (*FakeConnectivities) List added in v0.0.21

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

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

func (*FakeConnectivities) Patch added in v0.0.21

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

Patch applies the patch and returns the patched connectivity.

func (*FakeConnectivities) Update added in v0.0.21

func (c *FakeConnectivities) Update(
	ctx context.Context,
	connectivity *v1alpha1.Connectivity,
	opts v1.UpdateOptions,
) (result *v1alpha1.Connectivity, err error)

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

func (*FakeConnectivities) UpdateStatus added in v0.0.21

func (c *FakeConnectivities) UpdateStatus(
	ctx context.Context,
	connectivity *v1alpha1.Connectivity,
	opts v1.UpdateOptions,
) (*v1alpha1.Connectivity, error)

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

func (*FakeConnectivities) Watch added in v0.0.21

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

type FakeImageRequests

type FakeImageRequests struct {
	Fake *FakeClabernetesV1alpha1
	// contains filtered or unexported fields
}

FakeImageRequests implements ImageRequestInterface

func (*FakeImageRequests) Create

func (c *FakeImageRequests) Create(
	ctx context.Context,
	imageRequest *v1alpha1.ImageRequest,
	opts v1.CreateOptions,
) (result *v1alpha1.ImageRequest, err error)

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

func (*FakeImageRequests) Delete

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

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

func (*FakeImageRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeImageRequests) Get

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

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

func (*FakeImageRequests) List

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

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

func (*FakeImageRequests) Patch

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

Patch applies the patch and returns the patched imageRequest.

func (*FakeImageRequests) Update

func (c *FakeImageRequests) Update(
	ctx context.Context,
	imageRequest *v1alpha1.ImageRequest,
	opts v1.UpdateOptions,
) (result *v1alpha1.ImageRequest, err error)

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

func (*FakeImageRequests) UpdateStatus

func (c *FakeImageRequests) UpdateStatus(
	ctx context.Context,
	imageRequest *v1alpha1.ImageRequest,
	opts v1.UpdateOptions,
) (*v1alpha1.ImageRequest, error)

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

func (*FakeImageRequests) Watch

func (c *FakeImageRequests) Watch(
	ctx context.Context,
	opts v1.ListOptions,
) (watch.Interface, error)

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

type FakeTopologies

type FakeTopologies struct {
	Fake *FakeClabernetesV1alpha1
	// contains filtered or unexported fields
}

FakeTopologies implements TopologyInterface

func (*FakeTopologies) Create

func (c *FakeTopologies) Create(
	ctx context.Context,
	topology *v1alpha1.Topology,
	opts v1.CreateOptions,
) (result *v1alpha1.Topology, err error)

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

func (*FakeTopologies) Delete

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

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

func (*FakeTopologies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTopologies) Get

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

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

func (*FakeTopologies) List

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

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

func (*FakeTopologies) Patch

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

Patch applies the patch and returns the patched topology.

func (*FakeTopologies) Update

func (c *FakeTopologies) Update(
	ctx context.Context,
	topology *v1alpha1.Topology,
	opts v1.UpdateOptions,
) (result *v1alpha1.Topology, err error)

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

func (*FakeTopologies) UpdateStatus

func (c *FakeTopologies) UpdateStatus(
	ctx context.Context,
	topology *v1alpha1.Topology,
	opts v1.UpdateOptions,
) (*v1alpha1.Topology, error)

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

func (*FakeTopologies) Watch

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

Jump to

Keyboard shortcuts

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