Documentation ¶
Index ¶
- Constants
- func NewQueueJobResSecret(config *rest.Config) queuejobresources.Interface
- func Register(regs *queuejobresources.RegisteredResources)
- type QueueJobResSecret
- func (qjrSecret *QueueJobResSecret) Cleanup(queuejob *arbv1.AppWrapper, qjobRes *arbv1.AppWrapperResource) error
- func (qjrSecret *QueueJobResSecret) GetAggregatedResources(job *arbv1.AppWrapper) *clusterstateapi.Resource
- func (qjrSecret *QueueJobResSecret) GetAggregatedResourcesByPriority(priority float64, job *arbv1.AppWrapper) *clusterstateapi.Resource
- func (qjrSecret *QueueJobResSecret) Run(stopCh <-chan struct{})
- func (qjrSecret *QueueJobResSecret) SyncQueueJob(queuejob *arbv1.AppWrapper, qjobRes *arbv1.AppWrapperResource) error
- func (qjrSecret *QueueJobResSecret) UpdateQueueJobStatus(queuejob *arbv1.AppWrapper) error
Constants ¶
View Source
const ( // QueueJobNameLabel label string for queuejob name QueueJobNameLabel string = "appwrapper-name" // ControllerUIDLabel label string for queuejob controller uid ControllerUIDLabel string = "controller-uid" )
Variables ¶
This section is empty.
Functions ¶
func NewQueueJobResSecret ¶
func NewQueueJobResSecret(config *rest.Config) queuejobresources.Interface
NewQueueJobResService creates a service controller
func Register ¶
func Register(regs *queuejobresources.RegisteredResources)
Register registers a queue job resource type
Types ¶
type QueueJobResSecret ¶
type QueueJobResSecret struct {
// contains filtered or unexported fields
}
QueueJobResService contains service info
func (*QueueJobResSecret) Cleanup ¶
func (qjrSecret *QueueJobResSecret) Cleanup(queuejob *arbv1.AppWrapper, qjobRes *arbv1.AppWrapperResource) error
Cleanup deletes all services
func (*QueueJobResSecret) GetAggregatedResources ¶
func (qjrSecret *QueueJobResSecret) GetAggregatedResources(job *arbv1.AppWrapper) *clusterstateapi.Resource
func (*QueueJobResSecret) GetAggregatedResourcesByPriority ¶
func (qjrSecret *QueueJobResSecret) GetAggregatedResourcesByPriority(priority float64, job *arbv1.AppWrapper) *clusterstateapi.Resource
func (*QueueJobResSecret) Run ¶
func (qjrSecret *QueueJobResSecret) Run(stopCh <-chan struct{})
Run the main goroutine responsible for watching and services.
func (*QueueJobResSecret) SyncQueueJob ¶
func (qjrSecret *QueueJobResSecret) SyncQueueJob(queuejob *arbv1.AppWrapper, qjobRes *arbv1.AppWrapperResource) error
func (*QueueJobResSecret) UpdateQueueJobStatus ¶
func (qjrSecret *QueueJobResSecret) UpdateQueueJobStatus(queuejob *arbv1.AppWrapper) error
Click to show internal directories.
Click to hide internal directories.