fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeArtifactsV1alpha1

type FakeArtifactsV1alpha1 struct {
	*testing.Fake
}

func (*FakeArtifactsV1alpha1) ContainerConfigurations

func (c *FakeArtifactsV1alpha1) ContainerConfigurations(namespace string) v1alpha1.ContainerConfigurationInterface

func (*FakeArtifactsV1alpha1) ContainerImageSignatures

func (c *FakeArtifactsV1alpha1) ContainerImageSignatures(namespace string) v1alpha1.ContainerImageSignatureInterface

func (*FakeArtifactsV1alpha1) ContainerRepositories

func (c *FakeArtifactsV1alpha1) ContainerRepositories(namespace string) v1alpha1.ContainerRepositoryInterface

func (*FakeArtifactsV1alpha1) GenericArtifacts

func (c *FakeArtifactsV1alpha1) GenericArtifacts(namespace string) v1alpha1.GenericArtifactInterface

func (*FakeArtifactsV1alpha1) RESTClient

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

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

func (*FakeArtifactsV1alpha1) Repositories

func (c *FakeArtifactsV1alpha1) Repositories(namespace string) v1alpha1.RepositoryInterface

type FakeContainerConfigurations

type FakeContainerConfigurations struct {
	Fake *FakeArtifactsV1alpha1
	// contains filtered or unexported fields
}

FakeContainerConfigurations implements ContainerConfigurationInterface

func (*FakeContainerConfigurations) Create

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

func (*FakeContainerConfigurations) Delete

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

func (*FakeContainerConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeContainerConfigurations) Get

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

func (*FakeContainerConfigurations) List

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

func (*FakeContainerConfigurations) Patch

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

Patch applies the patch and returns the patched containerConfiguration.

func (*FakeContainerConfigurations) Update

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

func (*FakeContainerConfigurations) UpdateStatus

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

func (*FakeContainerConfigurations) Watch

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

type FakeContainerImageSignatures

type FakeContainerImageSignatures struct {
	Fake *FakeArtifactsV1alpha1
	// contains filtered or unexported fields
}

FakeContainerImageSignatures implements ContainerImageSignatureInterface

func (*FakeContainerImageSignatures) Create

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

func (*FakeContainerImageSignatures) Delete

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

func (*FakeContainerImageSignatures) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeContainerImageSignatures) Get

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

func (*FakeContainerImageSignatures) List

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

func (*FakeContainerImageSignatures) Patch

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

Patch applies the patch and returns the patched containerImageSignature.

func (*FakeContainerImageSignatures) Update

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

func (*FakeContainerImageSignatures) UpdateStatus

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

func (*FakeContainerImageSignatures) Watch

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

type FakeContainerRepositories

type FakeContainerRepositories struct {
	Fake *FakeArtifactsV1alpha1
	// contains filtered or unexported fields
}

FakeContainerRepositories implements ContainerRepositoryInterface

func (*FakeContainerRepositories) Create

func (c *FakeContainerRepositories) Create(ctx context.Context, containerRepository *v1alpha1.ContainerRepository, opts v1.CreateOptions) (result *v1alpha1.ContainerRepository, err error)

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

func (*FakeContainerRepositories) Delete

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

func (*FakeContainerRepositories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeContainerRepositories) Get

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

func (*FakeContainerRepositories) List

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

func (*FakeContainerRepositories) Patch

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

Patch applies the patch and returns the patched containerRepository.

func (*FakeContainerRepositories) Update

func (c *FakeContainerRepositories) Update(ctx context.Context, containerRepository *v1alpha1.ContainerRepository, opts v1.UpdateOptions) (result *v1alpha1.ContainerRepository, err error)

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

func (*FakeContainerRepositories) UpdateStatus

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

func (*FakeContainerRepositories) Watch

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

type FakeGenericArtifacts

type FakeGenericArtifacts struct {
	Fake *FakeArtifactsV1alpha1
	// contains filtered or unexported fields
}

FakeGenericArtifacts implements GenericArtifactInterface

func (*FakeGenericArtifacts) Create

func (c *FakeGenericArtifacts) Create(ctx context.Context, genericArtifact *v1alpha1.GenericArtifact, opts v1.CreateOptions) (result *v1alpha1.GenericArtifact, err error)

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

func (*FakeGenericArtifacts) Delete

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

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

func (*FakeGenericArtifacts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGenericArtifacts) Get

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

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

func (*FakeGenericArtifacts) List

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

func (*FakeGenericArtifacts) Patch

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

Patch applies the patch and returns the patched genericArtifact.

func (*FakeGenericArtifacts) Update

func (c *FakeGenericArtifacts) Update(ctx context.Context, genericArtifact *v1alpha1.GenericArtifact, opts v1.UpdateOptions) (result *v1alpha1.GenericArtifact, err error)

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

func (*FakeGenericArtifacts) UpdateStatus

func (c *FakeGenericArtifacts) UpdateStatus(ctx context.Context, genericArtifact *v1alpha1.GenericArtifact, opts v1.UpdateOptions) (*v1alpha1.GenericArtifact, error)

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

func (*FakeGenericArtifacts) Watch

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

type FakeRepositories

type FakeRepositories struct {
	Fake *FakeArtifactsV1alpha1
	// contains filtered or unexported fields
}

FakeRepositories implements RepositoryInterface

func (*FakeRepositories) Create

func (c *FakeRepositories) Create(ctx context.Context, repository *v1alpha1.Repository, opts v1.CreateOptions) (result *v1alpha1.Repository, err error)

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

func (*FakeRepositories) Delete

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

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

func (*FakeRepositories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRepositories) Get

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

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

func (*FakeRepositories) List

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

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

func (*FakeRepositories) Patch

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

Patch applies the patch and returns the patched repository.

func (*FakeRepositories) Update

func (c *FakeRepositories) Update(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (result *v1alpha1.Repository, err error)

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

func (*FakeRepositories) UpdateStatus

func (c *FakeRepositories) UpdateStatus(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (*v1alpha1.Repository, error)

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

func (*FakeRepositories) Watch

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

Jump to

Keyboard shortcuts

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