config

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionToIntMap = map[Action]int{
	ACTION_PERMIT: 0,
	ACTION_DENY:   1,
}
View Source
var IntToActionMap = map[int]Action{
	0: ACTION_PERMIT,
	1: ACTION_DENY,
}

Functions

This section is empty.

Types

type Action

type Action string

typedef for identity plist:action.

const (
	ACTION_PERMIT Action = "permit"
	ACTION_DENY   Action = "deny"
)

func (Action) ToInt

func (v Action) ToInt() int

func (Action) Validate

func (v Action) Validate() error

type PrefixList

type PrefixList struct {
	// original -> plist:name
	Name string `mapstructure:"name" json:"name,omitempty"`
	// original -> plist:description
	// Prefix-list specific description.
	Description string `mapstructure:"description" json:"description,omitempty"`
	// original -> plist:seq
	// sequence number of an entry.
	SeqList []Seq `mapstructure:"seq" json:"seq,omitempty"`
}

struct for container plist:prefix-list.

func (*PrefixList) Equal

func (lhs *PrefixList) Equal(rhs *PrefixList) bool

type PrefixLists

type PrefixLists []PrefixList

type Seq

type Seq struct {
	// original -> plist:number
	Number uint32 `mapstructure:"number" json:"number,omitempty"`
	// original -> plist:action
	Action Action `mapstructure:"action" json:"action,omitempty"`
	// original -> plist:prefix
	// plist:prefix's original type is inet:ipv4-prefix.
	Prefix string `mapstructure:"prefix" json:"prefix,omitempty"`
	// original -> plist:ge
	// Minimum prefix length to be matched.
	Ge *int `mapstructure:"ge" json:"ge,omitempty"`
	// original -> plist:le
	// Maximum prefix length to be matched.
	Le *int `mapstructure:"le" json:"le,omitempty"`
	// original -> plist:eq
	// Maximum prefix length to be matched.
	Eq *int `mapstructure:"eq" json:"eq,omitempty"`
}

struct for container plist:seq. sequence number of an entry.

func (*Seq) Equal

func (lhs *Seq) Equal(rhs *Seq) bool

Jump to

Keyboard shortcuts

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