Lines Matching full:labels

18     Decorator for labels that should exist forever once applied.
36 return (self._NAME in info.labels) or exists(self, host)
42 This class contains the scaffolding for the host-specific labels.
52 Return the list of labels generated for the host.
57 @return a list of labels applicable to the host.
66 This method is geared for the type of labels that indicate if the host
78 Return the list of labels.
90 Return all possible labels generated by this label class.
92 @returns a tuple of sets, the first set is for labels that are prefixes
93 like 'os:android'. The second set is for labels that are full
94 labels by themselves like 'bluetooth'.
96 # Another subclass takes care of prefixed labels so this is empty.
107 This method helps to check which labels need to be updated.
108 State config labels are updated only for repair task.
109 Lab config labels are updated only for deploy task.
110 All labels are updated for any task.
119 @returns True if labels should be updated for the task with given name
129 present and will return at least one label out of a list of possible labels
131 generate_labels() since the label class will need to figure out which labels
135 labels that this label detection class can return in order to allow for
154 will be prepended with a colon to the generated labels like so:
159 The labels returned by this label class will be ['os:android'].
161 subclass; otherwise, all labels returned will be prefixed with 'None:'.
165 """Return the list of labels with _NAME prefixed with a colon.
178 Return all possible labels generated by this label class.
180 @returns a tuple of sets, the first set is for labels that are prefixes
181 like 'os:android'. The second set is for labels that are full
182 labels by themselves like 'bluetooth'.
186 # make sure we only match on prefix labels.
194 """This class will assist in retrieving/updating the host labels."""
197 """Create a list of known labels that is created through this class."""
199 # populate only the labels that need to be updated for this task.
208 # These two sets will contain the list of labels we can safely remove
216 Retrieve the labels for the host.
218 @param host: The host to get the labels for.
220 labels = []
224 labels.extend(label.get(host))
228 return labels
233 Retrieve the labels for the host which needs to be updated.
235 @param host: The host to get the labels for updating.
238 @returns labels to be updated
240 labels = []
243 # get only the labels which need to be updated for this task.
247 labels.extend(label.get(host))
251 return labels
267 """Update new_labels by adding back old unknown labels.
269 We only delete labels that we might have created earlier. There are
270 some labels we should not be removing (e.g. pool:bvt) that we
271 want to keep but won't be part of the new labels detected on the host.
272 To do that we compare the passed in label to our list of known labels
276 @param old_labels: List of labels already on the host.
277 @param new_labels: List of newly detected labels. This list will be
278 updated to add back labels that are not tracked by the detection
302 Retrieve the labels from the host and update if needed.
304 @param host: The host to update the labels for.
306 # If we haven't yet grabbed our list of known labels, do so now.
311 # old labels from HostInfoStore to minimize the time between read and
315 self._carry_over_unknown_labels(old_info.labels, new_labels)
317 labels=new_labels,