fake

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 9 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 FakeHephaestusV1

type FakeHephaestusV1 struct {
	*testing.Fake
}

func (*FakeHephaestusV1) ImageBuilds

func (c *FakeHephaestusV1) ImageBuilds(namespace string) v1.ImageBuildInterface

func (*FakeHephaestusV1) ImageCaches

func (c *FakeHephaestusV1) ImageCaches(namespace string) v1.ImageCacheInterface

func (*FakeHephaestusV1) RESTClient

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

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

type FakeImageBuilds

type FakeImageBuilds struct {
	Fake *FakeHephaestusV1
	// contains filtered or unexported fields
}

FakeImageBuilds implements ImageBuildInterface

func (*FakeImageBuilds) Create

func (c *FakeImageBuilds) Create(ctx context.Context, imageBuild *v1.ImageBuild, opts metav1.CreateOptions) (result *v1.ImageBuild, err error)

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

func (*FakeImageBuilds) Delete

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

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

func (*FakeImageBuilds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeImageBuilds) Get

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

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

func (*FakeImageBuilds) List

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

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

func (*FakeImageBuilds) Patch

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

Patch applies the patch and returns the patched imageBuild.

func (*FakeImageBuilds) Update

func (c *FakeImageBuilds) Update(ctx context.Context, imageBuild *v1.ImageBuild, opts metav1.UpdateOptions) (result *v1.ImageBuild, err error)

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

func (*FakeImageBuilds) UpdateStatus

func (c *FakeImageBuilds) UpdateStatus(ctx context.Context, imageBuild *v1.ImageBuild, opts metav1.UpdateOptions) (*v1.ImageBuild, error)

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

func (*FakeImageBuilds) Watch

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

type FakeImageCaches

type FakeImageCaches struct {
	Fake *FakeHephaestusV1
	// contains filtered or unexported fields
}

FakeImageCaches implements ImageCacheInterface

func (*FakeImageCaches) Create

func (c *FakeImageCaches) Create(ctx context.Context, imageCache *v1.ImageCache, opts metav1.CreateOptions) (result *v1.ImageCache, err error)

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

func (*FakeImageCaches) Delete

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

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

func (*FakeImageCaches) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeImageCaches) Get

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

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

func (*FakeImageCaches) List

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

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

func (*FakeImageCaches) Patch

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

Patch applies the patch and returns the patched imageCache.

func (*FakeImageCaches) Update

func (c *FakeImageCaches) Update(ctx context.Context, imageCache *v1.ImageCache, opts metav1.UpdateOptions) (result *v1.ImageCache, err error)

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

func (*FakeImageCaches) UpdateStatus

func (c *FakeImageCaches) UpdateStatus(ctx context.Context, imageCache *v1.ImageCache, opts metav1.UpdateOptions) (*v1.ImageCache, error)

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

func (*FakeImageCaches) Watch

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

Jump to

Keyboard shortcuts

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