fake

package
v0.0.0-...-e779149 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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 FakeAlertingV2beta1

type FakeAlertingV2beta1 struct {
	*testing.Fake
}

func (*FakeAlertingV2beta1) ClusterRuleGroups

func (c *FakeAlertingV2beta1) ClusterRuleGroups() v2beta1.ClusterRuleGroupInterface

func (*FakeAlertingV2beta1) GlobalRuleGroups

func (*FakeAlertingV2beta1) RESTClient

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

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

func (*FakeAlertingV2beta1) RuleGroups

func (c *FakeAlertingV2beta1) RuleGroups(namespace string) v2beta1.RuleGroupInterface

type FakeClusterRuleGroups

type FakeClusterRuleGroups struct {
	Fake *FakeAlertingV2beta1
}

FakeClusterRuleGroups implements ClusterRuleGroupInterface

func (*FakeClusterRuleGroups) Create

func (c *FakeClusterRuleGroups) Create(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, opts v1.CreateOptions) (result *v2beta1.ClusterRuleGroup, err error)

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

func (*FakeClusterRuleGroups) Delete

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

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

func (*FakeClusterRuleGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterRuleGroups) Get

func (c *FakeClusterRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.ClusterRuleGroup, err error)

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

func (*FakeClusterRuleGroups) List

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

func (*FakeClusterRuleGroups) Patch

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

Patch applies the patch and returns the patched clusterRuleGroup.

func (*FakeClusterRuleGroups) Update

func (c *FakeClusterRuleGroups) Update(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, opts v1.UpdateOptions) (result *v2beta1.ClusterRuleGroup, err error)

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

func (*FakeClusterRuleGroups) UpdateStatus

func (c *FakeClusterRuleGroups) UpdateStatus(ctx context.Context, clusterRuleGroup *v2beta1.ClusterRuleGroup, opts v1.UpdateOptions) (*v2beta1.ClusterRuleGroup, error)

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

func (*FakeClusterRuleGroups) Watch

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

type FakeGlobalRuleGroups

type FakeGlobalRuleGroups struct {
	Fake *FakeAlertingV2beta1
}

FakeGlobalRuleGroups implements GlobalRuleGroupInterface

func (*FakeGlobalRuleGroups) Create

func (c *FakeGlobalRuleGroups) Create(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, opts v1.CreateOptions) (result *v2beta1.GlobalRuleGroup, err error)

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

func (*FakeGlobalRuleGroups) Delete

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

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

func (*FakeGlobalRuleGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalRuleGroups) Get

func (c *FakeGlobalRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.GlobalRuleGroup, err error)

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

func (*FakeGlobalRuleGroups) List

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

func (*FakeGlobalRuleGroups) Patch

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

Patch applies the patch and returns the patched globalRuleGroup.

func (*FakeGlobalRuleGroups) Update

func (c *FakeGlobalRuleGroups) Update(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, opts v1.UpdateOptions) (result *v2beta1.GlobalRuleGroup, err error)

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

func (*FakeGlobalRuleGroups) UpdateStatus

func (c *FakeGlobalRuleGroups) UpdateStatus(ctx context.Context, globalRuleGroup *v2beta1.GlobalRuleGroup, opts v1.UpdateOptions) (*v2beta1.GlobalRuleGroup, error)

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

func (*FakeGlobalRuleGroups) Watch

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

type FakeRuleGroups

type FakeRuleGroups struct {
	Fake *FakeAlertingV2beta1
	// contains filtered or unexported fields
}

FakeRuleGroups implements RuleGroupInterface

func (*FakeRuleGroups) Create

func (c *FakeRuleGroups) Create(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.CreateOptions) (result *v2beta1.RuleGroup, err error)

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

func (*FakeRuleGroups) Delete

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

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

func (*FakeRuleGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRuleGroups) Get

func (c *FakeRuleGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.RuleGroup, err error)

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

func (*FakeRuleGroups) List

func (c *FakeRuleGroups) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.RuleGroupList, err error)

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

func (*FakeRuleGroups) Patch

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

Patch applies the patch and returns the patched ruleGroup.

func (*FakeRuleGroups) Update

func (c *FakeRuleGroups) Update(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.UpdateOptions) (result *v2beta1.RuleGroup, err error)

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

func (*FakeRuleGroups) UpdateStatus

func (c *FakeRuleGroups) UpdateStatus(ctx context.Context, ruleGroup *v2beta1.RuleGroup, opts v1.UpdateOptions) (*v2beta1.RuleGroup, error)

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

func (*FakeRuleGroups) Watch

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

Jump to

Keyboard shortcuts

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