fake

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 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 FakeClusterFilters

type FakeClusterFilters struct {
	Fake *FakeFluentbitV1alpha2
}

FakeClusterFilters implements ClusterFilterInterface

func (*FakeClusterFilters) Create

func (c *FakeClusterFilters) Create(ctx context.Context, clusterFilter *v1alpha2.ClusterFilter, opts v1.CreateOptions) (result *v1alpha2.ClusterFilter, err error)

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

func (*FakeClusterFilters) Delete

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

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

func (*FakeClusterFilters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterFilters) Get

func (c *FakeClusterFilters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterFilter, err error)

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

func (*FakeClusterFilters) List

func (c *FakeClusterFilters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterFilterList, err error)

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

func (*FakeClusterFilters) Patch

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

Patch applies the patch and returns the patched clusterFilter.

func (*FakeClusterFilters) Update

func (c *FakeClusterFilters) Update(ctx context.Context, clusterFilter *v1alpha2.ClusterFilter, opts v1.UpdateOptions) (result *v1alpha2.ClusterFilter, err error)

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

func (*FakeClusterFilters) Watch

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

type FakeClusterFluentBitConfigs

type FakeClusterFluentBitConfigs struct {
	Fake *FakeFluentbitV1alpha2
}

FakeClusterFluentBitConfigs implements ClusterFluentBitConfigInterface

func (*FakeClusterFluentBitConfigs) Create

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

func (*FakeClusterFluentBitConfigs) Delete

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

func (*FakeClusterFluentBitConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterFluentBitConfigs) Get

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

func (*FakeClusterFluentBitConfigs) List

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

func (*FakeClusterFluentBitConfigs) Patch

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

Patch applies the patch and returns the patched clusterFluentBitConfig.

func (*FakeClusterFluentBitConfigs) Update

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

func (*FakeClusterFluentBitConfigs) Watch

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

type FakeClusterInputs

type FakeClusterInputs struct {
	Fake *FakeFluentbitV1alpha2
}

FakeClusterInputs implements ClusterInputInterface

func (*FakeClusterInputs) Create

func (c *FakeClusterInputs) Create(ctx context.Context, clusterInput *v1alpha2.ClusterInput, opts v1.CreateOptions) (result *v1alpha2.ClusterInput, err error)

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

func (*FakeClusterInputs) Delete

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

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

func (*FakeClusterInputs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterInputs) Get

func (c *FakeClusterInputs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterInput, err error)

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

func (*FakeClusterInputs) List

func (c *FakeClusterInputs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterInputList, err error)

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

func (*FakeClusterInputs) Patch

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

Patch applies the patch and returns the patched clusterInput.

func (*FakeClusterInputs) Update

func (c *FakeClusterInputs) Update(ctx context.Context, clusterInput *v1alpha2.ClusterInput, opts v1.UpdateOptions) (result *v1alpha2.ClusterInput, err error)

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

func (*FakeClusterInputs) Watch

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

type FakeClusterOutputs

type FakeClusterOutputs struct {
	Fake *FakeFluentbitV1alpha2
}

FakeClusterOutputs implements ClusterOutputInterface

func (*FakeClusterOutputs) Create

func (c *FakeClusterOutputs) Create(ctx context.Context, clusterOutput *v1alpha2.ClusterOutput, opts v1.CreateOptions) (result *v1alpha2.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 *v1alpha2.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 *v1alpha2.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 *v1alpha2.ClusterOutput, err error)

Patch applies the patch and returns the patched clusterOutput.

func (*FakeClusterOutputs) Update

func (c *FakeClusterOutputs) Update(ctx context.Context, clusterOutput *v1alpha2.ClusterOutput, opts v1.UpdateOptions) (result *v1alpha2.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) Watch

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

type FakeClusterParsers

type FakeClusterParsers struct {
	Fake *FakeFluentbitV1alpha2
}

FakeClusterParsers implements ClusterParserInterface

func (*FakeClusterParsers) Create

func (c *FakeClusterParsers) Create(ctx context.Context, clusterParser *v1alpha2.ClusterParser, opts v1.CreateOptions) (result *v1alpha2.ClusterParser, err error)

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

func (*FakeClusterParsers) Delete

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

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

func (*FakeClusterParsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterParsers) Get

func (c *FakeClusterParsers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterParser, err error)

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

func (*FakeClusterParsers) List

func (c *FakeClusterParsers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ClusterParserList, err error)

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

func (*FakeClusterParsers) Patch

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

Patch applies the patch and returns the patched clusterParser.

func (*FakeClusterParsers) Update

func (c *FakeClusterParsers) Update(ctx context.Context, clusterParser *v1alpha2.ClusterParser, opts v1.UpdateOptions) (result *v1alpha2.ClusterParser, err error)

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

func (*FakeClusterParsers) Watch

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

type FakeFluentBits

type FakeFluentBits struct {
	Fake *FakeFluentbitV1alpha2
	// contains filtered or unexported fields
}

FakeFluentBits implements FluentBitInterface

func (*FakeFluentBits) Create

func (c *FakeFluentBits) Create(ctx context.Context, fluentBit *v1alpha2.FluentBit, opts v1.CreateOptions) (result *v1alpha2.FluentBit, err error)

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

func (*FakeFluentBits) Delete

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

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

func (*FakeFluentBits) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFluentBits) Get

func (c *FakeFluentBits) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.FluentBit, err error)

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

func (*FakeFluentBits) List

func (c *FakeFluentBits) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.FluentBitList, err error)

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

func (*FakeFluentBits) Patch

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

Patch applies the patch and returns the patched fluentBit.

func (*FakeFluentBits) Update

func (c *FakeFluentBits) Update(ctx context.Context, fluentBit *v1alpha2.FluentBit, opts v1.UpdateOptions) (result *v1alpha2.FluentBit, err error)

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

func (*FakeFluentBits) UpdateStatus

func (c *FakeFluentBits) UpdateStatus(ctx context.Context, fluentBit *v1alpha2.FluentBit, opts v1.UpdateOptions) (*v1alpha2.FluentBit, error)

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

func (*FakeFluentBits) Watch

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

type FakeFluentbitV1alpha2

type FakeFluentbitV1alpha2 struct {
	*testing.Fake
}

func (*FakeFluentbitV1alpha2) ClusterFilters

func (*FakeFluentbitV1alpha2) ClusterFluentBitConfigs

func (c *FakeFluentbitV1alpha2) ClusterFluentBitConfigs() v1alpha2.ClusterFluentBitConfigInterface

func (*FakeFluentbitV1alpha2) ClusterInputs

func (*FakeFluentbitV1alpha2) ClusterOutputs

func (*FakeFluentbitV1alpha2) ClusterParsers

func (*FakeFluentbitV1alpha2) FluentBits

func (c *FakeFluentbitV1alpha2) FluentBits(namespace string) v1alpha2.FluentBitInterface

func (*FakeFluentbitV1alpha2) RESTClient

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

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

Jump to

Keyboard shortcuts

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