neutron

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: 25 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.21.0

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

NewProbe returns a new Neutron 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 {
	PortID      string   `json:",omitempty"`
	TenantID    string   `json:",omitempty"`
	NetworkID   string   `json:",omitempty"`
	NetworkName string   `json:",omitempty"`
	IPV4        []string `json:",omitempty"`
	IPV6        []string `json:",omitempty"`
	VNI         int64    `json:",omitempty"`
}

Metadata describes a Neutron port 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 Probe added in v0.21.0

type Probe struct {
	graph.DefaultGraphListener
	Ctx tp.Context
	// contains filtered or unexported fields
}

Probe describes a topology probe that maps neutron attributes in the graph

func (*Probe) OnNodeAdded added in v0.21.0

func (p *Probe) OnNodeAdded(n *graph.Node)

OnNodeAdded event

func (*Probe) OnNodeDeleted added in v0.21.0

func (p *Probe) OnNodeDeleted(n *graph.Node)

OnNodeDeleted event

func (*Probe) OnNodeUpdated added in v0.21.0

func (p *Probe) OnNodeUpdated(n *graph.Node, ops []graph.PartiallyUpdatedOp)

OnNodeUpdated event

func (*Probe) Start added in v0.21.0

func (p *Probe) Start() error

Start the probe

func (*Probe) Stop added in v0.21.0

func (p *Probe) Stop()

Stop the probe

Jump to

Keyboard shortcuts

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