Documentation
¶
Index ¶
- func NewCronJobLister(indexer cache.Indexer) listersbatchv1.CronJobLister
- func NewJobLister(indexer cache.Indexer) listersbatchv1.JobLister
- type CronJobClusterLister
- type CronJobClusterListerExpansion
- type JobClusterLister
- type JobClusterListerExpansion
- type JobListerExpansion
- type JobNamespaceListerExpansion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCronJobLister ¶
func NewCronJobLister(indexer cache.Indexer) listersbatchv1.CronJobLister
NewCronJobLister returns a new CronJobLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index
func NewJobLister ¶
func NewJobLister(indexer cache.Indexer) listersbatchv1.JobLister
NewJobLister returns a new JobLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index
Types ¶
type CronJobClusterLister ¶
type CronJobClusterLister interface {
// List lists all CronJobs in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*batchv1.CronJob, err error)
// Cluster returns a lister that can list and get CronJobs in one workspace.
Cluster(clusterName logicalcluster.Name) listersbatchv1.CronJobLister
CronJobClusterListerExpansion
}
CronJobClusterLister helps list CronJobs across all workspaces, or scope down to a CronJobLister for one workspace. All objects returned here must be treated as read-only.
func NewCronJobClusterLister ¶
func NewCronJobClusterLister(indexer cache.Indexer) CronJobClusterLister
NewCronJobClusterLister returns a new CronJobClusterLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index
type CronJobClusterListerExpansion ¶
type CronJobClusterListerExpansion interface{}
CronJobClusterListerExpansion allows custom methods to be added to CronJobClusterLister.
type JobClusterLister ¶
type JobClusterLister interface {
// List lists all Jobs in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*batchv1.Job, err error)
// Cluster returns a lister that can list and get Jobs in one workspace.
Cluster(clusterName logicalcluster.Name) listersbatchv1.JobLister
JobClusterListerExpansion
}
JobClusterLister helps list Jobs across all workspaces, or scope down to a JobLister for one workspace. All objects returned here must be treated as read-only.
func NewJobClusterLister ¶
func NewJobClusterLister(indexer cache.Indexer) JobClusterLister
NewJobClusterLister returns a new JobClusterLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index
type JobClusterListerExpansion ¶
type JobClusterListerExpansion interface{}
JobClusterListerExpansion allows custom methods to be added to JobClusterLister.
type JobListerExpansion ¶
type JobListerExpansion interface {
// GetPodJobs returns a list of Jobs that potentially
// match a Pod. Only the one specified in the Pod's ControllerRef
// will actually manage it.
// Returns an error 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 JobNamespaceListerExpansion ¶
type JobNamespaceListerExpansion interface{}
JobNamespaceListerExpansion allows custom methods to be added to JobNamespaceLister.