fake

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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 FakeBundles

type FakeBundles struct {
	Fake *FakeKubepackV1alpha1
}

FakeBundles implements BundleInterface

func (*FakeBundles) Create

func (c *FakeBundles) Create(ctx context.Context, bundle *v1alpha1.Bundle, opts v1.CreateOptions) (result *v1alpha1.Bundle, err error)

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

func (*FakeBundles) Delete

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

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

func (*FakeBundles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBundles) Get

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

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

func (*FakeBundles) List

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

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

func (*FakeBundles) Patch

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

Patch applies the patch and returns the patched bundle.

func (*FakeBundles) Update

func (c *FakeBundles) Update(ctx context.Context, bundle *v1alpha1.Bundle, opts v1.UpdateOptions) (result *v1alpha1.Bundle, err error)

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

func (*FakeBundles) UpdateStatus

func (c *FakeBundles) UpdateStatus(ctx context.Context, bundle *v1alpha1.Bundle, opts v1.UpdateOptions) (*v1alpha1.Bundle, error)

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

func (*FakeBundles) Watch

func (c *FakeBundles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeKubepackV1alpha1

type FakeKubepackV1alpha1 struct {
	*testing.Fake
}

func (*FakeKubepackV1alpha1) Bundles

func (*FakeKubepackV1alpha1) Orders

func (*FakeKubepackV1alpha1) Plans

func (*FakeKubepackV1alpha1) Products

func (*FakeKubepackV1alpha1) RESTClient

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

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

type FakeOrders

type FakeOrders struct {
	Fake *FakeKubepackV1alpha1
}

FakeOrders implements OrderInterface

func (*FakeOrders) Create

func (c *FakeOrders) Create(ctx context.Context, order *v1alpha1.Order, opts v1.CreateOptions) (result *v1alpha1.Order, err error)

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

func (*FakeOrders) Delete

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

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

func (*FakeOrders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOrders) Get

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

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

func (*FakeOrders) List

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

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

func (*FakeOrders) Patch

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

Patch applies the patch and returns the patched order.

func (*FakeOrders) Update

func (c *FakeOrders) Update(ctx context.Context, order *v1alpha1.Order, opts v1.UpdateOptions) (result *v1alpha1.Order, err error)

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

func (*FakeOrders) UpdateStatus

func (c *FakeOrders) UpdateStatus(ctx context.Context, order *v1alpha1.Order, opts v1.UpdateOptions) (*v1alpha1.Order, error)

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

func (*FakeOrders) Watch

func (c *FakeOrders) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakePlans

type FakePlans struct {
	Fake *FakeKubepackV1alpha1
}

FakePlans implements PlanInterface

func (*FakePlans) Create

func (c *FakePlans) Create(ctx context.Context, plan *v1alpha1.Plan, opts v1.CreateOptions) (result *v1alpha1.Plan, err error)

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

func (*FakePlans) Delete

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

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

func (*FakePlans) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePlans) Get

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

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

func (*FakePlans) List

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

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

func (*FakePlans) Patch

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

Patch applies the patch and returns the patched plan.

func (*FakePlans) Update

func (c *FakePlans) Update(ctx context.Context, plan *v1alpha1.Plan, opts v1.UpdateOptions) (result *v1alpha1.Plan, err error)

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

func (*FakePlans) UpdateStatus

func (c *FakePlans) UpdateStatus(ctx context.Context, plan *v1alpha1.Plan, opts v1.UpdateOptions) (*v1alpha1.Plan, error)

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

func (*FakePlans) Watch

func (c *FakePlans) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeProducts

type FakeProducts struct {
	Fake *FakeKubepackV1alpha1
}

FakeProducts implements ProductInterface

func (*FakeProducts) Create

func (c *FakeProducts) Create(ctx context.Context, product *v1alpha1.Product, opts v1.CreateOptions) (result *v1alpha1.Product, err error)

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

func (*FakeProducts) Delete

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

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

func (*FakeProducts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProducts) Get

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

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

func (*FakeProducts) List

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

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

func (*FakeProducts) Patch

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

Patch applies the patch and returns the patched product.

func (*FakeProducts) Update

func (c *FakeProducts) Update(ctx context.Context, product *v1alpha1.Product, opts v1.UpdateOptions) (result *v1alpha1.Product, err error)

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

func (*FakeProducts) UpdateStatus

func (c *FakeProducts) UpdateStatus(ctx context.Context, product *v1alpha1.Product, opts v1.UpdateOptions) (*v1alpha1.Product, error)

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

func (*FakeProducts) Watch

func (c *FakeProducts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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