Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeStreamV1alpha1
- type FakeStreams
- func (c *FakeStreams) Create(ctx context.Context, stream *v1alpha1.Stream, opts v1.CreateOptions) (result *v1alpha1.Stream, err error)
- func (c *FakeStreams) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeStreams) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeStreams) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Stream, err error)
- func (c *FakeStreams) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StreamList, err error)
- func (c *FakeStreams) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Stream, err error)
- func (c *FakeStreams) Update(ctx context.Context, stream *v1alpha1.Stream, opts v1.UpdateOptions) (result *v1alpha1.Stream, err error)
- func (c *FakeStreams) UpdateStatus(ctx context.Context, stream *v1alpha1.Stream, opts v1.UpdateOptions) (*v1alpha1.Stream, error)
- func (c *FakeStreams) 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 FakeStreamV1alpha1 ¶
func (*FakeStreamV1alpha1) RESTClient ¶
func (c *FakeStreamV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeStreamV1alpha1) Streams ¶
func (c *FakeStreamV1alpha1) Streams() v1alpha1.StreamInterface
type FakeStreams ¶
type FakeStreams struct {
Fake *FakeStreamV1alpha1
}
FakeStreams implements StreamInterface
func (*FakeStreams) Create ¶
func (c *FakeStreams) Create(ctx context.Context, stream *v1alpha1.Stream, opts v1.CreateOptions) (result *v1alpha1.Stream, err error)
Create takes the representation of a stream and creates it. Returns the server's representation of the stream, and an error, if there is any.
func (*FakeStreams) Delete ¶
func (c *FakeStreams) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the stream and deletes it. Returns an error if one occurs.
func (*FakeStreams) DeleteCollection ¶
func (c *FakeStreams) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeStreams) Get ¶
func (c *FakeStreams) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Stream, err error)
Get takes name of the stream, and returns the corresponding stream object, and an error if there is any.
func (*FakeStreams) List ¶
func (c *FakeStreams) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StreamList, err error)
List takes label and field selectors, and returns the list of Streams that match those selectors.
func (*FakeStreams) Patch ¶
func (c *FakeStreams) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Stream, err error)
Patch applies the patch and returns the patched stream.
func (*FakeStreams) Update ¶
func (c *FakeStreams) Update(ctx context.Context, stream *v1alpha1.Stream, opts v1.UpdateOptions) (result *v1alpha1.Stream, err error)
Update takes the representation of a stream and updates it. Returns the server's representation of the stream, and an error, if there is any.
func (*FakeStreams) UpdateStatus ¶
func (c *FakeStreams) UpdateStatus(ctx context.Context, stream *v1alpha1.Stream, opts v1.UpdateOptions) (*v1alpha1.Stream, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeStreams) Watch ¶
func (c *FakeStreams) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested streams.