fake

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 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 FakeBuildRuns

type FakeBuildRuns struct {
	Fake *FakeShipwrightV1alpha1
	// contains filtered or unexported fields
}

FakeBuildRuns implements BuildRunInterface

func (*FakeBuildRuns) Create

func (c *FakeBuildRuns) Create(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.CreateOptions) (result *v1alpha1.BuildRun, err error)

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

func (*FakeBuildRuns) Delete

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

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

func (*FakeBuildRuns) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBuildRuns) Get

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

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

func (*FakeBuildRuns) List

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

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

func (*FakeBuildRuns) Patch

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

Patch applies the patch and returns the patched buildRun.

func (*FakeBuildRuns) Update

func (c *FakeBuildRuns) Update(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.UpdateOptions) (result *v1alpha1.BuildRun, err error)

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

func (*FakeBuildRuns) UpdateStatus

func (c *FakeBuildRuns) UpdateStatus(ctx context.Context, buildRun *v1alpha1.BuildRun, opts v1.UpdateOptions) (*v1alpha1.BuildRun, error)

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

func (*FakeBuildRuns) Watch

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

type FakeBuildStrategies

type FakeBuildStrategies struct {
	Fake *FakeShipwrightV1alpha1
	// contains filtered or unexported fields
}

FakeBuildStrategies implements BuildStrategyInterface

func (*FakeBuildStrategies) Create

func (c *FakeBuildStrategies) Create(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, opts v1.CreateOptions) (result *v1alpha1.BuildStrategy, err error)

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

func (*FakeBuildStrategies) Delete

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

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

func (*FakeBuildStrategies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBuildStrategies) Get

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

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

func (*FakeBuildStrategies) List

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

func (*FakeBuildStrategies) Patch

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

Patch applies the patch and returns the patched buildStrategy.

func (*FakeBuildStrategies) Update

func (c *FakeBuildStrategies) Update(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, opts v1.UpdateOptions) (result *v1alpha1.BuildStrategy, err error)

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

func (*FakeBuildStrategies) UpdateStatus

func (c *FakeBuildStrategies) UpdateStatus(ctx context.Context, buildStrategy *v1alpha1.BuildStrategy, opts v1.UpdateOptions) (*v1alpha1.BuildStrategy, error)

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

func (*FakeBuildStrategies) Watch

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

type FakeBuilds

type FakeBuilds struct {
	Fake *FakeShipwrightV1alpha1
	// contains filtered or unexported fields
}

FakeBuilds implements BuildInterface

func (*FakeBuilds) Create

func (c *FakeBuilds) Create(ctx context.Context, build *v1alpha1.Build, opts v1.CreateOptions) (result *v1alpha1.Build, err error)

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

func (*FakeBuilds) Delete

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

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

func (*FakeBuilds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBuilds) Get

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

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

func (*FakeBuilds) List

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

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

func (*FakeBuilds) Patch

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

Patch applies the patch and returns the patched build.

func (*FakeBuilds) Update

func (c *FakeBuilds) Update(ctx context.Context, build *v1alpha1.Build, opts v1.UpdateOptions) (result *v1alpha1.Build, err error)

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

func (*FakeBuilds) UpdateStatus

func (c *FakeBuilds) UpdateStatus(ctx context.Context, build *v1alpha1.Build, opts v1.UpdateOptions) (*v1alpha1.Build, error)

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

func (*FakeBuilds) Watch

func (c *FakeBuilds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeClusterBuildStrategies

type FakeClusterBuildStrategies struct {
	Fake *FakeShipwrightV1alpha1
}

FakeClusterBuildStrategies implements ClusterBuildStrategyInterface

func (*FakeClusterBuildStrategies) Create

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

func (*FakeClusterBuildStrategies) Delete

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

func (*FakeClusterBuildStrategies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterBuildStrategies) Get

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

func (*FakeClusterBuildStrategies) List

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

func (*FakeClusterBuildStrategies) Patch

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

Patch applies the patch and returns the patched clusterBuildStrategy.

func (*FakeClusterBuildStrategies) Update

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

func (*FakeClusterBuildStrategies) UpdateStatus

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

func (*FakeClusterBuildStrategies) Watch

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

type FakeShipwrightV1alpha1

type FakeShipwrightV1alpha1 struct {
	*testing.Fake
}

func (*FakeShipwrightV1alpha1) BuildRuns

func (c *FakeShipwrightV1alpha1) BuildRuns(namespace string) v1alpha1.BuildRunInterface

func (*FakeShipwrightV1alpha1) BuildStrategies

func (c *FakeShipwrightV1alpha1) BuildStrategies(namespace string) v1alpha1.BuildStrategyInterface

func (*FakeShipwrightV1alpha1) Builds

func (*FakeShipwrightV1alpha1) ClusterBuildStrategies

func (*FakeShipwrightV1alpha1) RESTClient

func (c *FakeShipwrightV1alpha1) 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