fake

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 10 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 FakeAppCatalogEntries added in v2.6.0

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

FakeAppCatalogEntries implements AppCatalogEntryInterface

func (*FakeAppCatalogEntries) Create added in v2.6.0

func (c *FakeAppCatalogEntries) Create(ctx context.Context, appCatalogEntry *v1alpha1.AppCatalogEntry, opts v1.CreateOptions) (result *v1alpha1.AppCatalogEntry, err error)

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

func (*FakeAppCatalogEntries) Delete added in v2.6.0

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

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

func (*FakeAppCatalogEntries) DeleteCollection added in v2.6.0

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

DeleteCollection deletes a collection of objects.

func (*FakeAppCatalogEntries) Get added in v2.6.0

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

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

func (*FakeAppCatalogEntries) List added in v2.6.0

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

func (*FakeAppCatalogEntries) Patch added in v2.6.0

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

Patch applies the patch and returns the patched appCatalogEntry.

func (*FakeAppCatalogEntries) Update added in v2.6.0

func (c *FakeAppCatalogEntries) Update(ctx context.Context, appCatalogEntry *v1alpha1.AppCatalogEntry, opts v1.UpdateOptions) (result *v1alpha1.AppCatalogEntry, err error)

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

func (*FakeAppCatalogEntries) Watch added in v2.6.0

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

type FakeAppCatalogs

type FakeAppCatalogs struct {
	Fake *FakeApplicationV1alpha1
}

FakeAppCatalogs implements AppCatalogInterface

func (*FakeAppCatalogs) Create

func (c *FakeAppCatalogs) Create(ctx context.Context, appCatalog *v1alpha1.AppCatalog, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAppCatalogs) Get

func (c *FakeAppCatalogs) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.AppCatalog, err error)

Patch applies the patch and returns the patched appCatalog.

func (*FakeAppCatalogs) Update

func (c *FakeAppCatalogs) Update(ctx context.Context, appCatalog *v1alpha1.AppCatalog, opts v1.UpdateOptions) (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

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

type FakeApplicationV1alpha1

type FakeApplicationV1alpha1 struct {
	*testing.Fake
}

func (*FakeApplicationV1alpha1) AppCatalogEntries added in v2.6.0

func (c *FakeApplicationV1alpha1) AppCatalogEntries(namespace string) v1alpha1.AppCatalogEntryInterface

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(ctx context.Context, app *v1alpha1.App, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeApps) Get

func (c *FakeApps) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.App, err error)

Patch applies the patch and returns the patched app.

func (*FakeApps) Update

func (c *FakeApps) Update(ctx context.Context, app *v1alpha1.App, opts v1.UpdateOptions) (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(ctx context.Context, app *v1alpha1.App, opts v1.UpdateOptions) (*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(ctx context.Context, 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(ctx context.Context, chart *v1alpha1.Chart, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCharts) Get

func (c *FakeCharts) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Chart, err error)

Patch applies the patch and returns the patched chart.

func (*FakeCharts) Update

func (c *FakeCharts) Update(ctx context.Context, chart *v1alpha1.Chart, opts v1.UpdateOptions) (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(ctx context.Context, chart *v1alpha1.Chart, opts v1.UpdateOptions) (*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(ctx context.Context, 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