fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 FakeMonitoringDefaultRules

type FakeMonitoringDefaultRules struct {
	Fake *FakeSecurityV1alpha1
	// contains filtered or unexported fields
}

FakeMonitoringDefaultRules implements MonitoringDefaultRuleInterface

func (*FakeMonitoringDefaultRules) Create

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

func (*FakeMonitoringDefaultRules) Delete

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

func (*FakeMonitoringDefaultRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMonitoringDefaultRules) Get

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

func (*FakeMonitoringDefaultRules) List

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

func (*FakeMonitoringDefaultRules) Patch

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

Patch applies the patch and returns the patched monitoringDefaultRule.

func (*FakeMonitoringDefaultRules) Update

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

func (*FakeMonitoringDefaultRules) UpdateStatus

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

func (*FakeMonitoringDefaultRules) Watch

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

type FakeMonitoringFilters added in v0.4.0

type FakeMonitoringFilters struct {
	Fake *FakeSecurityV1alpha1
	// contains filtered or unexported fields
}

FakeMonitoringFilters implements MonitoringFilterInterface

func (*FakeMonitoringFilters) Create added in v0.4.0

func (c *FakeMonitoringFilters) Create(ctx context.Context, monitoringFilter *v1alpha1.MonitoringFilter, opts v1.CreateOptions) (result *v1alpha1.MonitoringFilter, err error)

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

func (*FakeMonitoringFilters) Delete added in v0.4.0

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

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

func (*FakeMonitoringFilters) DeleteCollection added in v0.4.0

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

DeleteCollection deletes a collection of objects.

func (*FakeMonitoringFilters) Get added in v0.4.0

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

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

func (*FakeMonitoringFilters) List added in v0.4.0

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

func (*FakeMonitoringFilters) Patch added in v0.4.0

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

Patch applies the patch and returns the patched monitoringFilter.

func (*FakeMonitoringFilters) Update added in v0.4.0

func (c *FakeMonitoringFilters) Update(ctx context.Context, monitoringFilter *v1alpha1.MonitoringFilter, opts v1.UpdateOptions) (result *v1alpha1.MonitoringFilter, err error)

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

func (*FakeMonitoringFilters) UpdateStatus added in v0.4.0

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

func (*FakeMonitoringFilters) Watch added in v0.4.0

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

type FakeMonitoringRules

type FakeMonitoringRules struct {
	Fake *FakeSecurityV1alpha1
	// contains filtered or unexported fields
}

FakeMonitoringRules implements MonitoringRuleInterface

func (*FakeMonitoringRules) Create

func (c *FakeMonitoringRules) Create(ctx context.Context, monitoringRule *v1alpha1.MonitoringRule, opts v1.CreateOptions) (result *v1alpha1.MonitoringRule, err error)

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

func (*FakeMonitoringRules) Delete

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

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

func (*FakeMonitoringRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMonitoringRules) Get

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

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

func (*FakeMonitoringRules) List

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

func (*FakeMonitoringRules) Patch

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

Patch applies the patch and returns the patched monitoringRule.

func (*FakeMonitoringRules) Update

func (c *FakeMonitoringRules) Update(ctx context.Context, monitoringRule *v1alpha1.MonitoringRule, opts v1.UpdateOptions) (result *v1alpha1.MonitoringRule, err error)

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

func (*FakeMonitoringRules) UpdateStatus

func (c *FakeMonitoringRules) UpdateStatus(ctx context.Context, monitoringRule *v1alpha1.MonitoringRule, opts v1.UpdateOptions) (*v1alpha1.MonitoringRule, error)

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

func (*FakeMonitoringRules) Watch

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

type FakeSecurityV1alpha1

type FakeSecurityV1alpha1 struct {
	*testing.Fake
}

func (*FakeSecurityV1alpha1) MonitoringDefaultRules

func (c *FakeSecurityV1alpha1) MonitoringDefaultRules(namespace string) v1alpha1.MonitoringDefaultRuleInterface

func (*FakeSecurityV1alpha1) MonitoringFilters added in v0.4.0

func (c *FakeSecurityV1alpha1) MonitoringFilters(namespace string) v1alpha1.MonitoringFilterInterface

func (*FakeSecurityV1alpha1) MonitoringRules

func (c *FakeSecurityV1alpha1) MonitoringRules(namespace string) v1alpha1.MonitoringRuleInterface

func (*FakeSecurityV1alpha1) RESTClient

func (c *FakeSecurityV1alpha1) 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