Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Ingress resource Ingress = iota // IngressMinion resource, which is a Minion Ingress resource IngressMinion // Endpoints resource Endpoints // ConfigMap resource ConfigMap // Secret resource Secret // Service resource Service )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskQueue ¶
type TaskQueue struct {
// contains filtered or unexported fields
}
TaskQueue manages a work queue through an independent worker that invokes the given sync function for every work item inserted.
func NewTaskQueue ¶
NewTaskQueue creates a new task queue with the given sync function. The sync function is called for every element inserted into the queue.
func (*TaskQueue) Enqueue ¶
func (t *TaskQueue) Enqueue(obj interface{})
Enqueue enqueues ns/name of the given api object in the task queue.
func (*TaskQueue) RequeueAfter ¶
RequeueAfter adds the task to the queue after the given duration
Click to show internal directories.
Click to hide internal directories.