Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeKangalV1
- type FakeLoadTests
- func (c *FakeLoadTests) Create(ctx context.Context, loadTest *v1.LoadTest, opts metav1.CreateOptions) (result *v1.LoadTest, err error)
- func (c *FakeLoadTests) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeLoadTests) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeLoadTests) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LoadTest, err error)
- func (c *FakeLoadTests) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LoadTestList, err error)
- func (c *FakeLoadTests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.LoadTest, err error)
- func (c *FakeLoadTests) Update(ctx context.Context, loadTest *v1.LoadTest, opts metav1.UpdateOptions) (result *v1.LoadTest, err error)
- func (c *FakeLoadTests) UpdateStatus(ctx context.Context, loadTest *v1.LoadTest, opts metav1.UpdateOptions) (*v1.LoadTest, error)
- func (c *FakeLoadTests) 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 FakeKangalV1 ¶
func (*FakeKangalV1) LoadTests ¶
func (c *FakeKangalV1) LoadTests() v1.LoadTestInterface
func (*FakeKangalV1) RESTClient ¶
func (c *FakeKangalV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeLoadTests ¶
type FakeLoadTests struct {
Fake *FakeKangalV1
}
FakeLoadTests implements LoadTestInterface
func (*FakeLoadTests) Create ¶
func (c *FakeLoadTests) Create(ctx context.Context, loadTest *v1.LoadTest, opts metav1.CreateOptions) (result *v1.LoadTest, err error)
Create takes the representation of a loadTest and creates it. Returns the server's representation of the loadTest, and an error, if there is any.
func (*FakeLoadTests) Delete ¶
func (c *FakeLoadTests) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the loadTest and deletes it. Returns an error if one occurs.
func (*FakeLoadTests) DeleteCollection ¶
func (c *FakeLoadTests) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeLoadTests) Get ¶
func (c *FakeLoadTests) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LoadTest, err error)
Get takes name of the loadTest, and returns the corresponding loadTest object, and an error if there is any.
func (*FakeLoadTests) List ¶
func (c *FakeLoadTests) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LoadTestList, err error)
List takes label and field selectors, and returns the list of LoadTests that match those selectors.
func (*FakeLoadTests) Patch ¶
func (c *FakeLoadTests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LoadTest, err error)
Patch applies the patch and returns the patched loadTest.
func (*FakeLoadTests) Update ¶
func (c *FakeLoadTests) Update(ctx context.Context, loadTest *v1.LoadTest, opts metav1.UpdateOptions) (result *v1.LoadTest, err error)
Update takes the representation of a loadTest and updates it. Returns the server's representation of the loadTest, and an error, if there is any.
func (*FakeLoadTests) UpdateStatus ¶
func (c *FakeLoadTests) UpdateStatus(ctx context.Context, loadTest *v1.LoadTest, opts metav1.UpdateOptions) (*v1.LoadTest, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeLoadTests) Watch ¶
func (c *FakeLoadTests) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested loadTests.