fake

package
v0.0.0-...-82e8bd7 Latest Latest
Warning

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

Go to latest
Published: May 3, 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 FakeFunctions

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

FakeFunctions implements FunctionInterface

func (*FakeFunctions) Create

func (c *FakeFunctions) Create(ctx context.Context, function *openfaasv1.Function, opts v1.CreateOptions) (result *openfaasv1.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 v1.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 v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFunctions) Get

func (c *FakeFunctions) Get(ctx context.Context, name string, options v1.GetOptions) (result *openfaasv1.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 v1.ListOptions) (result *openfaasv1.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 v1.PatchOptions, subresources ...string) (result *openfaasv1.Function, err error)

Patch applies the patch and returns the patched function.

func (*FakeFunctions) Update

func (c *FakeFunctions) Update(ctx context.Context, function *openfaasv1.Function, opts v1.UpdateOptions) (result *openfaasv1.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) Create

func (c *FakeProfiles) Create(ctx context.Context, profile *openfaasv1.Profile, opts v1.CreateOptions) (result *openfaasv1.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 v1.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 v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeProfiles) Get

func (c *FakeProfiles) Get(ctx context.Context, name string, options v1.GetOptions) (result *openfaasv1.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 v1.ListOptions) (result *openfaasv1.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 v1.PatchOptions, subresources ...string) (result *openfaasv1.Profile, err error)

Patch applies the patch and returns the patched profile.

func (*FakeProfiles) Update

func (c *FakeProfiles) Update(ctx context.Context, profile *openfaasv1.Profile, opts v1.UpdateOptions) (result *openfaasv1.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

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

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