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
- type Route
- func (obj *Route) GetField(key string) (interface{}, error)
- func (obj *Route) GetFieldBool(key string) (bool, error)
- func (obj *Route) GetFieldInt64(key string) (int64, error)
- func (obj *Route) GetFieldKeys() []string
- func (obj *Route) GetFieldString(key string) (string, error)
- func (v Route) MarshalEasyJSON(w *jwriter.Writer)
- func (v Route) MarshalJSON() ([]byte, error)
- func (obj *Route) MatchBool(key string, predicate getter.BoolPredicate) bool
- func (obj *Route) MatchInt64(key string, predicate getter.Int64Predicate) bool
- func (obj *Route) MatchString(key string, predicate getter.StringPredicate) bool
- func (v *Route) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Route) UnmarshalJSON(data []byte) error
- type RoutingTable
- func (obj *RoutingTable) GetField(key string) (interface{}, error)
- func (obj *RoutingTable) GetFieldBool(key string) (bool, error)
- func (obj *RoutingTable) GetFieldInt64(key string) (int64, error)
- func (obj *RoutingTable) GetFieldKeys() []string
- func (obj *RoutingTable) GetFieldString(key string) (string, error)
- func (v RoutingTable) MarshalEasyJSON(w *jwriter.Writer)
- func (v RoutingTable) MarshalJSON() ([]byte, error)
- func (obj *RoutingTable) MatchBool(key string, predicate getter.BoolPredicate) bool
- func (obj *RoutingTable) MatchInt64(key string, predicate getter.Int64Predicate) bool
- func (obj *RoutingTable) MatchString(key string, predicate getter.StringPredicate) bool
- func (v *RoutingTable) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RoutingTable) 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 { UUID string `json:",omitempty"` MAC string `json:",omitempty"` VRF string `json:",omitempty"` VRFID int64 `json:",omitempty"` LocalIP string `json:",omitempty"` RoutingTable []*Route `json:",omitempty"` }
Metadata defines the information stored about a Contrail interface 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
type Route ¶ added in v0.24.0
type Route struct { Family string `json:",omitempty"` Prefix string `json:",omitempty"` NhID int64 `json:"NhID,omitempty"` Protocol int64 `json:",omitempty"` }
Route is the skydive representation of a Contrail route easyjson:json gendecoder
func (*Route) GetFieldBool ¶ added in v0.26.0
func (*Route) GetFieldInt64 ¶ added in v0.26.0
func (*Route) GetFieldKeys ¶ added in v0.26.0
func (*Route) GetFieldString ¶ added in v0.26.0
func (Route) MarshalEasyJSON ¶ added in v0.26.0
MarshalEasyJSON supports easyjson.Marshaler interface
func (Route) MarshalJSON ¶ added in v0.26.0
MarshalJSON supports json.Marshaler interface
func (*Route) MatchBool ¶ added in v0.26.0
func (obj *Route) MatchBool(key string, predicate getter.BoolPredicate) bool
func (*Route) MatchInt64 ¶ added in v0.26.0
func (obj *Route) MatchInt64(key string, predicate getter.Int64Predicate) bool
func (*Route) MatchString ¶ added in v0.26.0
func (obj *Route) MatchString(key string, predicate getter.StringPredicate) bool
func (*Route) UnmarshalEasyJSON ¶ added in v0.26.0
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Route) UnmarshalJSON ¶ added in v0.26.0
UnmarshalJSON supports json.Unmarshaler interface
type RoutingTable ¶ added in v0.24.0
RoutingTable describes a Contrail route. A VRF contains the list of interface that use this VRF in order to be able to garbage collect VRF: if a VRF is no longer associated to an interface, this VRF can be deleted. easyjson:json gendecoder
func (*RoutingTable) GetField ¶ added in v0.26.0
func (obj *RoutingTable) GetField(key string) (interface{}, error)
func (*RoutingTable) GetFieldBool ¶ added in v0.26.0
func (obj *RoutingTable) GetFieldBool(key string) (bool, error)
func (*RoutingTable) GetFieldInt64 ¶ added in v0.26.0
func (obj *RoutingTable) GetFieldInt64(key string) (int64, error)
func (*RoutingTable) GetFieldKeys ¶ added in v0.26.0
func (obj *RoutingTable) GetFieldKeys() []string
func (*RoutingTable) GetFieldString ¶ added in v0.26.0
func (obj *RoutingTable) GetFieldString(key string) (string, error)
func (RoutingTable) MarshalEasyJSON ¶ added in v0.26.0
func (v RoutingTable) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RoutingTable) MarshalJSON ¶ added in v0.26.0
func (v RoutingTable) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RoutingTable) MatchBool ¶ added in v0.26.0
func (obj *RoutingTable) MatchBool(key string, predicate getter.BoolPredicate) bool
func (*RoutingTable) MatchInt64 ¶ added in v0.26.0
func (obj *RoutingTable) MatchInt64(key string, predicate getter.Int64Predicate) bool
func (*RoutingTable) MatchString ¶ added in v0.26.0
func (obj *RoutingTable) MatchString(key string, predicate getter.StringPredicate) bool
func (*RoutingTable) UnmarshalEasyJSON ¶ added in v0.26.0
func (v *RoutingTable) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RoutingTable) UnmarshalJSON ¶ added in v0.26.0
func (v *RoutingTable) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface