fake

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeAuditingV1alpha1

type FakeAuditingV1alpha1 struct {
	*testing.Fake
}

func (*FakeAuditingV1alpha1) RESTClient

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

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

func (*FakeAuditingV1alpha1) Rules

func (*FakeAuditingV1alpha1) Webhooks

type FakeRules

type FakeRules struct {
	Fake *FakeAuditingV1alpha1
}

FakeRules implements RuleInterface

func (*FakeRules) Create

func (c *FakeRules) Create(rule *v1alpha1.Rule) (result *v1alpha1.Rule, err error)

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

func (*FakeRules) Delete

func (c *FakeRules) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeRules) DeleteCollection

func (c *FakeRules) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRules) Get

func (c *FakeRules) Get(name string, options v1.GetOptions) (result *v1alpha1.Rule, err error)

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

func (*FakeRules) List

func (c *FakeRules) List(opts v1.ListOptions) (result *v1alpha1.RuleList, err error)

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

func (*FakeRules) Patch

func (c *FakeRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Rule, err error)

Patch applies the patch and returns the patched rule.

func (*FakeRules) Update

func (c *FakeRules) Update(rule *v1alpha1.Rule) (result *v1alpha1.Rule, err error)

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

func (*FakeRules) Watch

func (c *FakeRules) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeWebhooks

type FakeWebhooks struct {
	Fake *FakeAuditingV1alpha1
}

FakeWebhooks implements WebhookInterface

func (*FakeWebhooks) Create

func (c *FakeWebhooks) Create(webhook *v1alpha1.Webhook) (result *v1alpha1.Webhook, err error)

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

func (*FakeWebhooks) Delete

func (c *FakeWebhooks) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeWebhooks) DeleteCollection

func (c *FakeWebhooks) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeWebhooks) Get

func (c *FakeWebhooks) Get(name string, options v1.GetOptions) (result *v1alpha1.Webhook, err error)

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

func (*FakeWebhooks) List

func (c *FakeWebhooks) List(opts v1.ListOptions) (result *v1alpha1.WebhookList, err error)

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

func (*FakeWebhooks) Patch

func (c *FakeWebhooks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Webhook, err error)

Patch applies the patch and returns the patched webhook.

func (*FakeWebhooks) Update

func (c *FakeWebhooks) Update(webhook *v1alpha1.Webhook) (result *v1alpha1.Webhook, err error)

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

func (*FakeWebhooks) Watch

func (c *FakeWebhooks) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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