Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCanaries
- func (c *FakeCanaries) Create(canary *v1alpha3.Canary) (result *v1alpha3.Canary, err error)
- func (c *FakeCanaries) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeCanaries) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeCanaries) Get(name string, options v1.GetOptions) (result *v1alpha3.Canary, err error)
- func (c *FakeCanaries) List(opts v1.ListOptions) (result *v1alpha3.CanaryList, err error)
- func (c *FakeCanaries) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha3.Canary, err error)
- func (c *FakeCanaries) Update(canary *v1alpha3.Canary) (result *v1alpha3.Canary, err error)
- func (c *FakeCanaries) UpdateStatus(canary *v1alpha3.Canary) (*v1alpha3.Canary, error)
- func (c *FakeCanaries) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeFlaggerV1alpha3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCanaries ¶
type FakeCanaries struct { Fake *FakeFlaggerV1alpha3 // contains filtered or unexported fields }
FakeCanaries implements CanaryInterface
func (*FakeCanaries) Create ¶
Create takes the representation of a canary and creates it. Returns the server's representation of the canary, and an error, if there is any.
func (*FakeCanaries) Delete ¶
func (c *FakeCanaries) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the canary and deletes it. Returns an error if one occurs.
func (*FakeCanaries) DeleteCollection ¶
func (c *FakeCanaries) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeCanaries) Get ¶
func (c *FakeCanaries) Get(name string, options v1.GetOptions) (result *v1alpha3.Canary, err error)
Get takes name of the canary, and returns the corresponding canary object, and an error if there is any.
func (*FakeCanaries) List ¶
func (c *FakeCanaries) List(opts v1.ListOptions) (result *v1alpha3.CanaryList, err error)
List takes label and field selectors, and returns the list of Canaries that match those selectors.
func (*FakeCanaries) Patch ¶
func (c *FakeCanaries) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha3.Canary, err error)
Patch applies the patch and returns the patched canary.
func (*FakeCanaries) Update ¶
Update takes the representation of a canary and updates it. Returns the server's representation of the canary, and an error, if there is any.
func (*FakeCanaries) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeCanaries) Watch ¶
func (c *FakeCanaries) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested canaries.
type FakeFlaggerV1alpha3 ¶
func (*FakeFlaggerV1alpha3) Canaries ¶
func (c *FakeFlaggerV1alpha3) Canaries(namespace string) v1alpha3.CanaryInterface
func (*FakeFlaggerV1alpha3) RESTClient ¶
func (c *FakeFlaggerV1alpha3) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.