neutron

package
v0.0.0-...-1d39891 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataDecoder

func MetadataDecoder(raw json.RawMessage) (common.Getter, error)

MetadataDecoder implements a json message raw decoder

Types

type Metadata

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

type Probe

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) Init

func (p *Probe) Init(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)

Init initializes a new neutron probe based on configuration

func (*Probe) OnNodeAdded

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

OnNodeAdded event

func (*Probe) OnNodeDeleted

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

OnNodeDeleted event

func (*Probe) OnNodeUpdated

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

OnNodeUpdated event

func (*Probe) Start

func (p *Probe) Start()

Start the probe

func (*Probe) Stop

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