fake

package
v0.92.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 9 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 FakeAnalyzers

type FakeAnalyzers struct {
	Fake *FakeTroubleshootV1beta1
	// contains filtered or unexported fields
}

FakeAnalyzers implements AnalyzerInterface

func (*FakeAnalyzers) Create

func (c *FakeAnalyzers) Create(ctx context.Context, analyzer *v1beta1.Analyzer, opts v1.CreateOptions) (result *v1beta1.Analyzer, err error)

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

func (*FakeAnalyzers) Delete

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

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

func (*FakeAnalyzers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAnalyzers) Get

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

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

func (*FakeAnalyzers) List

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

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

func (*FakeAnalyzers) Patch

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

Patch applies the patch and returns the patched analyzer.

func (*FakeAnalyzers) Update

func (c *FakeAnalyzers) Update(ctx context.Context, analyzer *v1beta1.Analyzer, opts v1.UpdateOptions) (result *v1beta1.Analyzer, err error)

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

func (*FakeAnalyzers) UpdateStatus

func (c *FakeAnalyzers) UpdateStatus(ctx context.Context, analyzer *v1beta1.Analyzer, opts v1.UpdateOptions) (*v1beta1.Analyzer, error)

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

func (*FakeAnalyzers) Watch

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

type FakeCollectors

type FakeCollectors struct {
	Fake *FakeTroubleshootV1beta1
	// contains filtered or unexported fields
}

FakeCollectors implements CollectorInterface

func (*FakeCollectors) Create

func (c *FakeCollectors) Create(ctx context.Context, collector *v1beta1.Collector, opts v1.CreateOptions) (result *v1beta1.Collector, err error)

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

func (*FakeCollectors) Delete

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

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

func (*FakeCollectors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCollectors) Get

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

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

func (*FakeCollectors) List

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

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

func (*FakeCollectors) Patch

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

Patch applies the patch and returns the patched collector.

func (*FakeCollectors) Update

func (c *FakeCollectors) Update(ctx context.Context, collector *v1beta1.Collector, opts v1.UpdateOptions) (result *v1beta1.Collector, err error)

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

func (*FakeCollectors) UpdateStatus

func (c *FakeCollectors) UpdateStatus(ctx context.Context, collector *v1beta1.Collector, opts v1.UpdateOptions) (*v1beta1.Collector, error)

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

func (*FakeCollectors) Watch

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

type FakePreflights

type FakePreflights struct {
	Fake *FakeTroubleshootV1beta1
	// contains filtered or unexported fields
}

FakePreflights implements PreflightInterface

func (*FakePreflights) Create

func (c *FakePreflights) Create(ctx context.Context, preflight *v1beta1.Preflight, opts v1.CreateOptions) (result *v1beta1.Preflight, err error)

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

func (*FakePreflights) Delete

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

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

func (*FakePreflights) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePreflights) Get

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

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

func (*FakePreflights) List

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

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

func (*FakePreflights) Patch

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

Patch applies the patch and returns the patched preflight.

func (*FakePreflights) Update

func (c *FakePreflights) Update(ctx context.Context, preflight *v1beta1.Preflight, opts v1.UpdateOptions) (result *v1beta1.Preflight, err error)

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

func (*FakePreflights) UpdateStatus

func (c *FakePreflights) UpdateStatus(ctx context.Context, preflight *v1beta1.Preflight, opts v1.UpdateOptions) (*v1beta1.Preflight, error)

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

func (*FakePreflights) Watch

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

type FakeRedactors added in v0.9.29

type FakeRedactors struct {
	Fake *FakeTroubleshootV1beta1
	// contains filtered or unexported fields
}

FakeRedactors implements RedactorInterface

func (*FakeRedactors) Create added in v0.9.29

func (c *FakeRedactors) Create(ctx context.Context, redactor *v1beta1.Redactor, opts v1.CreateOptions) (result *v1beta1.Redactor, err error)

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

func (*FakeRedactors) Delete added in v0.9.29

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

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

func (*FakeRedactors) DeleteCollection added in v0.9.29

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

DeleteCollection deletes a collection of objects.

func (*FakeRedactors) Get added in v0.9.29

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

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

func (*FakeRedactors) List added in v0.9.29

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

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

func (*FakeRedactors) Patch added in v0.9.29

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

Patch applies the patch and returns the patched redactor.

func (*FakeRedactors) Update added in v0.9.29

func (c *FakeRedactors) Update(ctx context.Context, redactor *v1beta1.Redactor, opts v1.UpdateOptions) (result *v1beta1.Redactor, err error)

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

func (*FakeRedactors) UpdateStatus added in v0.9.29

func (c *FakeRedactors) UpdateStatus(ctx context.Context, redactor *v1beta1.Redactor, opts v1.UpdateOptions) (*v1beta1.Redactor, error)

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

func (*FakeRedactors) Watch added in v0.9.29

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

type FakeSupportBundles added in v0.9.37

type FakeSupportBundles struct {
	Fake *FakeTroubleshootV1beta1
	// contains filtered or unexported fields
}

FakeSupportBundles implements SupportBundleInterface

func (*FakeSupportBundles) Create added in v0.9.37

func (c *FakeSupportBundles) Create(ctx context.Context, supportBundle *v1beta1.SupportBundle, opts v1.CreateOptions) (result *v1beta1.SupportBundle, err error)

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

func (*FakeSupportBundles) Delete added in v0.9.37

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

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

func (*FakeSupportBundles) DeleteCollection added in v0.9.37

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

DeleteCollection deletes a collection of objects.

func (*FakeSupportBundles) Get added in v0.9.37

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

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

func (*FakeSupportBundles) List added in v0.9.37

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

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

func (*FakeSupportBundles) Patch added in v0.9.37

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

Patch applies the patch and returns the patched supportBundle.

func (*FakeSupportBundles) Update added in v0.9.37

func (c *FakeSupportBundles) Update(ctx context.Context, supportBundle *v1beta1.SupportBundle, opts v1.UpdateOptions) (result *v1beta1.SupportBundle, err error)

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

func (*FakeSupportBundles) UpdateStatus added in v0.9.37

func (c *FakeSupportBundles) UpdateStatus(ctx context.Context, supportBundle *v1beta1.SupportBundle, opts v1.UpdateOptions) (*v1beta1.SupportBundle, error)

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

func (*FakeSupportBundles) Watch added in v0.9.37

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

type FakeTroubleshootV1beta1

type FakeTroubleshootV1beta1 struct {
	*testing.Fake
}

func (*FakeTroubleshootV1beta1) Analyzers

func (c *FakeTroubleshootV1beta1) Analyzers(namespace string) v1beta1.AnalyzerInterface

func (*FakeTroubleshootV1beta1) Collectors

func (c *FakeTroubleshootV1beta1) Collectors(namespace string) v1beta1.CollectorInterface

func (*FakeTroubleshootV1beta1) Preflights

func (c *FakeTroubleshootV1beta1) Preflights(namespace string) v1beta1.PreflightInterface

func (*FakeTroubleshootV1beta1) RESTClient

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

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

func (*FakeTroubleshootV1beta1) Redactors added in v0.9.29

func (c *FakeTroubleshootV1beta1) Redactors(namespace string) v1beta1.RedactorInterface

func (*FakeTroubleshootV1beta1) SupportBundles added in v0.9.37

func (c *FakeTroubleshootV1beta1) SupportBundles(namespace string) v1beta1.SupportBundleInterface

Jump to

Keyboard shortcuts

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