fake

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 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 FakeMaistraV1alpha1 added in v0.0.2

type FakeMaistraV1alpha1 struct {
	*testing.Fake
}

func (*FakeMaistraV1alpha1) RESTClient added in v0.0.2

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

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

func (*FakeMaistraV1alpha1) Sessions added in v0.0.2

func (c *FakeMaistraV1alpha1) Sessions(namespace string) v1alpha1.SessionInterface

type FakeSessions

type FakeSessions struct {
	Fake *FakeMaistraV1alpha1
	// contains filtered or unexported fields
}

FakeSessions implements SessionInterface

func (*FakeSessions) Create

func (c *FakeSessions) Create(session *v1alpha1.Session) (result *v1alpha1.Session, err error)

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

func (*FakeSessions) Delete

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

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

func (*FakeSessions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSessions) Get

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

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

func (*FakeSessions) List

func (c *FakeSessions) List(opts v1.ListOptions) (result *v1alpha1.SessionList, err error)

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

func (*FakeSessions) Patch

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

Patch applies the patch and returns the patched session.

func (*FakeSessions) Update

func (c *FakeSessions) Update(session *v1alpha1.Session) (result *v1alpha1.Session, err error)

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

func (*FakeSessions) Watch

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

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

Jump to

Keyboard shortcuts

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