Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(b []byte) string
- type Label
- func (l *Label) Decode(data []byte) error
- func (l *Label) Encode() []byte
- func (l *Label) Release()
- func (l *Label) Reset() *Label
- func (l *Label) String() string
- func (l *Label) WithKey(k string) *Label
- func (l *Label) WithNamespace(ns uint64) *Label
- func (l *Label) WithPrefix(p v1.PREFIX) *Label
- func (l *Label) WithResource(r v1.RESOURCE) *Label
- func (l *Label) WithValue(v string) *Label
- type Labels
Constants ¶
View Source
const ResourcePrefixSize = 8 + 4 //resource
View Source
const StaticSize = ResourcePrefixSize + 4 // prefix
Variables ¶
View Source
var ErrKeyTooShort = errors.New("labels: Key too short")
View Source
var (
ValueSep = []byte("=")
)
Functions ¶
Types ¶
type Label ¶
type Label struct { Namespace uint64 Resource v1.RESOURCE Prefix v1.PREFIX Key string Value string // contains filtered or unexported fields }
func (*Label) WithNamespace ¶
Click to show internal directories.
Click to hide internal directories.