fake

package
v2.0.0-...-5e8ce1c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 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 FakeAppProjects

type FakeAppProjects struct {
	Fake *FakeArgoprojV1alpha1
	// contains filtered or unexported fields
}

FakeAppProjects implements AppProjectInterface

func (*FakeAppProjects) Create

func (c *FakeAppProjects) Create(ctx context.Context, appProject *v1alpha1.AppProject, opts v1.CreateOptions) (result *v1alpha1.AppProject, err error)

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

func (*FakeAppProjects) Delete

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

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

func (*FakeAppProjects) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAppProjects) Get

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

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

func (*FakeAppProjects) List

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

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

func (*FakeAppProjects) Patch

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

Patch applies the patch and returns the patched appProject.

func (*FakeAppProjects) Update

func (c *FakeAppProjects) Update(ctx context.Context, appProject *v1alpha1.AppProject, opts v1.UpdateOptions) (result *v1alpha1.AppProject, err error)

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

func (*FakeAppProjects) Watch

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

type FakeApplicationSets

type FakeApplicationSets struct {
	Fake *FakeArgoprojV1alpha1
	// contains filtered or unexported fields
}

FakeApplicationSets implements ApplicationSetInterface

func (*FakeApplicationSets) Create

func (c *FakeApplicationSets) Create(ctx context.Context, applicationSet *v1alpha1.ApplicationSet, opts v1.CreateOptions) (result *v1alpha1.ApplicationSet, err error)

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

func (*FakeApplicationSets) Delete

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

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

func (*FakeApplicationSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplicationSets) Get

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

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

func (*FakeApplicationSets) List

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

func (*FakeApplicationSets) Patch

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

Patch applies the patch and returns the patched applicationSet.

func (*FakeApplicationSets) Update

func (c *FakeApplicationSets) Update(ctx context.Context, applicationSet *v1alpha1.ApplicationSet, opts v1.UpdateOptions) (result *v1alpha1.ApplicationSet, err error)

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

func (*FakeApplicationSets) Watch

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

type FakeApplications

type FakeApplications struct {
	Fake *FakeArgoprojV1alpha1
	// contains filtered or unexported fields
}

FakeApplications implements ApplicationInterface

func (*FakeApplications) Create

func (c *FakeApplications) Create(ctx context.Context, application *v1alpha1.Application, opts v1.CreateOptions) (result *v1alpha1.Application, err error)

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

func (*FakeApplications) Delete

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

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

func (*FakeApplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplications) Get

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

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

func (*FakeApplications) List

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

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

func (*FakeApplications) Patch

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

Patch applies the patch and returns the patched application.

func (*FakeApplications) Update

func (c *FakeApplications) Update(ctx context.Context, application *v1alpha1.Application, opts v1.UpdateOptions) (result *v1alpha1.Application, err error)

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

func (*FakeApplications) Watch

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

type FakeArgoprojV1alpha1

type FakeArgoprojV1alpha1 struct {
	*testing.Fake
}

func (*FakeArgoprojV1alpha1) AppProjects

func (c *FakeArgoprojV1alpha1) AppProjects(namespace string) v1alpha1.AppProjectInterface

func (*FakeArgoprojV1alpha1) ApplicationSets

func (c *FakeArgoprojV1alpha1) ApplicationSets(namespace string) v1alpha1.ApplicationSetInterface

func (*FakeArgoprojV1alpha1) Applications

func (c *FakeArgoprojV1alpha1) Applications(namespace string) v1alpha1.ApplicationInterface

func (*FakeArgoprojV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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