fake

package
v0.0.0-...-e475e6a Latest Latest
Warning

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

Go to latest
Published: Mar 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 FakeNginxconves

type FakeNginxconves struct {
	Fake *FakeNginxcrdV1
	// contains filtered or unexported fields
}

FakeNginxconves implements NginxconfInterface

func (*FakeNginxconves) Create

func (c *FakeNginxconves) Create(ctx context.Context, nginxconf *nginxcrdv1.Nginxconf, opts v1.CreateOptions) (result *nginxcrdv1.Nginxconf, err error)

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

func (*FakeNginxconves) Delete

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

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

func (*FakeNginxconves) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNginxconves) Get

func (c *FakeNginxconves) Get(ctx context.Context, name string, options v1.GetOptions) (result *nginxcrdv1.Nginxconf, err error)

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

func (*FakeNginxconves) List

func (c *FakeNginxconves) List(ctx context.Context, opts v1.ListOptions) (result *nginxcrdv1.NginxconfList, err error)

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

func (*FakeNginxconves) Patch

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

Patch applies the patch and returns the patched nginxconf.

func (*FakeNginxconves) Update

func (c *FakeNginxconves) Update(ctx context.Context, nginxconf *nginxcrdv1.Nginxconf, opts v1.UpdateOptions) (result *nginxcrdv1.Nginxconf, err error)

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

func (*FakeNginxconves) Watch

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

type FakeNginxcrdV1

type FakeNginxcrdV1 struct {
	*testing.Fake
}

func (*FakeNginxcrdV1) Nginxconves

func (c *FakeNginxcrdV1) Nginxconves(namespace string) v1.NginxconfInterface

func (*FakeNginxcrdV1) RESTClient

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