mod

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEncode

func NewEncode(cfg *viper.Viper) (interface{}, error)

NewEncode creates an encode object for Secadvisor format

func NewTransform

func NewTransform(cfg *viper.Viper) (interface{}, error)

NewTransform creates a new flow transformer based on a name string

Types

type Resolver

type Resolver interface {
	IPToName(ipString, nodeTID string) (string, error)
	TIDToType(nodeTID string) (string, error)
}

Resolver resolves values for the transformer

func NewResolveCache

func NewResolveCache(resolver Resolver) Resolver

NewResolveCache creates a new name resolver

func NewResolveFallback

func NewResolveFallback(resolver Resolver) Resolver

NewResolveFallback creates a new name resolver

func NewResolveMulti

func NewResolveMulti(resolvers ...Resolver) Resolver

NewResolveMulti creates a new name resolver

func NewResolveRunc

func NewResolveRunc(cfg *viper.Viper) Resolver

NewResolveRunc creates a new name resolver

type SecurityAdvisorFlow

type SecurityAdvisorFlow struct {
	UUID             string                    `json:"UUID,omitempty"`
	LayersPath       string                    `json:"LayersPath,omitempty"`
	Version          string                    `json:"Version,omitempty"`
	Status           string                    `json:"Status,omitempty"`
	FinishType       string                    `json:"FinishType,omitempty"`
	Network          *SecurityAdvisorFlowLayer `json:"Network,omitempty"`
	Transport        *SecurityAdvisorFlowLayer `json:"Transport,omitempty"`
	LastUpdateMetric *flow.FlowMetric          `json:"LastUpdateMetric,omitempty"`
	Metric           *flow.FlowMetric          `json:"Metric,omitempty"`
	Start            int64                     `json:"Start"`
	Last             int64                     `json:"Last"`
	UpdateCount      int64                     `json:"UpdateCount"`
	NodeType         string                    `json:"NodeType,omitempty"`
}

SecurityAdvisorFlow represents a security advisor flow

type SecurityAdvisorFlowLayer

type SecurityAdvisorFlowLayer struct {
	Protocol string `json:"Protocol,omitempty"`
	A        string `json:"A,omitempty"`
	B        string `json:"B,omitempty"`
	AName    string `json:"A_Name,omitempty"`
	BName    string `json:"B_Name,omitempty"`
}

SecurityAdvisorFlowLayer is the flow layer for a security advisor flow

Jump to

Keyboard shortcuts

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