fake

package
v0.0.0-...-d24fd3e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 13 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 FakeBrokerTemplateInstances

type FakeBrokerTemplateInstances struct {
	Fake *FakeTemplateV1
}

FakeBrokerTemplateInstances implements BrokerTemplateInstanceInterface

func (*FakeBrokerTemplateInstances) Apply

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

func (*FakeBrokerTemplateInstances) Create

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

func (*FakeBrokerTemplateInstances) Delete

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

func (*FakeBrokerTemplateInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBrokerTemplateInstances) Get

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

func (*FakeBrokerTemplateInstances) List

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

func (*FakeBrokerTemplateInstances) Patch

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

Patch applies the patch and returns the patched brokerTemplateInstance.

func (*FakeBrokerTemplateInstances) Update

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

func (*FakeBrokerTemplateInstances) Watch

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

type FakeTemplateInstances

type FakeTemplateInstances struct {
	Fake *FakeTemplateV1
	// contains filtered or unexported fields
}

FakeTemplateInstances implements TemplateInstanceInterface

func (*FakeTemplateInstances) Apply

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

func (*FakeTemplateInstances) ApplyStatus

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

func (*FakeTemplateInstances) Create

func (c *FakeTemplateInstances) Create(ctx context.Context, templateInstance *templatev1.TemplateInstance, opts v1.CreateOptions) (result *templatev1.TemplateInstance, err error)

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

func (*FakeTemplateInstances) Delete

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

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

func (*FakeTemplateInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTemplateInstances) Get

func (c *FakeTemplateInstances) Get(ctx context.Context, name string, options v1.GetOptions) (result *templatev1.TemplateInstance, err error)

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

func (*FakeTemplateInstances) List

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

func (*FakeTemplateInstances) Patch

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

Patch applies the patch and returns the patched templateInstance.

func (*FakeTemplateInstances) Update

func (c *FakeTemplateInstances) Update(ctx context.Context, templateInstance *templatev1.TemplateInstance, opts v1.UpdateOptions) (result *templatev1.TemplateInstance, err error)

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

func (*FakeTemplateInstances) UpdateStatus

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

func (*FakeTemplateInstances) Watch

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

type FakeTemplateV1

type FakeTemplateV1 struct {
	*testing.Fake
}

func (*FakeTemplateV1) BrokerTemplateInstances

func (c *FakeTemplateV1) BrokerTemplateInstances() v1.BrokerTemplateInstanceInterface

func (*FakeTemplateV1) RESTClient

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

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

func (*FakeTemplateV1) TemplateInstances

func (c *FakeTemplateV1) TemplateInstances(namespace string) v1.TemplateInstanceInterface

func (*FakeTemplateV1) Templates

func (c *FakeTemplateV1) Templates(namespace string) v1.TemplateInterface

type FakeTemplates

type FakeTemplates struct {
	Fake *FakeTemplateV1
	// contains filtered or unexported fields
}

FakeTemplates implements TemplateInterface

func (*FakeTemplates) Apply

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

func (*FakeTemplates) Create

func (c *FakeTemplates) Create(ctx context.Context, template *templatev1.Template, opts v1.CreateOptions) (result *templatev1.Template, err error)

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

func (*FakeTemplates) Delete

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

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

func (*FakeTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTemplates) Get

func (c *FakeTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *templatev1.Template, err error)

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

func (*FakeTemplates) List

func (c *FakeTemplates) List(ctx context.Context, opts v1.ListOptions) (result *templatev1.TemplateList, err error)

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

func (*FakeTemplates) Patch

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

Patch applies the patch and returns the patched template.

func (*FakeTemplates) Update

func (c *FakeTemplates) Update(ctx context.Context, template *templatev1.Template, opts v1.UpdateOptions) (result *templatev1.Template, err error)

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

func (*FakeTemplates) Watch

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

Jump to

Keyboard shortcuts

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