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