Documentation ¶
Index ¶
- func MetadataDecoder(raw json.RawMessage) (getter.Getter, error)
- func NewProbe(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)
- func Register()
- type Metadata
- func (obj *Metadata) GetField(key string) (interface{}, error)
- func (obj *Metadata) GetFieldBool(key string) (bool, error)
- func (obj *Metadata) GetFieldInt64(key string) (int64, error)
- func (obj *Metadata) GetFieldKeys() []string
- func (obj *Metadata) GetFieldString(key string) (string, error)
- func (v Metadata) MarshalEasyJSON(w *jwriter.Writer)
- func (v Metadata) MarshalJSON() ([]byte, error)
- func (obj *Metadata) MatchBool(key string, predicate getter.BoolPredicate) bool
- func (obj *Metadata) MatchInt64(key string, predicate getter.Int64Predicate) bool
- func (obj *Metadata) MatchString(key string, predicate getter.StringPredicate) bool
- func (v *Metadata) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Metadata) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataDecoder ¶ added in v0.24.0
func MetadataDecoder(raw json.RawMessage) (getter.Getter, error)
MetadataDecoder implements a json message raw decoder
Types ¶
type Metadata ¶ added in v0.24.0
type Metadata struct { Architecture string `json:",omitempty"` Config graph.Metadata `json:",omitempty" field:"Metadata"` CreatedAt string `json:",omitempty"` Description string `json:",omitempty"` Devices graph.Metadata `json:",omitempty" field:"Metadata"` Ephemeral string `json:",omitempty"` Profiles []string `json:",omitempty"` Restore string `json:",omitempty"` Status string `json:",omitempty"` Stateful string `json:",omitempty"` }
Metadata describes the informations stored for a LXD container easyjson:json gendecoder
func (*Metadata) GetFieldBool ¶ added in v0.26.0
func (*Metadata) GetFieldInt64 ¶ added in v0.26.0
func (*Metadata) GetFieldKeys ¶ added in v0.26.0
func (*Metadata) GetFieldString ¶ added in v0.26.0
func (Metadata) MarshalEasyJSON ¶ added in v0.26.0
MarshalEasyJSON supports easyjson.Marshaler interface
func (Metadata) MarshalJSON ¶ added in v0.26.0
MarshalJSON supports json.Marshaler interface
func (*Metadata) MatchBool ¶ added in v0.26.0
func (obj *Metadata) MatchBool(key string, predicate getter.BoolPredicate) bool
func (*Metadata) MatchInt64 ¶ added in v0.26.0
func (obj *Metadata) MatchInt64(key string, predicate getter.Int64Predicate) bool
func (*Metadata) MatchString ¶ added in v0.26.0
func (obj *Metadata) MatchString(key string, predicate getter.StringPredicate) bool
func (*Metadata) UnmarshalEasyJSON ¶ added in v0.26.0
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Metadata) UnmarshalJSON ¶ added in v0.26.0
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.