summaryrefslogtreecommitdiffstats
path: root/kube2msb/src/kube2msb/vendor/k8s.io/kubernetes/pkg/util/net/sets/README.md
blob: b0f238a26f676b347e99a7d582221bbbeef72d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This package contains hand-coded set implementations that should be similar to
the autogenerated ones in `pkg/util/sets`.

We can't simply use net.IPNet as a map-key in Go (because it contains a
`[]byte`).

We could use the same workaround we use here (a string representation as the
key) to autogenerate sets.  If we do that, or decide on an alternate approach,
we should replace the implementations in this package with the autogenerated
versions.

It is expected that callers will alias this import as `netsets`
i.e. `import netsets "k8s.io/kubernetes/pkg/util/net/sets"`



[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/pkg/util/net/sets/README.md?pixel)]()