Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeSuggestionV1beta1
- type FakeSuggestions
- func (c *FakeSuggestions) Apply(ctx context.Context, ...) (result *v1beta1.Suggestion, err error)
- func (c *FakeSuggestions) ApplyStatus(ctx context.Context, ...) (result *v1beta1.Suggestion, err error)
- func (c *FakeSuggestions) Create(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.CreateOptions) (result *v1beta1.Suggestion, err error)
- func (c *FakeSuggestions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSuggestions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSuggestions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Suggestion, err error)
- func (c *FakeSuggestions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SuggestionList, err error)
- func (c *FakeSuggestions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1beta1.Suggestion, err error)
- func (c *FakeSuggestions) Update(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.UpdateOptions) (result *v1beta1.Suggestion, err error)
- func (c *FakeSuggestions) UpdateStatus(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.UpdateOptions) (*v1beta1.Suggestion, error)
- func (c *FakeSuggestions) 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 FakeSuggestionV1beta1 ¶
func (*FakeSuggestionV1beta1) RESTClient ¶
func (c *FakeSuggestionV1beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeSuggestionV1beta1) Suggestions ¶
func (c *FakeSuggestionV1beta1) Suggestions(namespace string) v1beta1.SuggestionInterface
type FakeSuggestions ¶
type FakeSuggestions struct { Fake *FakeSuggestionV1beta1 // contains filtered or unexported fields }
FakeSuggestions implements SuggestionInterface
func (*FakeSuggestions) Apply ¶ added in v0.16.0
func (c *FakeSuggestions) Apply(ctx context.Context, suggestion *suggestionsv1beta1.SuggestionApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.Suggestion, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied suggestion.
func (*FakeSuggestions) ApplyStatus ¶ added in v0.16.0
func (c *FakeSuggestions) ApplyStatus(ctx context.Context, suggestion *suggestionsv1beta1.SuggestionApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.Suggestion, err error)
ApplyStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
func (*FakeSuggestions) Create ¶
func (c *FakeSuggestions) Create(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.CreateOptions) (result *v1beta1.Suggestion, err error)
Create takes the representation of a suggestion and creates it. Returns the server's representation of the suggestion, and an error, if there is any.
func (*FakeSuggestions) Delete ¶
func (c *FakeSuggestions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the suggestion and deletes it. Returns an error if one occurs.
func (*FakeSuggestions) DeleteCollection ¶
func (c *FakeSuggestions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSuggestions) Get ¶
func (c *FakeSuggestions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Suggestion, err error)
Get takes name of the suggestion, and returns the corresponding suggestion object, and an error if there is any.
func (*FakeSuggestions) List ¶
func (c *FakeSuggestions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SuggestionList, err error)
List takes label and field selectors, and returns the list of Suggestions that match those selectors.
func (*FakeSuggestions) Patch ¶
func (c *FakeSuggestions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Suggestion, err error)
Patch applies the patch and returns the patched suggestion.
func (*FakeSuggestions) Update ¶
func (c *FakeSuggestions) Update(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.UpdateOptions) (result *v1beta1.Suggestion, err error)
Update takes the representation of a suggestion and updates it. Returns the server's representation of the suggestion, and an error, if there is any.
func (*FakeSuggestions) UpdateStatus ¶
func (c *FakeSuggestions) UpdateStatus(ctx context.Context, suggestion *v1beta1.Suggestion, opts v1.UpdateOptions) (*v1beta1.Suggestion, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSuggestions) Watch ¶
func (c *FakeSuggestions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested suggestions.