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