fake

package
v0.0.0-...-193c7b3 Latest Latest
Warning

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

Go to latest
Published: May 30, 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 FakeDeployments

type FakeDeployments struct {
	Fake *FakeTkoV1alpha1
	// contains filtered or unexported fields
}

FakeDeployments implements DeploymentInterface

func (*FakeDeployments) Create

func (c *FakeDeployments) Create(ctx context.Context, deployment *v1alpha1.Deployment, opts v1.CreateOptions) (result *v1alpha1.Deployment, err error)

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

func (*FakeDeployments) Delete

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

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

func (*FakeDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeployments) Get

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

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

func (*FakeDeployments) List

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

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

func (*FakeDeployments) Patch

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

Patch applies the patch and returns the patched deployment.

func (*FakeDeployments) Update

func (c *FakeDeployments) Update(ctx context.Context, deployment *v1alpha1.Deployment, opts v1.UpdateOptions) (result *v1alpha1.Deployment, err error)

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

func (*FakeDeployments) UpdateStatus

func (c *FakeDeployments) UpdateStatus(ctx context.Context, deployment *v1alpha1.Deployment, opts v1.UpdateOptions) (*v1alpha1.Deployment, error)

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

func (*FakeDeployments) Watch

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

type FakePlugins

type FakePlugins struct {
	Fake *FakeTkoV1alpha1
	// contains filtered or unexported fields
}

FakePlugins implements PluginInterface

func (*FakePlugins) Create

func (c *FakePlugins) Create(ctx context.Context, plugin *v1alpha1.Plugin, opts v1.CreateOptions) (result *v1alpha1.Plugin, err error)

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

func (*FakePlugins) Delete

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

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

func (*FakePlugins) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePlugins) Get

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

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

func (*FakePlugins) List

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

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

func (*FakePlugins) Patch

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

Patch applies the patch and returns the patched plugin.

func (*FakePlugins) Update

func (c *FakePlugins) Update(ctx context.Context, plugin *v1alpha1.Plugin, opts v1.UpdateOptions) (result *v1alpha1.Plugin, err error)

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

func (*FakePlugins) UpdateStatus

func (c *FakePlugins) UpdateStatus(ctx context.Context, plugin *v1alpha1.Plugin, opts v1.UpdateOptions) (*v1alpha1.Plugin, error)

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

func (*FakePlugins) Watch

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

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

type FakeSites

type FakeSites struct {
	Fake *FakeTkoV1alpha1
}

FakeSites implements SiteInterface

func (*FakeSites) Create

func (c *FakeSites) Create(ctx context.Context, site *v1alpha1.Site, opts v1.CreateOptions) (result *v1alpha1.Site, err error)

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

func (*FakeSites) Delete

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

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

func (*FakeSites) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSites) Get

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

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

func (*FakeSites) List

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

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

func (*FakeSites) Patch

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

Patch applies the patch and returns the patched site.

func (*FakeSites) Update

func (c *FakeSites) Update(ctx context.Context, site *v1alpha1.Site, opts v1.UpdateOptions) (result *v1alpha1.Site, err error)

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

func (*FakeSites) UpdateStatus

func (c *FakeSites) UpdateStatus(ctx context.Context, site *v1alpha1.Site, opts v1.UpdateOptions) (*v1alpha1.Site, error)

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

func (*FakeSites) Watch

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

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

type FakeTemplates

type FakeTemplates struct {
	Fake *FakeTkoV1alpha1
}

FakeTemplates implements TemplateInterface

func (*FakeTemplates) Create

func (c *FakeTemplates) Create(ctx context.Context, template *v1alpha1.Template, opts v1.CreateOptions) (result *v1alpha1.Template, err error)

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

func (*FakeTemplates) Delete

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

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

func (*FakeTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTemplates) Get

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

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

func (*FakeTemplates) List

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

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

func (*FakeTemplates) Patch

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

Patch applies the patch and returns the patched template.

func (*FakeTemplates) Update

func (c *FakeTemplates) Update(ctx context.Context, template *v1alpha1.Template, opts v1.UpdateOptions) (result *v1alpha1.Template, err error)

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

func (*FakeTemplates) UpdateStatus

func (c *FakeTemplates) UpdateStatus(ctx context.Context, template *v1alpha1.Template, opts v1.UpdateOptions) (*v1alpha1.Template, error)

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

func (*FakeTemplates) Watch

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

type FakeTkoV1alpha1

type FakeTkoV1alpha1 struct {
	*testing.Fake
}

func (*FakeTkoV1alpha1) Deployments

func (c *FakeTkoV1alpha1) Deployments(namespace string) v1alpha1.DeploymentInterface

func (*FakeTkoV1alpha1) Plugins

func (c *FakeTkoV1alpha1) Plugins(namespace string) v1alpha1.PluginInterface

func (*FakeTkoV1alpha1) RESTClient

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

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

func (*FakeTkoV1alpha1) Sites

func (*FakeTkoV1alpha1) Templates

Jump to

Keyboard shortcuts

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