mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
cmd/k8s-operator: add metrics to track usage
Updates #502 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@@ -20,6 +20,9 @@ type Slice[T comparable] struct {
|
||||
// The returned value is only valid until ss is modified again.
|
||||
func (ss *Slice[T]) Slice() views.Slice[T] { return views.SliceOf(ss.slice) }
|
||||
|
||||
// Len returns the number of elements in the set.
|
||||
func (ss *Slice[T]) Len() int { return len(ss.slice) }
|
||||
|
||||
// Contains reports whether v is in the set.
|
||||
// The amortized cost is O(1).
|
||||
func (ss *Slice[T]) Contains(v T) bool {
|
||||
|
Reference in New Issue
Block a user