fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 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 FakeIdoV1alpha1

type FakeIdoV1alpha1 struct {
	*testing.Fake
}

func (*FakeIdoV1alpha1) Intents

func (c *FakeIdoV1alpha1) Intents(namespace string) v1alpha1.IntentInterface

func (*FakeIdoV1alpha1) KPIProfiles

func (c *FakeIdoV1alpha1) KPIProfiles(namespace string) v1alpha1.KPIProfileInterface

func (*FakeIdoV1alpha1) RESTClient

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

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

type FakeIntents

type FakeIntents struct {
	Fake *FakeIdoV1alpha1
	// contains filtered or unexported fields
}

FakeIntents implements IntentInterface

func (*FakeIntents) Create

func (c *FakeIntents) Create(ctx context.Context, intent *v1alpha1.Intent, opts v1.CreateOptions) (result *v1alpha1.Intent, err error)

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

func (*FakeIntents) Delete

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

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

func (*FakeIntents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIntents) Get

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

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

func (*FakeIntents) List

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

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

func (*FakeIntents) Patch

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

Patch applies the patch and returns the patched intent.

func (*FakeIntents) Update

func (c *FakeIntents) Update(ctx context.Context, intent *v1alpha1.Intent, opts v1.UpdateOptions) (result *v1alpha1.Intent, err error)

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

func (*FakeIntents) Watch

func (c *FakeIntents) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeKPIProfiles

type FakeKPIProfiles struct {
	Fake *FakeIdoV1alpha1
	// contains filtered or unexported fields
}

FakeKPIProfiles implements KPIProfileInterface

func (*FakeKPIProfiles) Create

func (c *FakeKPIProfiles) Create(ctx context.Context, kPIProfile *v1alpha1.KPIProfile, opts v1.CreateOptions) (result *v1alpha1.KPIProfile, err error)

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

func (*FakeKPIProfiles) Delete

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

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

func (*FakeKPIProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKPIProfiles) Get

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

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

func (*FakeKPIProfiles) List

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

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

func (*FakeKPIProfiles) Patch

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

Patch applies the patch and returns the patched kPIProfile.

func (*FakeKPIProfiles) Update

func (c *FakeKPIProfiles) Update(ctx context.Context, kPIProfile *v1alpha1.KPIProfile, opts v1.UpdateOptions) (result *v1alpha1.KPIProfile, err error)

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

func (*FakeKPIProfiles) UpdateStatus

func (c *FakeKPIProfiles) UpdateStatus(ctx context.Context, kPIProfile *v1alpha1.KPIProfile, opts v1.UpdateOptions) (*v1alpha1.KPIProfile, error)

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

func (*FakeKPIProfiles) Watch

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

Jump to

Keyboard shortcuts

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