Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusterTestTypes
- func (c *FakeClusterTestTypes) Create(clusterTestType *examplev1.ClusterTestType) (result *examplev1.ClusterTestType, err error)
- func (c *FakeClusterTestTypes) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusterTestTypes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusterTestTypes) Get(name string, options v1.GetOptions) (result *examplev1.ClusterTestType, err error)
- func (c *FakeClusterTestTypes) GetScale(clusterTestTypeName string, options v1.GetOptions) (result *autoscaling.Scale, err error)
- func (c *FakeClusterTestTypes) List(opts v1.ListOptions) (result *examplev1.ClusterTestTypeList, err error)
- func (c *FakeClusterTestTypes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *examplev1.ClusterTestType, err error)
- func (c *FakeClusterTestTypes) Update(clusterTestType *examplev1.ClusterTestType) (result *examplev1.ClusterTestType, err error)
- func (c *FakeClusterTestTypes) UpdateScale(clusterTestTypeName string, scale *autoscaling.Scale) (result *autoscaling.Scale, err error)
- func (c *FakeClusterTestTypes) UpdateStatus(clusterTestType *examplev1.ClusterTestType) (*examplev1.ClusterTestType, error)
- func (c *FakeClusterTestTypes) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeExampleV1
- type FakeTestTypes
- func (c *FakeTestTypes) Create(testType *examplev1.TestType) (result *examplev1.TestType, err error)
- func (c *FakeTestTypes) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeTestTypes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeTestTypes) Get(name string, options v1.GetOptions) (result *examplev1.TestType, err error)
- func (c *FakeTestTypes) List(opts v1.ListOptions) (result *examplev1.TestTypeList, err error)
- func (c *FakeTestTypes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *examplev1.TestType, err error)
- func (c *FakeTestTypes) Update(testType *examplev1.TestType) (result *examplev1.TestType, err error)
- func (c *FakeTestTypes) UpdateStatus(testType *examplev1.TestType) (*examplev1.TestType, error)
- func (c *FakeTestTypes) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusterTestTypes ¶ added in v1.11.0
type FakeClusterTestTypes struct {
Fake *FakeExampleV1
}
FakeClusterTestTypes implements ClusterTestTypeInterface
func (*FakeClusterTestTypes) Create ¶ added in v1.11.0
func (c *FakeClusterTestTypes) Create(clusterTestType *examplev1.ClusterTestType) (result *examplev1.ClusterTestType, err error)
Create takes the representation of a clusterTestType and creates it. Returns the server's representation of the clusterTestType, and an error, if there is any.
func (*FakeClusterTestTypes) Delete ¶ added in v1.11.0
func (c *FakeClusterTestTypes) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the clusterTestType and deletes it. Returns an error if one occurs.
func (*FakeClusterTestTypes) DeleteCollection ¶ added in v1.11.0
func (c *FakeClusterTestTypes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterTestTypes) Get ¶ added in v1.11.0
func (c *FakeClusterTestTypes) Get(name string, options v1.GetOptions) (result *examplev1.ClusterTestType, err error)
Get takes name of the clusterTestType, and returns the corresponding clusterTestType object, and an error if there is any.
func (*FakeClusterTestTypes) GetScale ¶ added in v1.11.0
func (c *FakeClusterTestTypes) GetScale(clusterTestTypeName string, options v1.GetOptions) (result *autoscaling.Scale, err error)
GetScale takes name of the clusterTestType, and returns the corresponding scale object, and an error if there is any.
func (*FakeClusterTestTypes) List ¶ added in v1.11.0
func (c *FakeClusterTestTypes) List(opts v1.ListOptions) (result *examplev1.ClusterTestTypeList, err error)
List takes label and field selectors, and returns the list of ClusterTestTypes that match those selectors.
func (*FakeClusterTestTypes) Patch ¶ added in v1.11.0
func (c *FakeClusterTestTypes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *examplev1.ClusterTestType, err error)
Patch applies the patch and returns the patched clusterTestType.
func (*FakeClusterTestTypes) Update ¶ added in v1.11.0
func (c *FakeClusterTestTypes) Update(clusterTestType *examplev1.ClusterTestType) (result *examplev1.ClusterTestType, err error)
Update takes the representation of a clusterTestType and updates it. Returns the server's representation of the clusterTestType, and an error, if there is any.
func (*FakeClusterTestTypes) UpdateScale ¶ added in v1.11.0
func (c *FakeClusterTestTypes) UpdateScale(clusterTestTypeName string, scale *autoscaling.Scale) (result *autoscaling.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 (*FakeClusterTestTypes) UpdateStatus ¶ added in v1.11.0
func (c *FakeClusterTestTypes) UpdateStatus(clusterTestType *examplev1.ClusterTestType) (*examplev1.ClusterTestType, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusterTestTypes) Watch ¶ added in v1.11.0
func (c *FakeClusterTestTypes) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterTestTypes.
type FakeExampleV1 ¶
func (*FakeExampleV1) ClusterTestTypes ¶ added in v1.11.0
func (c *FakeExampleV1) ClusterTestTypes() v1.ClusterTestTypeInterface
func (*FakeExampleV1) RESTClient ¶
func (c *FakeExampleV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeExampleV1) TestTypes ¶
func (c *FakeExampleV1) TestTypes(namespace string) v1.TestTypeInterface
type FakeTestTypes ¶
type FakeTestTypes struct { Fake *FakeExampleV1 // contains filtered or unexported fields }
FakeTestTypes implements TestTypeInterface
func (*FakeTestTypes) Create ¶
func (c *FakeTestTypes) Create(testType *examplev1.TestType) (result *examplev1.TestType, err error)
Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any.
func (*FakeTestTypes) Delete ¶
func (c *FakeTestTypes) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the testType and deletes it. Returns an error if one occurs.
func (*FakeTestTypes) DeleteCollection ¶
func (c *FakeTestTypes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTestTypes) Get ¶
func (c *FakeTestTypes) Get(name string, options v1.GetOptions) (result *examplev1.TestType, err error)
Get takes name of the testType, and returns the corresponding testType object, and an error if there is any.
func (*FakeTestTypes) List ¶
func (c *FakeTestTypes) List(opts v1.ListOptions) (result *examplev1.TestTypeList, err error)
List takes label and field selectors, and returns the list of TestTypes that match those selectors.
func (*FakeTestTypes) Patch ¶
func (c *FakeTestTypes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *examplev1.TestType, err error)
Patch applies the patch and returns the patched testType.
func (*FakeTestTypes) Update ¶
func (c *FakeTestTypes) Update(testType *examplev1.TestType) (result *examplev1.TestType, err error)
Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any.
func (*FakeTestTypes) UpdateStatus ¶
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeTestTypes) Watch ¶
func (c *FakeTestTypes) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested testTypes.