Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobLister ¶
type JobLister interface {
// List lists all Jobs in the indexer.
List(selector labels.Selector) (ret []*v1.Job, err error)
// Jobs returns an object that can list and get Jobs.
Jobs(namespace string) JobNamespaceLister
JobListerExpansion
}
JobLister helps list Jobs.
func NewJobLister ¶
func NewJobLister(indexer cache.Indexer) JobLister
NewJobLister returns a new JobLister.
type JobListerExpansion ¶
type JobListerExpansion interface {
// GetPodJobs returns a list of jobs managing a pod. An error is returned only
// if no matching jobs are found.
GetPodJobs(pod *v1.Pod) (jobs []batch.Job, err error)
}
JobListerExpansion allows custom methods to be added to JobLister.
type JobNamespaceLister ¶
type JobNamespaceLister interface {
// List lists all Jobs in the indexer for a given namespace.
List(selector labels.Selector) (ret []*v1.Job, err error)
// Get retrieves the Job from the indexer for a given namespace and name.
Get(name string) (*v1.Job, error)
JobNamespaceListerExpansion
}
JobNamespaceLister helps list and get Jobs.
type JobNamespaceListerExpansion ¶
type JobNamespaceListerExpansion interface{}
JobNamespaceListerExpansion allows custom methods to be added to JobNamespaceLister.
Click to show internal directories.
Click to hide internal directories.