fake

package
v0.0.0-...-817612b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 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 FakeApplies

type FakeApplies struct {
	Fake *FakeBaetylV1alpha1
	// contains filtered or unexported fields
}

FakeApplies implements ApplyInterface

func (*FakeApplies) Create

func (c *FakeApplies) Create(ctx context.Context, apply *v1alpha1.Apply, opts v1.CreateOptions) (result *v1alpha1.Apply, err error)

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

func (*FakeApplies) Delete

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

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

func (*FakeApplies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplies) Get

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

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

func (*FakeApplies) List

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

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

func (*FakeApplies) Patch

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

Patch applies the patch and returns the patched apply.

func (*FakeApplies) Update

func (c *FakeApplies) Update(ctx context.Context, apply *v1alpha1.Apply, opts v1.UpdateOptions) (result *v1alpha1.Apply, err error)

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

func (*FakeApplies) Watch

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

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

type FakeBaetylV1alpha1

type FakeBaetylV1alpha1 struct {
	*testing.Fake
}

func (*FakeBaetylV1alpha1) Applies

func (c *FakeBaetylV1alpha1) Applies(namespace string) v1alpha1.ApplyInterface

func (*FakeBaetylV1alpha1) Clusters

func (c *FakeBaetylV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface

func (*FakeBaetylV1alpha1) RESTClient

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

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

func (*FakeBaetylV1alpha1) Templates

func (c *FakeBaetylV1alpha1) Templates(namespace string) v1alpha1.TemplateInterface

type FakeClusters

type FakeClusters struct {
	Fake *FakeBaetylV1alpha1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.CreateOptions) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

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

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

func (*FakeClusters) List

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

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

func (*FakeClusters) Patch

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

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) Watch

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

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

type FakeNodes

type FakeNodes struct {
	Fake *FakeBaetylV1alpha1
	// contains filtered or unexported fields
}

FakeNodes implements NodeInterface

func (*FakeNodes) Create

func (c *FakeNodes) Create(ctx context.Context, node *v1alpha1.Node, opts v1.CreateOptions) (result *v1alpha1.Node, err error)

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

func (*FakeNodes) Delete

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

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

func (*FakeNodes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodes) Get

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

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

func (*FakeNodes) List

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

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

func (*FakeNodes) Patch

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

Patch applies the patch and returns the patched node.

func (*FakeNodes) Update

func (c *FakeNodes) Update(ctx context.Context, node *v1alpha1.Node, opts v1.UpdateOptions) (result *v1alpha1.Node, err error)

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

func (*FakeNodes) Watch

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

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

type FakeTemplates

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

FakeTemplates implements TemplateInterface

func (*FakeTemplates) Create

func (c *FakeTemplates) Create(ctx context.Context, template *v1alpha1.Template, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.Template, err error)

Patch applies the patch and returns the patched template.

func (*FakeTemplates) Update

func (c *FakeTemplates) Update(ctx context.Context, template *v1alpha1.Template, opts v1.UpdateOptions) (result *v1alpha1.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