kubernetes/vendor/golang.org/x/tools/internal/event/keys/keys.go

type Value

// New creates a new Key for untyped values.
func New(name, description string) *Value {}

func (k *Value) Name() string        {}

func (k *Value) Description() string {}

func (k *Value) Format(w io.Writer, buf []byte, l label.Label) {}

// Get can be used to get a label for the key from a label.Map.
func (k *Value) Get(lm label.Map) interface{}

// From can be used to get a value from a Label.
func (k *Value) From(t label.Label) interface{}

// Of creates a new Label with this key and the supplied value.
func (k *Value) Of(value interface{}

type Tag

// NewTag creates a new Key for tagging labels.
func NewTag(name, description string) *Tag {}

func (k *Tag) Name() string        {}

func (k *Tag) Description() string {}

func (k *Tag) Format(w io.Writer, buf []byte, l label.Label) {}

// New creates a new Label with this key.
func (k *Tag) New() label.Label {}

type Int

// NewInt creates a new Key for int values.
func NewInt(name, description string) *Int {}

func (k *Int) Name() string        {}

func (k *Int) Description() string {}

func (k *Int) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Int) Of(v int) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Int) Get(lm label.Map) int {}

// From can be used to get a value from a Label.
func (k *Int) From(t label.Label) int {}

type Int8

// NewInt8 creates a new Key for int8 values.
func NewInt8(name, description string) *Int8 {}

func (k *Int8) Name() string        {}

func (k *Int8) Description() string {}

func (k *Int8) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Int8) Of(v int8) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Int8) Get(lm label.Map) int8 {}

// From can be used to get a value from a Label.
func (k *Int8) From(t label.Label) int8 {}

type Int16

// NewInt16 creates a new Key for int16 values.
func NewInt16(name, description string) *Int16 {}

func (k *Int16) Name() string        {}

func (k *Int16) Description() string {}

func (k *Int16) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Int16) Of(v int16) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Int16) Get(lm label.Map) int16 {}

// From can be used to get a value from a Label.
func (k *Int16) From(t label.Label) int16 {}

type Int32

// NewInt32 creates a new Key for int32 values.
func NewInt32(name, description string) *Int32 {}

func (k *Int32) Name() string        {}

func (k *Int32) Description() string {}

func (k *Int32) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Int32) Of(v int32) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Int32) Get(lm label.Map) int32 {}

// From can be used to get a value from a Label.
func (k *Int32) From(t label.Label) int32 {}

type Int64

// NewInt64 creates a new Key for int64 values.
func NewInt64(name, description string) *Int64 {}

func (k *Int64) Name() string        {}

func (k *Int64) Description() string {}

func (k *Int64) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Int64) Of(v int64) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Int64) Get(lm label.Map) int64 {}

// From can be used to get a value from a Label.
func (k *Int64) From(t label.Label) int64 {}

type UInt

// NewUInt creates a new Key for uint values.
func NewUInt(name, description string) *UInt {}

func (k *UInt) Name() string        {}

func (k *UInt) Description() string {}

func (k *UInt) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *UInt) Of(v uint) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *UInt) Get(lm label.Map) uint {}

// From can be used to get a value from a Label.
func (k *UInt) From(t label.Label) uint {}

type UInt8

// NewUInt8 creates a new Key for uint8 values.
func NewUInt8(name, description string) *UInt8 {}

func (k *UInt8) Name() string        {}

func (k *UInt8) Description() string {}

func (k *UInt8) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *UInt8) Of(v uint8) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *UInt8) Get(lm label.Map) uint8 {}

// From can be used to get a value from a Label.
func (k *UInt8) From(t label.Label) uint8 {}

type UInt16

// NewUInt16 creates a new Key for uint16 values.
func NewUInt16(name, description string) *UInt16 {}

func (k *UInt16) Name() string        {}

func (k *UInt16) Description() string {}

func (k *UInt16) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *UInt16) Of(v uint16) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *UInt16) Get(lm label.Map) uint16 {}

// From can be used to get a value from a Label.
func (k *UInt16) From(t label.Label) uint16 {}

type UInt32

// NewUInt32 creates a new Key for uint32 values.
func NewUInt32(name, description string) *UInt32 {}

func (k *UInt32) Name() string        {}

func (k *UInt32) Description() string {}

func (k *UInt32) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *UInt32) Of(v uint32) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *UInt32) Get(lm label.Map) uint32 {}

// From can be used to get a value from a Label.
func (k *UInt32) From(t label.Label) uint32 {}

type UInt64

// NewUInt64 creates a new Key for uint64 values.
func NewUInt64(name, description string) *UInt64 {}

func (k *UInt64) Name() string        {}

func (k *UInt64) Description() string {}

func (k *UInt64) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *UInt64) Of(v uint64) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *UInt64) Get(lm label.Map) uint64 {}

// From can be used to get a value from a Label.
func (k *UInt64) From(t label.Label) uint64 {}

type Float32

// NewFloat32 creates a new Key for float32 values.
func NewFloat32(name, description string) *Float32 {}

func (k *Float32) Name() string        {}

func (k *Float32) Description() string {}

func (k *Float32) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Float32) Of(v float32) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Float32) Get(lm label.Map) float32 {}

// From can be used to get a value from a Label.
func (k *Float32) From(t label.Label) float32 {}

type Float64

// NewFloat64 creates a new Key for int64 values.
func NewFloat64(name, description string) *Float64 {}

func (k *Float64) Name() string        {}

func (k *Float64) Description() string {}

func (k *Float64) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Float64) Of(v float64) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Float64) Get(lm label.Map) float64 {}

// From can be used to get a value from a Label.
func (k *Float64) From(t label.Label) float64 {}

type String

// NewString creates a new Key for int64 values.
func NewString(name, description string) *String {}

func (k *String) Name() string        {}

func (k *String) Description() string {}

func (k *String) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *String) Of(v string) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *String) Get(lm label.Map) string {}

// From can be used to get a value from a Label.
func (k *String) From(t label.Label) string {}

type Boolean

// NewBoolean creates a new Key for bool values.
func NewBoolean(name, description string) *Boolean {}

func (k *Boolean) Name() string        {}

func (k *Boolean) Description() string {}

func (k *Boolean) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Boolean) Of(v bool) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Boolean) Get(lm label.Map) bool {}

// From can be used to get a value from a Label.
func (k *Boolean) From(t label.Label) bool {}

type Error

// NewError creates a new Key for int64 values.
func NewError(name, description string) *Error {}

func (k *Error) Name() string        {}

func (k *Error) Description() string {}

func (k *Error) Format(w io.Writer, buf []byte, l label.Label) {}

// Of creates a new Label with this key and the supplied value.
func (k *Error) Of(v error) label.Label {}

// Get can be used to get a label for the key from a label.Map.
func (k *Error) Get(lm label.Map) error {}

// From can be used to get a value from a Label.
func (k *Error) From(t label.Label) error {}