Documentation ¶
Overview ¶
fake provides a fake implementation of MxJobClient suitable for use in testing.
Index ¶
- type MxJobClientFake
- func (c *MxJobClientFake) Create(ns string, j *spec.MxJob) (*spec.MxJob, error)
- func (c *MxJobClientFake) Delete(ns string, name string) (*spec.MxJob, error)
- func (c *MxJobClientFake) Get(ns string, name string) (*spec.MxJob, error)
- func (c *MxJobClientFake) List(ns string) (*spec.MxJobList, error)
- func (c *MxJobClientFake) Update(ns string, j *spec.MxJob) (*spec.MxJob, error)
- func (c *MxJobClientFake) WaitTPRReady(interval, timeout time.Duration, ns string) error
- func (c *MxJobClientFake) Watch(host, ns string, httpClient *http.Client, resourceVersion string) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MxJobClientFake ¶
type MxJobClientFake struct{}
func (*MxJobClientFake) WaitTPRReady ¶
func (c *MxJobClientFake) WaitTPRReady(interval, timeout time.Duration, ns string) error
WaitTPRReady blocks until the MxJob TPR is ready.
Click to show internal directories.
Click to hide internal directories.