fake

package
v0.0.0-...-8e3368f Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 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 FakeConvoxV1

type FakeConvoxV1 struct {
	*testing.Fake
}

func (*FakeConvoxV1) RESTClient

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

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

func (*FakeConvoxV1) Stacks

func (c *FakeConvoxV1) Stacks(namespace string) v1.StackInterface

type FakeStacks

type FakeStacks struct {
	Fake *FakeConvoxV1
	// contains filtered or unexported fields
}

FakeStacks implements StackInterface

func (*FakeStacks) Create

func (c *FakeStacks) Create(stack *convoxv1.Stack) (result *convoxv1.Stack, err error)

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

func (*FakeStacks) Delete

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

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

func (*FakeStacks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStacks) Get

func (c *FakeStacks) Get(name string, options v1.GetOptions) (result *convoxv1.Stack, err error)

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

func (*FakeStacks) List

func (c *FakeStacks) List(opts v1.ListOptions) (result *convoxv1.StackList, err error)

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

func (*FakeStacks) Patch

func (c *FakeStacks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *convoxv1.Stack, err error)

Patch applies the patch and returns the patched stack.

func (*FakeStacks) Update

func (c *FakeStacks) Update(stack *convoxv1.Stack) (result *convoxv1.Stack, err error)

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

func (*FakeStacks) Watch

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

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

Jump to

Keyboard shortcuts

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