ScheduledJob client

This commit is contained in:
Maciej Szulik
2016-05-11 13:40:07 +02:00
parent adc890a57e
commit 6510eb54d8
11 changed files with 482 additions and 7 deletions

View File

@@ -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 {