From 08d380e3b9964a52872042dd61d4c82390a5763f Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Tue, 13 Aug 2019 20:33:24 +0200 Subject: [PATCH] Re-Generate k8s.io/apimachinery/pkg/util/sets --- staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go | 6 ++++-- staging/src/k8s.io/apimachinery/pkg/util/sets/int.go | 6 ++++-- staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go | 6 ++++-- staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go | 6 ++++-- staging/src/k8s.io/apimachinery/pkg/util/sets/string.go | 6 ++++-- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go b/staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go index 766f4501e0f..9bfa85d43d4 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go @@ -46,17 +46,19 @@ func ByteKeySet(theMap interface{}) Byte { } // Insert adds items to the set. -func (s Byte) Insert(items ...byte) { +func (s Byte) Insert(items ...byte) Byte { for _, item := range items { s[item] = Empty{} } + return s } // Delete removes all items from the set. -func (s Byte) Delete(items ...byte) { +func (s Byte) Delete(items ...byte) Byte { for _, item := range items { delete(s, item) } + return s } // Has returns true if and only if item is contained in the set. diff --git a/staging/src/k8s.io/apimachinery/pkg/util/sets/int.go b/staging/src/k8s.io/apimachinery/pkg/util/sets/int.go index a0a513cd9b5..88bd7096791 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/sets/int.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/sets/int.go @@ -46,17 +46,19 @@ func IntKeySet(theMap interface{}) Int { } // Insert adds items to the set. -func (s Int) Insert(items ...int) { +func (s Int) Insert(items ...int) Int { for _, item := range items { s[item] = Empty{} } + return s } // Delete removes all items from the set. -func (s Int) Delete(items ...int) { +func (s Int) Delete(items ...int) Int { for _, item := range items { delete(s, item) } + return s } // Has returns true if and only if item is contained in the set. diff --git a/staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go b/staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go index 584eabc8b76..96a48555426 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go @@ -46,17 +46,19 @@ func Int32KeySet(theMap interface{}) Int32 { } // Insert adds items to the set. -func (s Int32) Insert(items ...int32) { +func (s Int32) Insert(items ...int32) Int32 { for _, item := range items { s[item] = Empty{} } + return s } // Delete removes all items from the set. -func (s Int32) Delete(items ...int32) { +func (s Int32) Delete(items ...int32) Int32 { for _, item := range items { delete(s, item) } + return s } // Has returns true if and only if item is contained in the set. diff --git a/staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go b/staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go index 9ca9af0c591..b375a1b065c 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go @@ -46,17 +46,19 @@ func Int64KeySet(theMap interface{}) Int64 { } // Insert adds items to the set. -func (s Int64) Insert(items ...int64) { +func (s Int64) Insert(items ...int64) Int64 { for _, item := range items { s[item] = Empty{} } + return s } // Delete removes all items from the set. -func (s Int64) Delete(items ...int64) { +func (s Int64) Delete(items ...int64) Int64 { for _, item := range items { delete(s, item) } + return s } // Has returns true if and only if item is contained in the set. diff --git a/staging/src/k8s.io/apimachinery/pkg/util/sets/string.go b/staging/src/k8s.io/apimachinery/pkg/util/sets/string.go index ba00ad7df4e..e6f37db8874 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/sets/string.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/sets/string.go @@ -46,17 +46,19 @@ func StringKeySet(theMap interface{}) String { } // Insert adds items to the set. -func (s String) Insert(items ...string) { +func (s String) Insert(items ...string) String { for _, item := range items { s[item] = Empty{} } + return s } // Delete removes all items from the set. -func (s String) Delete(items ...string) { +func (s String) Delete(items ...string) String { for _, item := range items { delete(s, item) } + return s } // Has returns true if and only if item is contained in the set.