Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAgentcontrollerV1alpha1
- type FakeAgents
- func (c *FakeAgents) Create(ctx context.Context, agent *v1alpha1.Agent, opts v1.CreateOptions) (result *v1alpha1.Agent, err error)
- func (c *FakeAgents) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeAgents) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeAgents) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Agent, err error)
- func (c *FakeAgents) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AgentList, err error)
- func (c *FakeAgents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Agent, err error)
- func (c *FakeAgents) Update(ctx context.Context, agent *v1alpha1.Agent, opts v1.UpdateOptions) (result *v1alpha1.Agent, err error)
- func (c *FakeAgents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAgentcontrollerV1alpha1 ¶
func (*FakeAgentcontrollerV1alpha1) Agents ¶
func (c *FakeAgentcontrollerV1alpha1) Agents(namespace string) v1alpha1.AgentInterface
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.