fake

package
v0.0.0-...-b8b418d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: GPL-3.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 FakeBuildV1alpha1

type FakeBuildV1alpha1 struct {
	*testing.Fake
}

func (*FakeBuildV1alpha1) PackageBuilds

func (c *FakeBuildV1alpha1) PackageBuilds(namespace string) v1alpha1.PackageBuildInterface

func (*FakeBuildV1alpha1) RESTClient

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

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

func (*FakeBuildV1alpha1) RepoBuilds

func (c *FakeBuildV1alpha1) RepoBuilds(namespace string) v1alpha1.RepoBuildInterface

type FakePackageBuilds

type FakePackageBuilds struct {
	Fake *FakeBuildV1alpha1
	// contains filtered or unexported fields
}

FakePackageBuilds implements PackageBuildInterface

func (*FakePackageBuilds) Create

func (c *FakePackageBuilds) Create(ctx context.Context, packageBuild *v1alpha1.PackageBuild, opts v1.CreateOptions) (result *v1alpha1.PackageBuild, err error)

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

func (*FakePackageBuilds) Delete

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

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

func (*FakePackageBuilds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageBuilds) Get

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

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

func (*FakePackageBuilds) List

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

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

func (*FakePackageBuilds) Patch

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

Patch applies the patch and returns the patched packageBuild.

func (*FakePackageBuilds) Update

func (c *FakePackageBuilds) Update(ctx context.Context, packageBuild *v1alpha1.PackageBuild, opts v1.UpdateOptions) (result *v1alpha1.PackageBuild, err error)

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

func (*FakePackageBuilds) UpdateStatus

func (c *FakePackageBuilds) UpdateStatus(ctx context.Context, packageBuild *v1alpha1.PackageBuild, opts v1.UpdateOptions) (*v1alpha1.PackageBuild, error)

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

func (*FakePackageBuilds) Watch

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

type FakeRepoBuilds

type FakeRepoBuilds struct {
	Fake *FakeBuildV1alpha1
	// contains filtered or unexported fields
}

FakeRepoBuilds implements RepoBuildInterface

func (*FakeRepoBuilds) Create

func (c *FakeRepoBuilds) Create(ctx context.Context, repoBuild *v1alpha1.RepoBuild, opts v1.CreateOptions) (result *v1alpha1.RepoBuild, err error)

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

func (*FakeRepoBuilds) Delete

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

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

func (*FakeRepoBuilds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRepoBuilds) Get

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

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

func (*FakeRepoBuilds) List

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

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

func (*FakeRepoBuilds) Patch

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

Patch applies the patch and returns the patched repoBuild.

func (*FakeRepoBuilds) Update

func (c *FakeRepoBuilds) Update(ctx context.Context, repoBuild *v1alpha1.RepoBuild, opts v1.UpdateOptions) (result *v1alpha1.RepoBuild, err error)

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

func (*FakeRepoBuilds) UpdateStatus

func (c *FakeRepoBuilds) UpdateStatus(ctx context.Context, repoBuild *v1alpha1.RepoBuild, opts v1.UpdateOptions) (*v1alpha1.RepoBuild, error)

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

func (*FakeRepoBuilds) Watch

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

Jump to

Keyboard shortcuts

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