fake

package
v0.0.0-...-51007fa Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 12 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 FakeFunctions

type FakeFunctions struct {
	Fake *FakeOpenfaasV1
	// contains filtered or unexported fields
}

FakeFunctions implements FunctionInterface

func (*FakeFunctions) Apply

func (c *FakeFunctions) Apply(ctx context.Context, function *openfaasv1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Function, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied function.

func (*FakeFunctions) Create

func (c *FakeFunctions) Create(ctx context.Context, function *v1.Function, opts metav1.CreateOptions) (result *v1.Function, err error)

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

func (*FakeFunctions) Delete

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

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

func (*FakeFunctions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFunctions) Get

func (c *FakeFunctions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Function, err error)

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

func (*FakeFunctions) List

func (c *FakeFunctions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FunctionList, err error)

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

func (*FakeFunctions) Patch

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

Patch applies the patch and returns the patched function.

func (*FakeFunctions) Update

func (c *FakeFunctions) Update(ctx context.Context, function *v1.Function, opts metav1.UpdateOptions) (result *v1.Function, err error)

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

func (*FakeFunctions) Watch

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

type FakeOpenfaasV1

type FakeOpenfaasV1 struct {
	*testing.Fake
}

func (*FakeOpenfaasV1) Functions

func (c *FakeOpenfaasV1) Functions(namespace string) v1.FunctionInterface

func (*FakeOpenfaasV1) Profiles

func (c *FakeOpenfaasV1) Profiles(namespace string) v1.ProfileInterface

func (*FakeOpenfaasV1) RESTClient

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

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

type FakeProfiles

type FakeProfiles struct {
	Fake *FakeOpenfaasV1
	// contains filtered or unexported fields
}

FakeProfiles implements ProfileInterface

func (*FakeProfiles) Apply

func (c *FakeProfiles) Apply(ctx context.Context, profile *openfaasv1.ProfileApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Profile, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied profile.

func (*FakeProfiles) Create

func (c *FakeProfiles) Create(ctx context.Context, profile *v1.Profile, opts metav1.CreateOptions) (result *v1.Profile, err error)

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

func (*FakeProfiles) Delete

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

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

func (*FakeProfiles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProfiles) Get

func (c *FakeProfiles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Profile, err error)

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

func (*FakeProfiles) List

func (c *FakeProfiles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ProfileList, err error)

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

func (*FakeProfiles) Patch

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

Patch applies the patch and returns the patched profile.

func (*FakeProfiles) Update

func (c *FakeProfiles) Update(ctx context.Context, profile *v1.Profile, opts metav1.UpdateOptions) (result *v1.Profile, err error)

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

func (*FakeProfiles) Watch

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

Jump to

Keyboard shortcuts

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