fake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 5

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 FakeBuildTemplates

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

FakeBuildTemplates implements BuildTemplateInterface

func (*FakeBuildTemplates) Create

func (c *FakeBuildTemplates) Create(buildTemplate *v1alpha1.BuildTemplate) (result *v1alpha1.BuildTemplate, err error)

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

func (*FakeBuildTemplates) Delete

func (c *FakeBuildTemplates) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeBuildTemplates) DeleteCollection

func (c *FakeBuildTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBuildTemplates) Get

func (c *FakeBuildTemplates) Get(name string, options v1.GetOptions) (result *v1alpha1.BuildTemplate, err error)

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

func (*FakeBuildTemplates) List

func (c *FakeBuildTemplates) List(opts v1.ListOptions) (result *v1alpha1.BuildTemplateList, err error)

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

func (*FakeBuildTemplates) Patch

func (c *FakeBuildTemplates) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.BuildTemplate, err error)

Patch applies the patch and returns the patched buildTemplate.

func (*FakeBuildTemplates) Update

func (c *FakeBuildTemplates) Update(buildTemplate *v1alpha1.BuildTemplate) (result *v1alpha1.BuildTemplate, err error)

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

func (*FakeBuildTemplates) Watch

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

type FakeBuildV1alpha1

type FakeBuildV1alpha1 struct {
	*testing.Fake
}

func (*FakeBuildV1alpha1) BuildTemplates

func (c *FakeBuildV1alpha1) BuildTemplates(namespace string) v1alpha1.BuildTemplateInterface

func (*FakeBuildV1alpha1) Builds

func (c *FakeBuildV1alpha1) Builds(namespace string) v1alpha1.BuildInterface

func (*FakeBuildV1alpha1) ClusterBuildTemplates added in v0.2.0

func (c *FakeBuildV1alpha1) ClusterBuildTemplates() v1alpha1.ClusterBuildTemplateInterface

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.

type FakeBuilds

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

FakeBuilds implements BuildInterface

func (*FakeBuilds) Create

func (c *FakeBuilds) Create(build *v1alpha1.Build) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeBuilds) Get

func (c *FakeBuilds) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Build, err error)

Patch applies the patch and returns the patched build.

func (*FakeBuilds) Update

func (c *FakeBuilds) Update(build *v1alpha1.Build) (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 added in v0.3.0

func (c *FakeBuilds) UpdateStatus(build *v1alpha1.Build) (*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(opts v1.ListOptions) (watch.Interface, error)

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

type FakeClusterBuildTemplates added in v0.2.0

type FakeClusterBuildTemplates struct {
	Fake *FakeBuildV1alpha1
}

FakeClusterBuildTemplates implements ClusterBuildTemplateInterface

func (*FakeClusterBuildTemplates) Create added in v0.2.0

func (c *FakeClusterBuildTemplates) Create(clusterBuildTemplate *v1alpha1.ClusterBuildTemplate) (result *v1alpha1.ClusterBuildTemplate, err error)

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

func (*FakeClusterBuildTemplates) Delete added in v0.2.0

func (c *FakeClusterBuildTemplates) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterBuildTemplates) DeleteCollection added in v0.2.0

func (c *FakeClusterBuildTemplates) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterBuildTemplates) Get added in v0.2.0

func (c *FakeClusterBuildTemplates) Get(name string, options v1.GetOptions) (result *v1alpha1.ClusterBuildTemplate, err error)

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

func (*FakeClusterBuildTemplates) List added in v0.2.0

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

func (*FakeClusterBuildTemplates) Patch added in v0.2.0

func (c *FakeClusterBuildTemplates) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterBuildTemplate, err error)

Patch applies the patch and returns the patched clusterBuildTemplate.

func (*FakeClusterBuildTemplates) Update added in v0.2.0

func (c *FakeClusterBuildTemplates) Update(clusterBuildTemplate *v1alpha1.ClusterBuildTemplate) (result *v1alpha1.ClusterBuildTemplate, err error)

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

func (*FakeClusterBuildTemplates) Watch added in v0.2.0

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

Jump to

Keyboard shortcuts

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