ScheduledJob client
This commit is contained in:
@@ -27,6 +27,7 @@ import (
|
||||
|
||||
type BatchInterface interface {
|
||||
JobsNamespacer
|
||||
ScheduledJobsNamespacer
|
||||
}
|
||||
|
||||
// BatchClient is used to interact with Kubernetes batch features.
|
||||
@@ -38,6 +39,10 @@ func (c *BatchClient) Jobs(namespace string) JobInterface {
|
||||
return newJobsV1(c, namespace)
|
||||
}
|
||||
|
||||
func (c *BatchClient) ScheduledJobs(namespace string) ScheduledJobInterface {
|
||||
return newScheduledJobs(c, namespace)
|
||||
}
|
||||
|
||||
func NewBatch(c *restclient.Config) (*BatchClient, error) {
|
||||
config := *c
|
||||
if err := setBatchDefaults(&config, nil); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user