mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 13:42:02 +00:00
Rename LabelSet labels.Set
This commit is contained in:
@@ -26,11 +26,11 @@ type Labels interface {
|
||||
}
|
||||
|
||||
// A map of label:value. Implements Labels.
|
||||
type LabelSet map[string]string
|
||||
type Set map[string]string
|
||||
|
||||
// All labels listed as a human readable string. Conveiently, exactly the format
|
||||
// that ParseQuery takes.
|
||||
func (ls LabelSet) String() string {
|
||||
func (ls Set) String() string {
|
||||
query := make([]string, 0, len(ls))
|
||||
for key, value := range ls {
|
||||
query = append(query, key+"="+value)
|
||||
@@ -39,6 +39,6 @@ func (ls LabelSet) String() string {
|
||||
}
|
||||
|
||||
// Implement Labels interface.
|
||||
func (ls LabelSet) Get(label string) string {
|
||||
func (ls Set) Get(label string) string {
|
||||
return ls[label]
|
||||
}
|
||||
|
Reference in New Issue
Block a user