Compare commits
1 Commits
master
...
relabel_fi
Author | SHA1 | Date |
---|---|---|
Dan Walsh | 1349b37bd5 |
|
@ -65,6 +65,11 @@ func Validate(label string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// RelabelNeeded checks whether the user requested a relabel
|
||||
func RelabelNeeded(label string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsShared checks that the label includes a "shared" mark
|
||||
func IsShared(label string) bool {
|
||||
return false
|
||||
|
|
|
@ -181,6 +181,11 @@ func Validate(label string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// RelabelNeeded checks whether the user requested a relabel
|
||||
func RelabelNeeded(label string) bool {
|
||||
return strings.Contains(label, "z") || strings.Contains(label, "Z")
|
||||
}
|
||||
|
||||
// IsShared checks that the label includes a "shared" mark
|
||||
func IsShared(label string) bool {
|
||||
return strings.Contains(label, "z")
|
||||
|
|
Loading…
Reference in New Issue