fake

package
v1.29.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more 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 FakeBastions

type FakeBastions struct {
	Fake *FakeOperationsV1alpha1
	// contains filtered or unexported fields
}

FakeBastions implements BastionInterface

func (*FakeBastions) Create

func (c *FakeBastions) Create(ctx context.Context, bastion *v1alpha1.Bastion, opts v1.CreateOptions) (result *v1alpha1.Bastion, err error)

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

func (*FakeBastions) Delete

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

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

func (*FakeBastions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBastions) Get

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

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

func (*FakeBastions) List

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

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

func (*FakeBastions) Patch

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

Patch applies the patch and returns the patched bastion.

func (*FakeBastions) Update

func (c *FakeBastions) Update(ctx context.Context, bastion *v1alpha1.Bastion, opts v1.UpdateOptions) (result *v1alpha1.Bastion, err error)

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

func (*FakeBastions) UpdateStatus

func (c *FakeBastions) UpdateStatus(ctx context.Context, bastion *v1alpha1.Bastion, opts v1.UpdateOptions) (*v1alpha1.Bastion, error)

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

func (*FakeBastions) Watch

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

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

type FakeOperationsV1alpha1

type FakeOperationsV1alpha1 struct {
	*testing.Fake
}

func (*FakeOperationsV1alpha1) Bastions

func (c *FakeOperationsV1alpha1) Bastions(namespace string) v1alpha1.BastionInterface

func (*FakeOperationsV1alpha1) RESTClient

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