Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeFed4fireV1
- type FakeSlivers
- func (c *FakeSlivers) Create(ctx context.Context, sliver *fed4firev1.Sliver, opts v1.CreateOptions) (result *fed4firev1.Sliver, err error)
- func (c *FakeSlivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSlivers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSlivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *fed4firev1.Sliver, err error)
- func (c *FakeSlivers) List(ctx context.Context, opts v1.ListOptions) (result *fed4firev1.SliverList, err error)
- func (c *FakeSlivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *fed4firev1.Sliver, err error)
- func (c *FakeSlivers) Update(ctx context.Context, sliver *fed4firev1.Sliver, opts v1.UpdateOptions) (result *fed4firev1.Sliver, err error)
- func (c *FakeSlivers) 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 FakeFed4fireV1 ¶
func (*FakeFed4fireV1) RESTClient ¶
func (c *FakeFed4fireV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeFed4fireV1) Slivers ¶
func (c *FakeFed4fireV1) Slivers(namespace string) v1.SliverInterface
type FakeSlivers ¶
type FakeSlivers struct { Fake *FakeFed4fireV1 // contains filtered or unexported fields }
FakeSlivers implements SliverInterface
func (*FakeSlivers) Create ¶
func (c *FakeSlivers) Create( ctx context.Context, sliver *fed4firev1.Sliver, opts v1.CreateOptions, ) (result *fed4firev1.Sliver, err error)
Create takes the representation of a sliver and creates it. Returns the server's representation of the sliver, and an error, if there is any.
func (*FakeSlivers) Delete ¶
func (c *FakeSlivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the sliver and deletes it. Returns an error if one occurs.
func (*FakeSlivers) DeleteCollection ¶
func (c *FakeSlivers) DeleteCollection( ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions, ) error
DeleteCollection deletes a collection of objects.
func (*FakeSlivers) Get ¶
func (c *FakeSlivers) Get( ctx context.Context, name string, options v1.GetOptions, ) (result *fed4firev1.Sliver, err error)
Get takes name of the sliver, and returns the corresponding sliver object, and an error if there is any.
func (*FakeSlivers) List ¶
func (c *FakeSlivers) List( ctx context.Context, opts v1.ListOptions, ) (result *fed4firev1.SliverList, err error)
List takes label and field selectors, and returns the list of Slivers that match those selectors.
func (*FakeSlivers) Patch ¶
func (c *FakeSlivers) Patch( ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string, ) (result *fed4firev1.Sliver, err error)
Patch applies the patch and returns the patched sliver.
func (*FakeSlivers) Update ¶
func (c *FakeSlivers) Update( ctx context.Context, sliver *fed4firev1.Sliver, opts v1.UpdateOptions, ) (result *fed4firev1.Sliver, err error)
Update takes the representation of a sliver and updates it. Returns the server's representation of the sliver, and an error, if there is any.
func (*FakeSlivers) Watch ¶
func (c *FakeSlivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested slivers.