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