Documentation
¶
Index ¶
- type ByteSize
- func (bs ByteSize) Get() interface{}
- func (bs ByteSize) MarshalJSON() ([]byte, error)
- func (bs ByteSize) MarshalYAML() (interface{}, error)
- func (bs *ByteSize) Set(s string) error
- func (bs ByteSize) String() string
- func (bs *ByteSize) UnmarshalJSON(val []byte) error
- func (bs *ByteSize) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (bs ByteSize) Val() int
- type LabelSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSize ¶
type ByteSize uint64
ByteSize is a flag parsing compatibility type for constructing human friendly sizes. It implements flag.Value & flag.Getter.
func (ByteSize) MarshalJSON ¶
func (bs ByteSize) MarshalJSON() ([]byte, error)
Use a string representation for consistency
func (ByteSize) MarshalYAML ¶
func (bs ByteSize) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaller. Use a string representation for consistency
func (*ByteSize) UnmarshalJSON ¶
func (bs *ByteSize) UnmarshalJSON(val []byte) error
UnmarshalJSON implements json.Unmarsal interface to work with JSON.
func (*ByteSize) UnmarshalYAML ¶
func (bs *ByteSize) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML the Unmarshaler interface of the yaml pkg.
type LabelSet ¶
type LabelSet struct {
model.LabelSet `yaml:",inline"`
}
LabelSet is a labelSet that can be used as a flag.
func (LabelSet) MarshalYAML ¶
func (v LabelSet) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaller.
func (LabelSet) String ¶
func (v LabelSet) String() string
String implements flag.Value Format: a=1,b=2
func (*LabelSet) UnmarshalYAML ¶
func (v *LabelSet) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML the Unmarshaler interface of the yaml pkg.
Click to show internal directories.
Click to hide internal directories.