fake

package
v0.0.0-...-6c851f4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 24

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 FakeImageSignatures

type FakeImageSignatures struct {
	Fake *FakeImageV1
}

FakeImageSignatures implements ImageSignatureInterface

func (*FakeImageSignatures) Create

func (c *FakeImageSignatures) Create(ctx context.Context, imageSignature *v1.ImageSignature, opts metav1.CreateOptions) (result *v1.ImageSignature, err error)

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

func (*FakeImageSignatures) Delete

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

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

type FakeImageStreamImages

type FakeImageStreamImages struct {
	Fake *FakeImageV1
	// contains filtered or unexported fields
}

FakeImageStreamImages implements ImageStreamImageInterface

func (*FakeImageStreamImages) Get

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

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

type FakeImageStreamImports

type FakeImageStreamImports struct {
	Fake *FakeImageV1
	// contains filtered or unexported fields
}

FakeImageStreamImports implements ImageStreamImportInterface

func (*FakeImageStreamImports) Create

func (c *FakeImageStreamImports) Create(ctx context.Context, imageStreamImport *v1.ImageStreamImport, opts metav1.CreateOptions) (result *v1.ImageStreamImport, err error)

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

type FakeImageStreamMappings

type FakeImageStreamMappings struct {
	Fake *FakeImageV1
	// contains filtered or unexported fields
}

FakeImageStreamMappings implements ImageStreamMappingInterface

func (*FakeImageStreamMappings) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied imageStreamMapping.

func (*FakeImageStreamMappings) Create

func (c *FakeImageStreamMappings) Create(ctx context.Context, imageStreamMapping *v1.ImageStreamMapping, opts metav1.CreateOptions) (result *metav1.Status, err error)

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

type FakeImageStreamTags

type FakeImageStreamTags struct {
	Fake *FakeImageV1
	// contains filtered or unexported fields
}

FakeImageStreamTags implements ImageStreamTagInterface

func (*FakeImageStreamTags) Create

func (c *FakeImageStreamTags) Create(ctx context.Context, imageStreamTag *v1.ImageStreamTag, opts metav1.CreateOptions) (result *v1.ImageStreamTag, err error)

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

func (*FakeImageStreamTags) Delete

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

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

func (*FakeImageStreamTags) Get

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

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

func (*FakeImageStreamTags) List

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

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

func (*FakeImageStreamTags) Update

func (c *FakeImageStreamTags) Update(ctx context.Context, imageStreamTag *v1.ImageStreamTag, opts metav1.UpdateOptions) (result *v1.ImageStreamTag, err error)

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

type FakeImageStreams

type FakeImageStreams struct {
	Fake *FakeImageV1
	// contains filtered or unexported fields
}

FakeImageStreams implements ImageStreamInterface

func (*FakeImageStreams) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied imageStream.

func (*FakeImageStreams) ApplyStatus

func (c *FakeImageStreams) ApplyStatus(ctx context.Context, imageStream *imagev1.ImageStreamApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ImageStream, err error)

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

func (*FakeImageStreams) Create

func (c *FakeImageStreams) Create(ctx context.Context, imageStream *v1.ImageStream, opts metav1.CreateOptions) (result *v1.ImageStream, err error)

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

func (*FakeImageStreams) Delete

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

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

func (*FakeImageStreams) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeImageStreams) Get

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

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

func (*FakeImageStreams) Layers

func (c *FakeImageStreams) Layers(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *v1.ImageStreamLayers, err error)

Layers takes name of the imageStream, and returns the corresponding imageStreamLayers object, and an error if there is any.

func (*FakeImageStreams) List

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

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

func (*FakeImageStreams) Patch

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

Patch applies the patch and returns the patched imageStream.

func (*FakeImageStreams) Secrets

func (c *FakeImageStreams) Secrets(ctx context.Context, imageStreamName string, options metav1.GetOptions) (result *v1.SecretList, err error)

Secrets takes name of the imageStream, and returns the corresponding secretList object, and an error if there is any.

func (*FakeImageStreams) Update

func (c *FakeImageStreams) Update(ctx context.Context, imageStream *v1.ImageStream, opts metav1.UpdateOptions) (result *v1.ImageStream, err error)

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

func (*FakeImageStreams) UpdateStatus

func (c *FakeImageStreams) UpdateStatus(ctx context.Context, imageStream *v1.ImageStream, opts metav1.UpdateOptions) (*v1.ImageStream, error)

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

func (*FakeImageStreams) Watch

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

type FakeImageTags

type FakeImageTags struct {
	Fake *FakeImageV1
	// contains filtered or unexported fields
}

FakeImageTags implements ImageTagInterface

func (*FakeImageTags) Create

func (c *FakeImageTags) Create(ctx context.Context, imageTag *v1.ImageTag, opts metav1.CreateOptions) (result *v1.ImageTag, err error)

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

func (*FakeImageTags) Delete

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

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

func (*FakeImageTags) Get

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

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

func (*FakeImageTags) List

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

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

func (*FakeImageTags) Update

func (c *FakeImageTags) Update(ctx context.Context, imageTag *v1.ImageTag, opts metav1.UpdateOptions) (result *v1.ImageTag, err error)

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

type FakeImageV1

type FakeImageV1 struct {
	*testing.Fake
}

func (*FakeImageV1) ImageSignatures

func (c *FakeImageV1) ImageSignatures() v1.ImageSignatureInterface

func (*FakeImageV1) ImageStreamImages

func (c *FakeImageV1) ImageStreamImages(namespace string) v1.ImageStreamImageInterface

func (*FakeImageV1) ImageStreamImports

func (c *FakeImageV1) ImageStreamImports(namespace string) v1.ImageStreamImportInterface

func (*FakeImageV1) ImageStreamMappings

func (c *FakeImageV1) ImageStreamMappings(namespace string) v1.ImageStreamMappingInterface

func (*FakeImageV1) ImageStreamTags

func (c *FakeImageV1) ImageStreamTags(namespace string) v1.ImageStreamTagInterface

func (*FakeImageV1) ImageStreams

func (c *FakeImageV1) ImageStreams(namespace string) v1.ImageStreamInterface

func (*FakeImageV1) ImageTags

func (c *FakeImageV1) ImageTags(namespace string) v1.ImageTagInterface

func (*FakeImageV1) Images

func (c *FakeImageV1) Images() v1.ImageInterface

func (*FakeImageV1) RESTClient

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

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

type FakeImages

type FakeImages struct {
	Fake *FakeImageV1
}

FakeImages implements ImageInterface

func (*FakeImages) Apply

func (c *FakeImages) Apply(ctx context.Context, image *imagev1.ImageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Image, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied image.

func (*FakeImages) Create

func (c *FakeImages) Create(ctx context.Context, image *v1.Image, opts metav1.CreateOptions) (result *v1.Image, err error)

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

func (*FakeImages) Delete

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

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

func (*FakeImages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeImages) Get

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

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

func (*FakeImages) List

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

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

func (*FakeImages) Patch

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

Patch applies the patch and returns the patched image.

func (*FakeImages) Update

func (c *FakeImages) Update(ctx context.Context, image *v1.Image, opts metav1.UpdateOptions) (result *v1.Image, err error)

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

func (*FakeImages) Watch

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

Jump to

Keyboard shortcuts

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