fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 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 FakeClusterFlows

type FakeClusterFlows struct {
	Fake *FakeLoggingV1beta1
}

FakeClusterFlows implements ClusterFlowInterface

func (*FakeClusterFlows) Create

func (c *FakeClusterFlows) Create(ctx context.Context, clusterFlow *v1beta1.ClusterFlow, opts v1.CreateOptions) (result *v1beta1.ClusterFlow, err error)

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

func (*FakeClusterFlows) Delete

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

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

func (*FakeClusterFlows) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterFlows) Get

func (c *FakeClusterFlows) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ClusterFlow, err error)

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

func (*FakeClusterFlows) List

func (c *FakeClusterFlows) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterFlowList, err error)

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

func (*FakeClusterFlows) Patch

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

Patch applies the patch and returns the patched clusterFlow.

func (*FakeClusterFlows) Update

func (c *FakeClusterFlows) Update(ctx context.Context, clusterFlow *v1beta1.ClusterFlow, opts v1.UpdateOptions) (result *v1beta1.ClusterFlow, err error)

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

func (*FakeClusterFlows) UpdateStatus

func (c *FakeClusterFlows) UpdateStatus(ctx context.Context, clusterFlow *v1beta1.ClusterFlow, opts v1.UpdateOptions) (*v1beta1.ClusterFlow, error)

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

func (*FakeClusterFlows) Watch

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

type FakeClusterOutputs

type FakeClusterOutputs struct {
	Fake *FakeLoggingV1beta1
}

FakeClusterOutputs implements ClusterOutputInterface

func (*FakeClusterOutputs) Create

func (c *FakeClusterOutputs) Create(ctx context.Context, clusterOutput *v1beta1.ClusterOutput, opts v1.CreateOptions) (result *v1beta1.ClusterOutput, err error)

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

func (*FakeClusterOutputs) Delete

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

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

func (*FakeClusterOutputs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterOutputs) Get

func (c *FakeClusterOutputs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ClusterOutput, err error)

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

func (*FakeClusterOutputs) List

func (c *FakeClusterOutputs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterOutputList, err error)

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

func (*FakeClusterOutputs) Patch

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

Patch applies the patch and returns the patched clusterOutput.

func (*FakeClusterOutputs) Update

func (c *FakeClusterOutputs) Update(ctx context.Context, clusterOutput *v1beta1.ClusterOutput, opts v1.UpdateOptions) (result *v1beta1.ClusterOutput, err error)

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

func (*FakeClusterOutputs) UpdateStatus

func (c *FakeClusterOutputs) UpdateStatus(ctx context.Context, clusterOutput *v1beta1.ClusterOutput, opts v1.UpdateOptions) (*v1beta1.ClusterOutput, error)

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

func (*FakeClusterOutputs) Watch

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

type FakeLoggingV1beta1

type FakeLoggingV1beta1 struct {
	*testing.Fake
}

func (*FakeLoggingV1beta1) ClusterFlows

func (*FakeLoggingV1beta1) ClusterOutputs

func (*FakeLoggingV1beta1) Loggings

func (*FakeLoggingV1beta1) RESTClient

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

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

type FakeLoggings

type FakeLoggings struct {
	Fake *FakeLoggingV1beta1
}

FakeLoggings implements LoggingInterface

func (*FakeLoggings) Create

func (c *FakeLoggings) Create(ctx context.Context, logging *v1beta1.Logging, opts v1.CreateOptions) (result *v1beta1.Logging, err error)

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

func (*FakeLoggings) Delete

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

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

func (*FakeLoggings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLoggings) Get

func (c *FakeLoggings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Logging, err error)

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

func (*FakeLoggings) List

func (c *FakeLoggings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LoggingList, err error)

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

func (*FakeLoggings) Patch

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

Patch applies the patch and returns the patched logging.

func (*FakeLoggings) Update

func (c *FakeLoggings) Update(ctx context.Context, logging *v1beta1.Logging, opts v1.UpdateOptions) (result *v1beta1.Logging, err error)

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

func (*FakeLoggings) UpdateStatus

func (c *FakeLoggings) UpdateStatus(ctx context.Context, logging *v1beta1.Logging, opts v1.UpdateOptions) (*v1beta1.Logging, error)

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

func (*FakeLoggings) Watch

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

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

Jump to

Keyboard shortcuts

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