package sets
import "k8s.io/client-go/1.4/pkg/util/net/sets"
Index ¶
- type IPNet
- func ParseIPNets(specs ...string) (IPNet, error)
- func (s IPNet) Delete(items ...*net.IPNet)
- func (s IPNet) Difference(s2 IPNet) IPNet
- func (s1 IPNet) Equal(s2 IPNet) bool
- func (s IPNet) Has(item *net.IPNet) bool
- func (s IPNet) HasAll(items ...*net.IPNet) bool
- func (s IPNet) Insert(items ...*net.IPNet)
- func (s1 IPNet) IsSuperset(s2 IPNet) bool
- func (s IPNet) Len() int
- func (s IPNet) StringSlice() []string
Types ¶
type IPNet ¶
func ParseIPNets ¶
func (IPNet) Delete ¶
Delete removes all items from the set.
func (IPNet) Difference ¶
Difference returns a set of objects that are not in s2 For example: s1 = {a1, a2, a3} s2 = {a1, a2, a4, a5} s1.Difference(s2) = {a3} s2.Difference(s1) = {a4, a5}
func (IPNet) Equal ¶
Equal returns true if and only if s1 is equal (as a set) to s2. Two sets are equal if their membership is identical. (In practice, this means same elements, order doesn't matter)
func (IPNet) Has ¶
Has returns true if and only if item is contained in the set.
func (IPNet) HasAll ¶
HasAll returns true if and only if all items are contained in the set.
func (IPNet) Insert ¶
Insert adds items to the set.
func (IPNet) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
func (IPNet) Len ¶
Len returns the size of the set.
func (IPNet) StringSlice ¶
StringSlice returns a []string with the String representation of each element in the set. Order is undefined.
Source Files ¶
doc.go ipnet.go
- Version
- v1.4.0
- Published
- Oct 17, 2016
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 6 minutes ago –
Tools for package owners.