fake

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 FakeAppCatalogs

type FakeAppCatalogs struct {
	Fake *FakeApplicationV1alpha1
}

FakeAppCatalogs implements AppCatalogInterface

func (*FakeAppCatalogs) Create

func (c *FakeAppCatalogs) Create(appCatalog *v1alpha1.AppCatalog) (result *v1alpha1.AppCatalog, err error)

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

func (*FakeAppCatalogs) Delete

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

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

func (*FakeAppCatalogs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAppCatalogs) Get

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

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

func (*FakeAppCatalogs) List

func (c *FakeAppCatalogs) List(opts v1.ListOptions) (result *v1alpha1.AppCatalogList, err error)

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

func (*FakeAppCatalogs) Patch

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

Patch applies the patch and returns the patched appCatalog.

func (*FakeAppCatalogs) Update

func (c *FakeAppCatalogs) Update(appCatalog *v1alpha1.AppCatalog) (result *v1alpha1.AppCatalog, err error)

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

func (*FakeAppCatalogs) Watch

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

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

type FakeApplicationV1alpha1

type FakeApplicationV1alpha1 struct {
	*testing.Fake
}

func (*FakeApplicationV1alpha1) AppCatalogs

func (*FakeApplicationV1alpha1) Apps

func (*FakeApplicationV1alpha1) Charts

func (*FakeApplicationV1alpha1) RESTClient

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

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

type FakeApps

type FakeApps struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeApps implements AppInterface

func (*FakeApps) Create

func (c *FakeApps) Create(app *v1alpha1.App) (result *v1alpha1.App, err error)

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

func (*FakeApps) Delete

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

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

func (*FakeApps) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApps) Get

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

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

func (*FakeApps) List

func (c *FakeApps) List(opts v1.ListOptions) (result *v1alpha1.AppList, err error)

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

func (*FakeApps) Patch

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

Patch applies the patch and returns the patched app.

func (*FakeApps) Update

func (c *FakeApps) Update(app *v1alpha1.App) (result *v1alpha1.App, err error)

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

func (*FakeApps) UpdateStatus

func (c *FakeApps) UpdateStatus(app *v1alpha1.App) (*v1alpha1.App, error)

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

func (*FakeApps) Watch

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

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

type FakeCharts

type FakeCharts struct {
	Fake *FakeApplicationV1alpha1
	// contains filtered or unexported fields
}

FakeCharts implements ChartInterface

func (*FakeCharts) Create

func (c *FakeCharts) Create(chart *v1alpha1.Chart) (result *v1alpha1.Chart, err error)

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

func (*FakeCharts) Delete

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

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

func (*FakeCharts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCharts) Get

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

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

func (*FakeCharts) List

func (c *FakeCharts) List(opts v1.ListOptions) (result *v1alpha1.ChartList, err error)

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

func (*FakeCharts) Patch

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

Patch applies the patch and returns the patched chart.

func (*FakeCharts) Update

func (c *FakeCharts) Update(chart *v1alpha1.Chart) (result *v1alpha1.Chart, err error)

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

func (*FakeCharts) UpdateStatus

func (c *FakeCharts) UpdateStatus(chart *v1alpha1.Chart) (*v1alpha1.Chart, error)

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

func (*FakeCharts) Watch

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

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

Jump to

Keyboard shortcuts

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