Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobSet ¶
type JobSet interface { // Get the set stored keys Keys() sets.String // List of resources stored in the set. Pass an optional filter function to filter on the list. List(filterResource ...func(*batch_v1.Job) bool) []*batch_v1.Job // Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list. UnsortedList(filterResource ...func(*batch_v1.Job) bool) []*batch_v1.Job // Return the Set as a map of key to resource. Map() map[string]*batch_v1.Job // Insert a resource into the set. Insert(job ...*batch_v1.Job) // Compare the equality of the keys in two sets (not the resources themselves) Equal(jobSet JobSet) bool // Check if the set contains a key matching the resource (not the resource itself) Has(job ezkube.ResourceId) bool // Delete the key matching the resource Delete(job ezkube.ResourceId) // Return the union with the provided set Union(set JobSet) JobSet // Return the difference with the provided set Difference(set JobSet) JobSet // Return the intersection with the provided set Intersection(set JobSet) JobSet // Find the resource with the given ID Find(id ezkube.ResourceId) (*batch_v1.Job, error) // Get the length of the set Length() int // returns the generic implementation of the set Generic() sksets.ResourceSet // returns the delta between this and and another JobSet Delta(newSet JobSet) sksets.ResourceDelta // Create a deep copy of the current JobSet Clone() JobSet }
func NewJobSetFromList ¶
Click to show internal directories.
Click to hide internal directories.