fake

package
v0.0.0-...-e58eb51 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 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 FakeAppRollouts

type FakeAppRollouts struct {
	Fake *FakeAppsV1alpha1
}

FakeAppRollouts implements AppRolloutInterface

func (*FakeAppRollouts) Create

func (c *FakeAppRollouts) Create(ctx context.Context, appRollout *v1alpha1.AppRollout, opts v1.CreateOptions) (result *v1alpha1.AppRollout, err error)

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

func (*FakeAppRollouts) Delete

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

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

func (*FakeAppRollouts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAppRollouts) Get

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

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

func (*FakeAppRollouts) List

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

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

func (*FakeAppRollouts) Patch

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

Patch applies the patch and returns the patched appRollout.

func (*FakeAppRollouts) Update

func (c *FakeAppRollouts) Update(ctx context.Context, appRollout *v1alpha1.AppRollout, opts v1.UpdateOptions) (result *v1alpha1.AppRollout, err error)

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

func (*FakeAppRollouts) UpdateStatus

func (c *FakeAppRollouts) UpdateStatus(ctx context.Context, appRollout *v1alpha1.AppRollout, opts v1.UpdateOptions) (*v1alpha1.AppRollout, error)

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

func (*FakeAppRollouts) Watch

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

type FakeApps

type FakeApps struct {
	Fake *FakeAppsV1alpha1
}

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) 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 FakeAppsV1alpha1

type FakeAppsV1alpha1 struct {
	*testing.Fake
}

func (*FakeAppsV1alpha1) AppRollouts

func (*FakeAppsV1alpha1) Apps

func (*FakeAppsV1alpha1) ChartAssignments

func (c *FakeAppsV1alpha1) ChartAssignments() v1alpha1.ChartAssignmentInterface

func (*FakeAppsV1alpha1) RESTClient

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

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

func (*FakeAppsV1alpha1) ResourceSets

type FakeChartAssignments

type FakeChartAssignments struct {
	Fake *FakeAppsV1alpha1
}

FakeChartAssignments implements ChartAssignmentInterface

func (*FakeChartAssignments) Create

func (c *FakeChartAssignments) Create(ctx context.Context, chartAssignment *v1alpha1.ChartAssignment, opts v1.CreateOptions) (result *v1alpha1.ChartAssignment, err error)

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

func (*FakeChartAssignments) Delete

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

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

func (*FakeChartAssignments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChartAssignments) Get

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

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

func (*FakeChartAssignments) List

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

func (*FakeChartAssignments) Patch

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

Patch applies the patch and returns the patched chartAssignment.

func (*FakeChartAssignments) Update

func (c *FakeChartAssignments) Update(ctx context.Context, chartAssignment *v1alpha1.ChartAssignment, opts v1.UpdateOptions) (result *v1alpha1.ChartAssignment, err error)

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

func (*FakeChartAssignments) UpdateStatus

func (c *FakeChartAssignments) UpdateStatus(ctx context.Context, chartAssignment *v1alpha1.ChartAssignment, opts v1.UpdateOptions) (*v1alpha1.ChartAssignment, error)

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

func (*FakeChartAssignments) Watch

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

type FakeResourceSets

type FakeResourceSets struct {
	Fake *FakeAppsV1alpha1
}

FakeResourceSets implements ResourceSetInterface

func (*FakeResourceSets) Create

func (c *FakeResourceSets) Create(ctx context.Context, resourceSet *v1alpha1.ResourceSet, opts v1.CreateOptions) (result *v1alpha1.ResourceSet, err error)

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

func (*FakeResourceSets) Delete

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

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

func (*FakeResourceSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceSets) Get

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

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

func (*FakeResourceSets) List

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

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

func (*FakeResourceSets) Patch

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

Patch applies the patch and returns the patched resourceSet.

func (*FakeResourceSets) Update

func (c *FakeResourceSets) Update(ctx context.Context, resourceSet *v1alpha1.ResourceSet, opts v1.UpdateOptions) (result *v1alpha1.ResourceSet, err error)

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

func (*FakeResourceSets) UpdateStatus

func (c *FakeResourceSets) UpdateStatus(ctx context.Context, resourceSet *v1alpha1.ResourceSet, opts v1.UpdateOptions) (*v1alpha1.ResourceSet, error)

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

func (*FakeResourceSets) Watch

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

Jump to

Keyboard shortcuts

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