fake

package
v0.0.0-...-2fafe3c Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 FakeAgentcontrollerV1alpha1

type FakeAgentcontrollerV1alpha1 struct {
	*testing.Fake
}

func (*FakeAgentcontrollerV1alpha1) Agents

func (*FakeAgentcontrollerV1alpha1) RESTClient

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

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

type FakeAgents

type FakeAgents struct {
	Fake *FakeAgentcontrollerV1alpha1
	// contains filtered or unexported fields
}

FakeAgents implements AgentInterface

func (*FakeAgents) Create

func (c *FakeAgents) Create(ctx context.Context, agent *v1alpha1.Agent, opts v1.CreateOptions) (result *v1alpha1.Agent, err error)

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

func (*FakeAgents) Delete

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

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

func (*FakeAgents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAgents) Get

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

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

func (*FakeAgents) List

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

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

func (*FakeAgents) Patch

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

Patch applies the patch and returns the patched agent.

func (*FakeAgents) Update

func (c *FakeAgents) Update(ctx context.Context, agent *v1alpha1.Agent, opts v1.UpdateOptions) (result *v1alpha1.Agent, err error)

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

func (*FakeAgents) Watch

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

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

Jump to

Keyboard shortcuts

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