fake

package
v0.0.0-...-800f1fe Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT 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 FakeEventTypes

type FakeEventTypes struct {
	Fake *FakeKeasV1alpha1
	// contains filtered or unexported fields
}

FakeEventTypes implements EventTypeInterface

func (*FakeEventTypes) Create

func (c *FakeEventTypes) Create(ctx context.Context, eventType *v1alpha1.EventType, opts v1.CreateOptions) (result *v1alpha1.EventType, err error)

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

func (*FakeEventTypes) Delete

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

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

func (*FakeEventTypes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventTypes) Get

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

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

func (*FakeEventTypes) List

func (c *FakeEventTypes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EventTypeList, err error)

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

func (*FakeEventTypes) Patch

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

Patch applies the patch and returns the patched eventType.

func (*FakeEventTypes) Update

func (c *FakeEventTypes) Update(ctx context.Context, eventType *v1alpha1.EventType, opts v1.UpdateOptions) (result *v1alpha1.EventType, err error)

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

func (*FakeEventTypes) Watch

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

type FakeIngestionPolicies

type FakeIngestionPolicies struct {
	Fake *FakeKeasV1alpha1
	// contains filtered or unexported fields
}

FakeIngestionPolicies implements IngestionPolicyInterface

func (*FakeIngestionPolicies) Create

func (c *FakeIngestionPolicies) Create(ctx context.Context, ingestionPolicy *v1alpha1.IngestionPolicy, opts v1.CreateOptions) (result *v1alpha1.IngestionPolicy, err error)

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

func (*FakeIngestionPolicies) Delete

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

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

func (*FakeIngestionPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIngestionPolicies) Get

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

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

func (*FakeIngestionPolicies) List

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

func (*FakeIngestionPolicies) Patch

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

Patch applies the patch and returns the patched ingestionPolicy.

func (*FakeIngestionPolicies) Update

func (c *FakeIngestionPolicies) Update(ctx context.Context, ingestionPolicy *v1alpha1.IngestionPolicy, opts v1.UpdateOptions) (result *v1alpha1.IngestionPolicy, err error)

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

func (*FakeIngestionPolicies) Watch

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

type FakeKeasV1alpha1

type FakeKeasV1alpha1 struct {
	*testing.Fake
}

func (*FakeKeasV1alpha1) EventTypes

func (c *FakeKeasV1alpha1) EventTypes(namespace string) v1alpha1.EventTypeInterface

func (*FakeKeasV1alpha1) IngestionPolicies

func (c *FakeKeasV1alpha1) IngestionPolicies(namespace string) v1alpha1.IngestionPolicyInterface

func (*FakeKeasV1alpha1) RESTClient

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