fake

package
v0.0.0-...-1fec092 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 9 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 FakeSIPCalls

type FakeSIPCalls struct {
	Fake *FakeSipV1
	// contains filtered or unexported fields
}

FakeSIPCalls implements SIPCallInterface

func (*FakeSIPCalls) Create

func (c *FakeSIPCalls) Create(ctx context.Context, sIPCall *v1.SIPCall, opts metav1.CreateOptions) (result *v1.SIPCall, err error)

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

func (*FakeSIPCalls) Delete

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

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

func (*FakeSIPCalls) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSIPCalls) Get

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

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

func (*FakeSIPCalls) List

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

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

func (*FakeSIPCalls) Patch

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

Patch applies the patch and returns the patched sIPCall.

func (*FakeSIPCalls) Update

func (c *FakeSIPCalls) Update(ctx context.Context, sIPCall *v1.SIPCall, opts metav1.UpdateOptions) (result *v1.SIPCall, err error)

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

func (*FakeSIPCalls) Watch

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

type FakeSIPMessages

type FakeSIPMessages struct {
	Fake *FakeSipV1
	// contains filtered or unexported fields
}

FakeSIPMessages implements SIPMessageInterface

func (*FakeSIPMessages) Create

func (c *FakeSIPMessages) Create(ctx context.Context, sIPMessage *v1.SIPMessage, opts metav1.CreateOptions) (result *v1.SIPMessage, err error)

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

func (*FakeSIPMessages) Delete

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

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

func (*FakeSIPMessages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSIPMessages) Get

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

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

func (*FakeSIPMessages) List

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

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

func (*FakeSIPMessages) Patch

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

Patch applies the patch and returns the patched sIPMessage.

func (*FakeSIPMessages) Update

func (c *FakeSIPMessages) Update(ctx context.Context, sIPMessage *v1.SIPMessage, opts metav1.UpdateOptions) (result *v1.SIPMessage, err error)

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

func (*FakeSIPMessages) Watch

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

type FakeSipV1

type FakeSipV1 struct {
	*testing.Fake
}

func (*FakeSipV1) RESTClient

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

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

func (*FakeSipV1) SIPCalls

func (c *FakeSipV1) SIPCalls(namespace string) v1.SIPCallInterface

func (*FakeSipV1) SIPMessages

func (c *FakeSipV1) SIPMessages(namespace string) v1.SIPMessageInterface

Jump to

Keyboard shortcuts

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