opencontrail

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

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

func NewProbe added in v0.26.0

func NewProbe(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)

NewProbe returns a new OpenContrail topology probe

func Register added in v0.26.0

func Register()

Register registers graph metadata decoders

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) GetField added in v0.26.0

func (obj *Metadata) GetField(key string) (interface{}, error)

func (*Metadata) GetFieldBool added in v0.26.0

func (obj *Metadata) GetFieldBool(key string) (bool, error)

func (*Metadata) GetFieldInt64 added in v0.26.0

func (obj *Metadata) GetFieldInt64(key string) (int64, error)

func (*Metadata) GetFieldKeys added in v0.26.0

func (obj *Metadata) GetFieldKeys() []string

func (*Metadata) GetFieldString added in v0.26.0

func (obj *Metadata) GetFieldString(key string) (string, error)

func (Metadata) MarshalEasyJSON added in v0.26.0

func (v Metadata) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Metadata) MarshalJSON added in v0.26.0

func (v Metadata) MarshalJSON() ([]byte, error)

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

func (v *Metadata) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Metadata) UnmarshalJSON added in v0.26.0

func (v *Metadata) UnmarshalJSON(data []byte) error

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) GetField added in v0.26.0

func (obj *Route) GetField(key string) (interface{}, error)

func (*Route) GetFieldBool added in v0.26.0

func (obj *Route) GetFieldBool(key string) (bool, error)

func (*Route) GetFieldInt64 added in v0.26.0

func (obj *Route) GetFieldInt64(key string) (int64, error)

func (*Route) GetFieldKeys added in v0.26.0

func (obj *Route) GetFieldKeys() []string

func (*Route) GetFieldString added in v0.26.0

func (obj *Route) GetFieldString(key string) (string, error)

func (Route) MarshalEasyJSON added in v0.26.0

func (v Route) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Route) MarshalJSON added in v0.26.0

func (v Route) MarshalJSON() ([]byte, error)

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

func (v *Route) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Route) UnmarshalJSON added in v0.26.0

func (v *Route) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RoutingTable added in v0.24.0

type RoutingTable struct {
	InterfacesUUID []string
	Routes         []*Route
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL