fake

package
v3.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 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 FakeImage

type FakeImage struct {
	*testing.Fake
}

func (*FakeImage) ImageSignatures added in v3.7.0

func (c *FakeImage) ImageSignatures() internalversion.ImageSignatureInterface

func (*FakeImage) ImageStreamImages added in v3.7.0

func (c *FakeImage) ImageStreamImages(namespace string) internalversion.ImageStreamImageInterface

func (*FakeImage) ImageStreamImports added in v3.7.0

func (c *FakeImage) ImageStreamImports(namespace string) internalversion.ImageStreamImportInterface

func (*FakeImage) ImageStreamMappings added in v3.7.0

func (c *FakeImage) ImageStreamMappings(namespace string) internalversion.ImageStreamMappingInterface

func (*FakeImage) ImageStreamTags added in v3.7.0

func (c *FakeImage) ImageStreamTags(namespace string) internalversion.ImageStreamTagInterface

func (*FakeImage) ImageStreams

func (c *FakeImage) ImageStreams(namespace string) internalversion.ImageStreamInterface

func (*FakeImage) Images

func (*FakeImage) RESTClient

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

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

type FakeImageSignatures added in v3.7.0

type FakeImageSignatures struct {
	Fake *FakeImage
}

FakeImageSignatures implements ImageSignatureInterface

func (*FakeImageSignatures) Create added in v3.7.0

func (c *FakeImageSignatures) Create(imageSignature *image.ImageSignature) (result *image.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 added in v3.7.0

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

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

type FakeImageStreamImages added in v3.7.0

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

FakeImageStreamImages implements ImageStreamImageInterface

func (*FakeImageStreamImages) Get added in v3.7.0

func (c *FakeImageStreamImages) Get(name string, options v1.GetOptions) (result *image.ImageStreamImage, err error)

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

type FakeImageStreamImports added in v3.7.0

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

FakeImageStreamImports implements ImageStreamImportInterface

func (*FakeImageStreamImports) Create added in v3.7.0

func (c *FakeImageStreamImports) Create(imageStreamImport *image.ImageStreamImport) (result *image.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.

func (*FakeImageStreamImports) CreateWithoutTimeout added in v3.11.0

func (c *FakeImageStreamImports) CreateWithoutTimeout(imageStreamImport *image.ImageStreamImport) (result *image.ImageStreamImport, err error)

type FakeImageStreamMappings added in v3.7.0

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

FakeImageStreamMappings implements ImageStreamMappingInterface

func (*FakeImageStreamMappings) Create added in v3.7.0

func (c *FakeImageStreamMappings) Create(imageStreamMapping *image.ImageStreamMapping) (result *v1.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 added in v3.7.0

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

FakeImageStreamTags implements ImageStreamTagInterface

func (*FakeImageStreamTags) Create added in v3.7.0

func (c *FakeImageStreamTags) Create(imageStreamTag *image.ImageStreamTag) (result *image.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 added in v3.7.0

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

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

func (*FakeImageStreamTags) Get added in v3.7.0

func (c *FakeImageStreamTags) Get(name string, options v1.GetOptions) (result *image.ImageStreamTag, err error)

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

func (*FakeImageStreamTags) Update added in v3.7.0

func (c *FakeImageStreamTags) Update(imageStreamTag *image.ImageStreamTag) (result *image.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 *FakeImage
	// contains filtered or unexported fields
}

FakeImageStreams implements ImageStreamInterface

func (*FakeImageStreams) Create

func (c *FakeImageStreams) Create(imageStream *image.ImageStream) (result *image.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(name string, options *v1.DeleteOptions) error

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

func (*FakeImageStreams) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeImageStreams) Get

func (c *FakeImageStreams) Get(name string, options v1.GetOptions) (result *image.ImageStream, err error)

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

func (*FakeImageStreams) List

func (c *FakeImageStreams) List(opts v1.ListOptions) (result *image.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *image.ImageStream, err error)

Patch applies the patch and returns the patched imageStream.

func (*FakeImageStreams) Secrets added in v3.7.0

func (c *FakeImageStreams) Secrets(imageStreamName string, options v1.GetOptions) (result *core_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(imageStream *image.ImageStream) (result *image.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(imageStream *image.ImageStream) (*image.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

func (c *FakeImageStreams) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeImages

type FakeImages struct {
	Fake *FakeImage
}

FakeImages implements ImageResourceInterface

func (*FakeImages) Create

func (c *FakeImages) Create(imageResource *image.Image) (result *image.Image, err error)

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

func (*FakeImages) Delete

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

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

func (*FakeImages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeImages) Get

func (c *FakeImages) Get(name string, options v1.GetOptions) (result *image.Image, err error)

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

func (*FakeImages) List

func (c *FakeImages) List(opts v1.ListOptions) (result *image.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *image.Image, err error)

Patch applies the patch and returns the patched imageResource.

func (*FakeImages) Update

func (c *FakeImages) Update(imageResource *image.Image) (result *image.Image, err error)

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

func (*FakeImages) Watch

func (c *FakeImages) Watch(opts v1.ListOptions) (watch.Interface, error)

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