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 FakeAcceptedAgreements

type FakeAcceptedAgreements struct {
	Fake *FakeMarketplaceV1alpha1
	// contains filtered or unexported fields
}

FakeAcceptedAgreements implements AcceptedAgreementInterface

func (*FakeAcceptedAgreements) Create

func (c *FakeAcceptedAgreements) Create(ctx context.Context, acceptedAgreement *v1alpha1.AcceptedAgreement, opts v1.CreateOptions) (result *v1alpha1.AcceptedAgreement, err error)

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

func (*FakeAcceptedAgreements) Delete

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

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

func (*FakeAcceptedAgreements) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAcceptedAgreements) Get

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

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

func (*FakeAcceptedAgreements) List

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

func (*FakeAcceptedAgreements) Patch

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

Patch applies the patch and returns the patched acceptedAgreement.

func (*FakeAcceptedAgreements) Update

func (c *FakeAcceptedAgreements) Update(ctx context.Context, acceptedAgreement *v1alpha1.AcceptedAgreement, opts v1.UpdateOptions) (result *v1alpha1.AcceptedAgreement, err error)

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

func (*FakeAcceptedAgreements) UpdateStatus

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

func (*FakeAcceptedAgreements) Watch

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

type FakeListingPackageAgreements

type FakeListingPackageAgreements struct {
	Fake *FakeMarketplaceV1alpha1
	// contains filtered or unexported fields
}

FakeListingPackageAgreements implements ListingPackageAgreementInterface

func (*FakeListingPackageAgreements) Create

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

func (*FakeListingPackageAgreements) Delete

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

func (*FakeListingPackageAgreements) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeListingPackageAgreements) Get

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

func (*FakeListingPackageAgreements) List

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

func (*FakeListingPackageAgreements) Patch

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

Patch applies the patch and returns the patched listingPackageAgreement.

func (*FakeListingPackageAgreements) Update

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

func (*FakeListingPackageAgreements) UpdateStatus

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

func (*FakeListingPackageAgreements) Watch

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

type FakeMarketplaceV1alpha1

type FakeMarketplaceV1alpha1 struct {
	*testing.Fake
}

func (*FakeMarketplaceV1alpha1) AcceptedAgreements

func (c *FakeMarketplaceV1alpha1) AcceptedAgreements(namespace string) v1alpha1.AcceptedAgreementInterface

func (*FakeMarketplaceV1alpha1) ListingPackageAgreements

func (c *FakeMarketplaceV1alpha1) ListingPackageAgreements(namespace string) v1alpha1.ListingPackageAgreementInterface

func (*FakeMarketplaceV1alpha1) Publications

func (c *FakeMarketplaceV1alpha1) Publications(namespace string) v1alpha1.PublicationInterface

func (*FakeMarketplaceV1alpha1) RESTClient

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

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

type FakePublications

type FakePublications struct {
	Fake *FakeMarketplaceV1alpha1
	// contains filtered or unexported fields
}

FakePublications implements PublicationInterface

func (*FakePublications) Create

func (c *FakePublications) Create(ctx context.Context, publication *v1alpha1.Publication, opts v1.CreateOptions) (result *v1alpha1.Publication, err error)

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

func (*FakePublications) Delete

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

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

func (*FakePublications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePublications) Get

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

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

func (*FakePublications) List

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

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

func (*FakePublications) Patch

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

Patch applies the patch and returns the patched publication.

func (*FakePublications) Update

func (c *FakePublications) Update(ctx context.Context, publication *v1alpha1.Publication, opts v1.UpdateOptions) (result *v1alpha1.Publication, err error)

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

func (*FakePublications) UpdateStatus

func (c *FakePublications) UpdateStatus(ctx context.Context, publication *v1alpha1.Publication, opts v1.UpdateOptions) (*v1alpha1.Publication, error)

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

func (*FakePublications) Watch

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

Jump to

Keyboard shortcuts

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