neutron

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

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) (common.Getter, error)

MetadataDecoder implements a json message raw decoder

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

type Probe added in v0.21.0

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

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

func NewProbe added in v0.21.0

func NewProbe(g *graph.Graph, authURL, username, password, tenantName, regionName, domainName string, availability gophercloud.Availability) (*Probe, error)

NewProbe creates a neutron probe that will enhance the graph

func NewProbeFromConfig added in v0.21.0

func NewProbeFromConfig(g *graph.Graph) (*Probe, error)

NewProbeFromConfig creates a new neutron probe based on configuration

func (*Probe) OnNodeAdded added in v0.21.0

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

OnNodeAdded event

func (*Probe) OnNodeDeleted added in v0.21.0

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

OnNodeDeleted event

func (*Probe) OnNodeUpdated added in v0.21.0

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

OnNodeUpdated event

func (*Probe) Start added in v0.21.0

func (mapper *Probe) Start()

Start the probe

func (*Probe) Stop added in v0.21.0

func (mapper *Probe) Stop()

Stop the probe

Jump to

Keyboard shortcuts

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