nsm

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: 24 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 BaseConnectionMetadata added in v0.24.0

type BaseConnectionMetadata struct {
	MechanismType       string
	MechanismParameters map[string]string
	Labels              map[string]string
}

BaseConnectionMetadata holds common connection attributes easyjson:json gendecoder

type BaseNSMMetadata added in v0.24.0

type BaseNSMMetadata struct {
	NetworkService string
	Payload        string
	Source         LocalConnectionMetadata
	Destination    LocalConnectionMetadata
}

BaseNSMMetadata holds common attributes for NSM object easyjson:json gendecoder

type EdgeMetadata added in v0.24.0

type EdgeMetadata struct {
	BaseNSMMetadata
	LocalNSMMetadata
	RemoteNSMMetadata
}

EdgeMetadata describes an NSM edge metadata easyjson:json gendecoder

type LocalConnectionMetadata added in v0.24.0

type LocalConnectionMetadata struct {
	BaseConnectionMetadata
	IP string
}

LocalConnectionMetadata holds local connection attributes easyjson:json gendecoder

type LocalNSMMetadata added in v0.24.0

type LocalNSMMetadata struct {
	CrossConnectID string
}

LocalNSMMetadata holds attributes for a local NSM object easyjson:json gendecoder

type Probe

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

Probe represents the NSM probe

func NewNsmProbe

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

NewNsmProbe creates the Probe

func (*Probe) OnNodeAdded

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

OnNodeAdded tell this probe a node in the graph has been added

func (*Probe) Start

func (p *Probe) Start()

Start ...

func (*Probe) Stop

func (p *Probe) Stop()

Stop ....

type RemoteConnectionMetadata added in v0.24.0

type RemoteConnectionMetadata struct {
	BaseConnectionMetadata
	SourceNSM              string
	DestinationNSM         string
	NetworkServiceEndpoint string
}

RemoteConnectionMetadata holds remote connection attributes easyjson:json gendecoder

type RemoteNSMMetadata added in v0.24.0

type RemoteNSMMetadata struct {
	SourceCrossConnectID      string
	DestinationCrossConnectID string
	Via                       RemoteConnectionMetadata
}

RemoteNSMMetadata holds attributes for a remote NSM object easyjson:json gendecoder

Source Files

  • connection.go
  • metadata.go
  • nsm.go

Jump to

Keyboard shortcuts

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