fake

package
v0.0.0-...-74587f1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 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 FakeOctopusV1alpha1

type FakeOctopusV1alpha1 struct {
	*testing.Fake
}

func (*FakeOctopusV1alpha1) Peers

func (c *FakeOctopusV1alpha1) Peers(namespace string) v1alpha1.PeerInterface

func (*FakeOctopusV1alpha1) RESTClient

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

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

type FakePeers

type FakePeers struct {
	Fake *FakeOctopusV1alpha1
	// contains filtered or unexported fields
}

FakePeers implements PeerInterface

func (*FakePeers) Create

func (c *FakePeers) Create(ctx context.Context, peer *v1alpha1.Peer, opts v1.CreateOptions) (result *v1alpha1.Peer, err error)

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

func (*FakePeers) Delete

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

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

func (*FakePeers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePeers) Get

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

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

func (*FakePeers) List

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

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

func (*FakePeers) Patch

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

Patch applies the patch and returns the patched peer.

func (*FakePeers) Update

func (c *FakePeers) Update(ctx context.Context, peer *v1alpha1.Peer, opts v1.UpdateOptions) (result *v1alpha1.Peer, err error)

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

func (*FakePeers) Watch

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

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

Jump to

Keyboard shortcuts

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