fake

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT 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 FakeConsoleAuthorisations

type FakeConsoleAuthorisations struct {
	Fake *FakeWorkloadsV1alpha1
	// contains filtered or unexported fields
}

FakeConsoleAuthorisations implements ConsoleAuthorisationInterface

func (*FakeConsoleAuthorisations) Create

func (c *FakeConsoleAuthorisations) Create(consoleAuthorisation *v1alpha1.ConsoleAuthorisation) (result *v1alpha1.ConsoleAuthorisation, err error)

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

func (*FakeConsoleAuthorisations) Delete

func (c *FakeConsoleAuthorisations) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeConsoleAuthorisations) DeleteCollection

func (c *FakeConsoleAuthorisations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConsoleAuthorisations) Get

func (c *FakeConsoleAuthorisations) Get(name string, options v1.GetOptions) (result *v1alpha1.ConsoleAuthorisation, err error)

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

func (*FakeConsoleAuthorisations) List

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

func (*FakeConsoleAuthorisations) Patch

func (c *FakeConsoleAuthorisations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ConsoleAuthorisation, err error)

Patch applies the patch and returns the patched consoleAuthorisation.

func (*FakeConsoleAuthorisations) Update

func (c *FakeConsoleAuthorisations) Update(consoleAuthorisation *v1alpha1.ConsoleAuthorisation) (result *v1alpha1.ConsoleAuthorisation, err error)

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

func (*FakeConsoleAuthorisations) Watch

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

type FakeConsoleTemplates

type FakeConsoleTemplates struct {
	Fake *FakeWorkloadsV1alpha1
	// contains filtered or unexported fields
}

FakeConsoleTemplates implements ConsoleTemplateInterface

func (*FakeConsoleTemplates) Create

func (c *FakeConsoleTemplates) Create(consoleTemplate *v1alpha1.ConsoleTemplate) (result *v1alpha1.ConsoleTemplate, err error)

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

func (*FakeConsoleTemplates) Delete

func (c *FakeConsoleTemplates) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeConsoleTemplates) DeleteCollection

func (c *FakeConsoleTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConsoleTemplates) Get

func (c *FakeConsoleTemplates) Get(name string, options v1.GetOptions) (result *v1alpha1.ConsoleTemplate, err error)

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

func (*FakeConsoleTemplates) List

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

func (*FakeConsoleTemplates) Patch

func (c *FakeConsoleTemplates) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ConsoleTemplate, err error)

Patch applies the patch and returns the patched consoleTemplate.

func (*FakeConsoleTemplates) Update

func (c *FakeConsoleTemplates) Update(consoleTemplate *v1alpha1.ConsoleTemplate) (result *v1alpha1.ConsoleTemplate, err error)

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

func (*FakeConsoleTemplates) Watch

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

type FakeConsoles

type FakeConsoles struct {
	Fake *FakeWorkloadsV1alpha1
	// contains filtered or unexported fields
}

FakeConsoles implements ConsoleInterface

func (*FakeConsoles) Create

func (c *FakeConsoles) Create(console *v1alpha1.Console) (result *v1alpha1.Console, err error)

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

func (*FakeConsoles) Delete

func (c *FakeConsoles) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeConsoles) DeleteCollection

func (c *FakeConsoles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConsoles) Get

func (c *FakeConsoles) Get(name string, options v1.GetOptions) (result *v1alpha1.Console, err error)

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

func (*FakeConsoles) List

func (c *FakeConsoles) List(opts v1.ListOptions) (result *v1alpha1.ConsoleList, err error)

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

func (*FakeConsoles) Patch

func (c *FakeConsoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Console, err error)

Patch applies the patch and returns the patched console.

func (*FakeConsoles) Update

func (c *FakeConsoles) Update(console *v1alpha1.Console) (result *v1alpha1.Console, err error)

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

func (*FakeConsoles) UpdateStatus

func (c *FakeConsoles) UpdateStatus(console *v1alpha1.Console) (*v1alpha1.Console, error)

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

func (*FakeConsoles) Watch

func (c *FakeConsoles) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeWorkloadsV1alpha1

type FakeWorkloadsV1alpha1 struct {
	*testing.Fake
}

func (*FakeWorkloadsV1alpha1) ConsoleAuthorisations

func (c *FakeWorkloadsV1alpha1) ConsoleAuthorisations(namespace string) v1alpha1.ConsoleAuthorisationInterface

func (*FakeWorkloadsV1alpha1) ConsoleTemplates

func (c *FakeWorkloadsV1alpha1) ConsoleTemplates(namespace string) v1alpha1.ConsoleTemplateInterface

func (*FakeWorkloadsV1alpha1) Consoles

func (c *FakeWorkloadsV1alpha1) Consoles(namespace string) v1alpha1.ConsoleInterface

func (*FakeWorkloadsV1alpha1) RESTClient

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