fake

package
v0.0.0-...-0a9c605 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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 FakeFilters

type FakeFilters struct {
	Fake *FakeLoggingV1alpha2
	// contains filtered or unexported fields
}

FakeFilters implements FilterInterface

func (*FakeFilters) Create

func (c *FakeFilters) Create(ctx context.Context, filter *v1alpha2.Filter, opts v1.CreateOptions) (result *v1alpha2.Filter, err error)

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

func (*FakeFilters) Delete

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

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

func (*FakeFilters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFilters) Get

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

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

func (*FakeFilters) List

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

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

func (*FakeFilters) Patch

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

Patch applies the patch and returns the patched filter.

func (*FakeFilters) Update

func (c *FakeFilters) Update(ctx context.Context, filter *v1alpha2.Filter, opts v1.UpdateOptions) (result *v1alpha2.Filter, err error)

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

func (*FakeFilters) Watch

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

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

type FakeFluentBitConfigs

type FakeFluentBitConfigs struct {
	Fake *FakeLoggingV1alpha2
	// contains filtered or unexported fields
}

FakeFluentBitConfigs implements FluentBitConfigInterface

func (*FakeFluentBitConfigs) Create

func (c *FakeFluentBitConfigs) Create(ctx context.Context, fluentBitConfig *v1alpha2.FluentBitConfig, opts v1.CreateOptions) (result *v1alpha2.FluentBitConfig, err error)

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

func (*FakeFluentBitConfigs) Delete

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

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

func (*FakeFluentBitConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFluentBitConfigs) Get

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

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

func (*FakeFluentBitConfigs) List

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

func (*FakeFluentBitConfigs) Patch

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

Patch applies the patch and returns the patched fluentBitConfig.

func (*FakeFluentBitConfigs) Update

func (c *FakeFluentBitConfigs) Update(ctx context.Context, fluentBitConfig *v1alpha2.FluentBitConfig, opts v1.UpdateOptions) (result *v1alpha2.FluentBitConfig, err error)

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

func (*FakeFluentBitConfigs) Watch

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

type FakeFluentBits

type FakeFluentBits struct {
	Fake *FakeLoggingV1alpha2
	// 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 FakeInputs

type FakeInputs struct {
	Fake *FakeLoggingV1alpha2
	// contains filtered or unexported fields
}

FakeInputs implements InputInterface

func (*FakeInputs) Create

func (c *FakeInputs) Create(ctx context.Context, input *v1alpha2.Input, opts v1.CreateOptions) (result *v1alpha2.Input, err error)

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

func (*FakeInputs) Delete

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

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

func (*FakeInputs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInputs) Get

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

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

func (*FakeInputs) List

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

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

func (*FakeInputs) Patch

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

Patch applies the patch and returns the patched input.

func (*FakeInputs) Update

func (c *FakeInputs) Update(ctx context.Context, input *v1alpha2.Input, opts v1.UpdateOptions) (result *v1alpha2.Input, err error)

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

func (*FakeInputs) Watch

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

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

type FakeLoggingV1alpha2

type FakeLoggingV1alpha2 struct {
	*testing.Fake
}

func (*FakeLoggingV1alpha2) Filters

func (c *FakeLoggingV1alpha2) Filters(namespace string) v1alpha2.FilterInterface

func (*FakeLoggingV1alpha2) FluentBitConfigs

func (c *FakeLoggingV1alpha2) FluentBitConfigs(namespace string) v1alpha2.FluentBitConfigInterface

func (*FakeLoggingV1alpha2) FluentBits

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

func (*FakeLoggingV1alpha2) Inputs

func (c *FakeLoggingV1alpha2) Inputs(namespace string) v1alpha2.InputInterface

func (*FakeLoggingV1alpha2) Outputs

func (c *FakeLoggingV1alpha2) Outputs(namespace string) v1alpha2.OutputInterface

func (*FakeLoggingV1alpha2) Parsers

func (c *FakeLoggingV1alpha2) Parsers(namespace string) v1alpha2.ParserInterface

func (*FakeLoggingV1alpha2) RESTClient

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

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

type FakeOutputs

type FakeOutputs struct {
	Fake *FakeLoggingV1alpha2
	// contains filtered or unexported fields
}

FakeOutputs implements OutputInterface

func (*FakeOutputs) Create

func (c *FakeOutputs) Create(ctx context.Context, output *v1alpha2.Output, opts v1.CreateOptions) (result *v1alpha2.Output, err error)

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

func (*FakeOutputs) Delete

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

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

func (*FakeOutputs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOutputs) Get

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

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

func (*FakeOutputs) List

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

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

func (*FakeOutputs) Patch

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

Patch applies the patch and returns the patched output.

func (*FakeOutputs) Update

func (c *FakeOutputs) Update(ctx context.Context, output *v1alpha2.Output, opts v1.UpdateOptions) (result *v1alpha2.Output, err error)

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

func (*FakeOutputs) Watch

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

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

type FakeParsers

type FakeParsers struct {
	Fake *FakeLoggingV1alpha2
	// contains filtered or unexported fields
}

FakeParsers implements ParserInterface

func (*FakeParsers) Create

func (c *FakeParsers) Create(ctx context.Context, parser *v1alpha2.Parser, opts v1.CreateOptions) (result *v1alpha2.Parser, err error)

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

func (*FakeParsers) Delete

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

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

func (*FakeParsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeParsers) Get

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

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

func (*FakeParsers) List

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

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

func (*FakeParsers) Patch

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

Patch applies the patch and returns the patched parser.

func (*FakeParsers) Update

func (c *FakeParsers) Update(ctx context.Context, parser *v1alpha2.Parser, opts v1.UpdateOptions) (result *v1alpha2.Parser, err error)

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

func (*FakeParsers) Watch

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

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

Jump to

Keyboard shortcuts

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