fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 FakeDeploymentV1alpha1

type FakeDeploymentV1alpha1 struct {
	*testing.Fake
}

func (*FakeDeploymentV1alpha1) Deployments

func (c *FakeDeploymentV1alpha1) Deployments(namespace string) v1alpha1.DeploymentInterface

func (*FakeDeploymentV1alpha1) ElasticsearchKeystores added in v0.5.0

func (c *FakeDeploymentV1alpha1) ElasticsearchKeystores(namespace string) v1alpha1.ElasticsearchKeystoreInterface

func (*FakeDeploymentV1alpha1) Extensions

func (c *FakeDeploymentV1alpha1) Extensions(namespace string) v1alpha1.ExtensionInterface

func (*FakeDeploymentV1alpha1) RESTClient

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

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

func (*FakeDeploymentV1alpha1) TrafficFilterAssociations

func (c *FakeDeploymentV1alpha1) TrafficFilterAssociations(namespace string) v1alpha1.TrafficFilterAssociationInterface

func (*FakeDeploymentV1alpha1) TrafficFilters

func (c *FakeDeploymentV1alpha1) TrafficFilters(namespace string) v1alpha1.TrafficFilterInterface

type FakeDeployments

type FakeDeployments struct {
	Fake *FakeDeploymentV1alpha1
	// contains filtered or unexported fields
}

FakeDeployments implements DeploymentInterface

func (*FakeDeployments) Create

func (c *FakeDeployments) Create(ctx context.Context, deployment *v1alpha1.Deployment, opts v1.CreateOptions) (result *v1alpha1.Deployment, err error)

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

func (*FakeDeployments) Delete

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

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

func (*FakeDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeployments) Get

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

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

func (*FakeDeployments) List

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

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

func (*FakeDeployments) Patch

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

Patch applies the patch and returns the patched deployment.

func (*FakeDeployments) Update

func (c *FakeDeployments) Update(ctx context.Context, deployment *v1alpha1.Deployment, opts v1.UpdateOptions) (result *v1alpha1.Deployment, err error)

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

func (*FakeDeployments) UpdateStatus

func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1alpha1.Deployment, opts v1.UpdateOptions) (*v1alpha1.Deployment, error)

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

func (*FakeDeployments) Watch

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

type FakeElasticsearchKeystores added in v0.5.0

type FakeElasticsearchKeystores struct {
	Fake *FakeDeploymentV1alpha1
	// contains filtered or unexported fields
}

FakeElasticsearchKeystores implements ElasticsearchKeystoreInterface

func (*FakeElasticsearchKeystores) Create added in v0.5.0

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

func (*FakeElasticsearchKeystores) Delete added in v0.5.0

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

func (*FakeElasticsearchKeystores) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeElasticsearchKeystores) Get added in v0.5.0

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

func (*FakeElasticsearchKeystores) List added in v0.5.0

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

func (*FakeElasticsearchKeystores) Patch added in v0.5.0

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

Patch applies the patch and returns the patched elasticsearchKeystore.

func (*FakeElasticsearchKeystores) Update added in v0.5.0

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

func (*FakeElasticsearchKeystores) UpdateStatus added in v0.5.0

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

func (*FakeElasticsearchKeystores) Watch added in v0.5.0

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

type FakeExtensions

type FakeExtensions struct {
	Fake *FakeDeploymentV1alpha1
	// contains filtered or unexported fields
}

FakeExtensions implements ExtensionInterface

func (*FakeExtensions) Create

func (c *FakeExtensions) Create(ctx context.Context, extension *v1alpha1.Extension, opts v1.CreateOptions) (result *v1alpha1.Extension, err error)

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

func (*FakeExtensions) Delete

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

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

func (*FakeExtensions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExtensions) Get

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

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

func (*FakeExtensions) List

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

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

func (*FakeExtensions) Patch

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

Patch applies the patch and returns the patched extension.

func (*FakeExtensions) Update

func (c *FakeExtensions) Update(ctx context.Context, extension *v1alpha1.Extension, opts v1.UpdateOptions) (result *v1alpha1.Extension, err error)

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

func (*FakeExtensions) UpdateStatus

func (c *FakeExtensions) UpdateStatus(ctx context.Context, extension *v1alpha1.Extension, opts v1.UpdateOptions) (*v1alpha1.Extension, error)

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

func (*FakeExtensions) Watch

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

type FakeTrafficFilterAssociations

type FakeTrafficFilterAssociations struct {
	Fake *FakeDeploymentV1alpha1
	// contains filtered or unexported fields
}

FakeTrafficFilterAssociations implements TrafficFilterAssociationInterface

func (*FakeTrafficFilterAssociations) Create

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

func (*FakeTrafficFilterAssociations) Delete

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

func (*FakeTrafficFilterAssociations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTrafficFilterAssociations) Get

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

func (*FakeTrafficFilterAssociations) List

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

func (*FakeTrafficFilterAssociations) Patch

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

Patch applies the patch and returns the patched trafficFilterAssociation.

func (*FakeTrafficFilterAssociations) Update

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

func (*FakeTrafficFilterAssociations) UpdateStatus

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

func (*FakeTrafficFilterAssociations) Watch

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

type FakeTrafficFilters

type FakeTrafficFilters struct {
	Fake *FakeDeploymentV1alpha1
	// contains filtered or unexported fields
}

FakeTrafficFilters implements TrafficFilterInterface

func (*FakeTrafficFilters) Create

func (c *FakeTrafficFilters) Create(ctx context.Context, trafficFilter *v1alpha1.TrafficFilter, opts v1.CreateOptions) (result *v1alpha1.TrafficFilter, err error)

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

func (*FakeTrafficFilters) Delete

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

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

func (*FakeTrafficFilters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTrafficFilters) Get

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

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

func (*FakeTrafficFilters) List

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

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

func (*FakeTrafficFilters) Patch

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

Patch applies the patch and returns the patched trafficFilter.

func (*FakeTrafficFilters) Update

func (c *FakeTrafficFilters) Update(ctx context.Context, trafficFilter *v1alpha1.TrafficFilter, opts v1.UpdateOptions) (result *v1alpha1.TrafficFilter, err error)

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

func (*FakeTrafficFilters) UpdateStatus

func (c *FakeTrafficFilters) UpdateStatus(ctx context.Context, trafficFilter *v1alpha1.TrafficFilter, opts v1.UpdateOptions) (*v1alpha1.TrafficFilter, error)

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

func (*FakeTrafficFilters) Watch

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

Jump to

Keyboard shortcuts

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