fake

package
v4.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeEnvironments

type FakeEnvironments struct {
	Fake *FakeJenkinsV1
	// contains filtered or unexported fields
}

FakeEnvironments implements EnvironmentInterface

func (*FakeEnvironments) Create

func (c *FakeEnvironments) Create(ctx context.Context, environment *v1.Environment, opts metav1.CreateOptions) (result *v1.Environment, err error)

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

func (*FakeEnvironments) Delete

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

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

func (*FakeEnvironments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEnvironments) Get

func (c *FakeEnvironments) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Environment, err error)

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

func (*FakeEnvironments) List

func (c *FakeEnvironments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EnvironmentList, err error)

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

func (*FakeEnvironments) Patch

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

Patch applies the patch and returns the patched environment.

func (*FakeEnvironments) Update

func (c *FakeEnvironments) Update(ctx context.Context, environment *v1.Environment, opts metav1.UpdateOptions) (result *v1.Environment, err error)

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

func (*FakeEnvironments) Watch

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

type FakeJenkinsV1

type FakeJenkinsV1 struct {
	*testing.Fake
}

func (*FakeJenkinsV1) Environments

func (c *FakeJenkinsV1) Environments(namespace string) v1.EnvironmentInterface

func (*FakeJenkinsV1) PipelineActivities

func (c *FakeJenkinsV1) PipelineActivities(namespace string) v1.PipelineActivityInterface

func (*FakeJenkinsV1) Plugins

func (c *FakeJenkinsV1) Plugins(namespace string) v1.PluginInterface

func (*FakeJenkinsV1) RESTClient

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

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

func (*FakeJenkinsV1) Releases

func (c *FakeJenkinsV1) Releases(namespace string) v1.ReleaseInterface

func (*FakeJenkinsV1) SourceRepositories

func (c *FakeJenkinsV1) SourceRepositories(namespace string) v1.SourceRepositoryInterface

type FakePipelineActivities

type FakePipelineActivities struct {
	Fake *FakeJenkinsV1
	// contains filtered or unexported fields
}

FakePipelineActivities implements PipelineActivityInterface

func (*FakePipelineActivities) Create

func (c *FakePipelineActivities) Create(ctx context.Context, pipelineActivity *v1.PipelineActivity, opts metav1.CreateOptions) (result *v1.PipelineActivity, err error)

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

func (*FakePipelineActivities) Delete

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

func (*FakePipelineActivities) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePipelineActivities) Get

func (c *FakePipelineActivities) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PipelineActivity, err error)

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

func (*FakePipelineActivities) List

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

func (*FakePipelineActivities) Patch

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

Patch applies the patch and returns the patched pipelineActivity.

func (*FakePipelineActivities) Update

func (c *FakePipelineActivities) Update(ctx context.Context, pipelineActivity *v1.PipelineActivity, opts metav1.UpdateOptions) (result *v1.PipelineActivity, err error)

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

func (*FakePipelineActivities) Watch

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

type FakePlugins

type FakePlugins struct {
	Fake *FakeJenkinsV1
	// contains filtered or unexported fields
}

FakePlugins implements PluginInterface

func (*FakePlugins) Create

func (c *FakePlugins) Create(ctx context.Context, plugin *v1.Plugin, opts metav1.CreateOptions) (result *v1.Plugin, err error)

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

func (*FakePlugins) Delete

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

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

func (*FakePlugins) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePlugins) Get

func (c *FakePlugins) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Plugin, err error)

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

func (*FakePlugins) List

func (c *FakePlugins) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PluginList, err error)

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

func (*FakePlugins) Patch

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

Patch applies the patch and returns the patched plugin.

func (*FakePlugins) Update

func (c *FakePlugins) Update(ctx context.Context, plugin *v1.Plugin, opts metav1.UpdateOptions) (result *v1.Plugin, err error)

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

func (*FakePlugins) Watch

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

type FakeReleases

type FakeReleases struct {
	Fake *FakeJenkinsV1
	// contains filtered or unexported fields
}

FakeReleases implements ReleaseInterface

func (*FakeReleases) Create

func (c *FakeReleases) Create(ctx context.Context, release *v1.Release, opts metav1.CreateOptions) (result *v1.Release, err error)

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

func (*FakeReleases) Delete

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

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

func (*FakeReleases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReleases) Get

func (c *FakeReleases) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Release, err error)

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

func (*FakeReleases) List

func (c *FakeReleases) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReleaseList, err error)

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

func (*FakeReleases) Patch

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

Patch applies the patch and returns the patched release.

func (*FakeReleases) Update

func (c *FakeReleases) Update(ctx context.Context, release *v1.Release, opts metav1.UpdateOptions) (result *v1.Release, err error)

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

func (*FakeReleases) Watch

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

type FakeSourceRepositories

type FakeSourceRepositories struct {
	Fake *FakeJenkinsV1
	// contains filtered or unexported fields
}

FakeSourceRepositories implements SourceRepositoryInterface

func (*FakeSourceRepositories) Create

func (c *FakeSourceRepositories) Create(ctx context.Context, sourceRepository *v1.SourceRepository, opts metav1.CreateOptions) (result *v1.SourceRepository, err error)

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

func (*FakeSourceRepositories) Delete

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

func (*FakeSourceRepositories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSourceRepositories) Get

func (c *FakeSourceRepositories) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SourceRepository, err error)

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

func (*FakeSourceRepositories) List

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

func (*FakeSourceRepositories) Patch

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

Patch applies the patch and returns the patched sourceRepository.

func (*FakeSourceRepositories) Update

func (c *FakeSourceRepositories) Update(ctx context.Context, sourceRepository *v1.SourceRepository, opts metav1.UpdateOptions) (result *v1.SourceRepository, err error)

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

func (*FakeSourceRepositories) Watch

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

Jump to

Keyboard shortcuts

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