fake

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more 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 FakeAppHistories

type FakeAppHistories struct {
	Fake *FakeApplicationV1
	// contains filtered or unexported fields
}

FakeAppHistories implements AppHistoryInterface

type FakeAppResources

type FakeAppResources struct {
	Fake *FakeApplicationV1
	// contains filtered or unexported fields
}

FakeAppResources implements AppResourceInterface

type FakeApplicationV1

type FakeApplicationV1 struct {
	*testing.Fake
}

func (*FakeApplicationV1) AppHistories

func (c *FakeApplicationV1) AppHistories(namespace string) v1.AppHistoryInterface

func (*FakeApplicationV1) AppResources

func (c *FakeApplicationV1) AppResources(namespace string) v1.AppResourceInterface

func (*FakeApplicationV1) Apps

func (c *FakeApplicationV1) Apps(namespace string) v1.AppInterface

func (*FakeApplicationV1) ConfigMaps

func (c *FakeApplicationV1) ConfigMaps() v1.ConfigMapInterface

func (*FakeApplicationV1) RESTClient

func (c *FakeApplicationV1) 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 *FakeApplicationV1
	// contains filtered or unexported fields
}

FakeApps implements AppInterface

func (*FakeApps) Create

func (c *FakeApps) Create(ctx context.Context, app *applicationv1.App, opts v1.CreateOptions) (result *applicationv1.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) Get

func (c *FakeApps) Get(ctx context.Context, name string, options v1.GetOptions) (result *applicationv1.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 *applicationv1.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 *applicationv1.App, err error)

Patch applies the patch and returns the patched app.

func (*FakeApps) Update

func (c *FakeApps) Update(ctx context.Context, app *applicationv1.App, opts v1.UpdateOptions) (result *applicationv1.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 *applicationv1.App, opts v1.UpdateOptions) (*applicationv1.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 FakeConfigMaps

type FakeConfigMaps struct {
	Fake *FakeApplicationV1
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(ctx context.Context, configMap *applicationv1.ConfigMap, opts v1.CreateOptions) (result *applicationv1.ConfigMap, err error)

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

func (*FakeConfigMaps) Delete

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

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

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *applicationv1.ConfigMap, err error)

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

func (*FakeConfigMaps) List

func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *applicationv1.ConfigMapList, err error)

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

func (*FakeConfigMaps) Patch

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

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *applicationv1.ConfigMap, opts v1.UpdateOptions) (result *applicationv1.ConfigMap, err error)

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

func (*FakeConfigMaps) Watch

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

Jump to

Keyboard shortcuts

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