Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeOctopusV1alpha1
- type FakePeers
- func (c *FakePeers) Create(ctx context.Context, peer *v1alpha1.Peer, opts v1.CreateOptions) (result *v1alpha1.Peer, err error)
- func (c *FakePeers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePeers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePeers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Peer, err error)
- func (c *FakePeers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PeerList, err error)
- func (c *FakePeers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Peer, err error)
- func (c *FakePeers) Update(ctx context.Context, peer *v1alpha1.Peer, opts v1.UpdateOptions) (result *v1alpha1.Peer, err error)
- func (c *FakePeers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeOctopusV1alpha1 ¶
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 ¶
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.