sdwan

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultWaitingWindow time.Duration = 30 * time.Second
)

Variables

View Source
var (
	ErrNotFound error = errors.New("resource not found")
)

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	Username  string
	Password  string
	SessionID string
	XSRFToken string
}

type Error

type Error struct {
	Type    string `json:"type"`
	Message string `json:"message"`
	Details string `json:"details"`
	Code    string `json:"code"`
}

func (*Error) Error

func (e *Error) Error() string

type L3L4Data added in v0.7.0

type L3L4Data struct {
	// One of IPs and Hosts should be there, not together.
	IPs      []string
	Hosts    []string
	Ports    []uint32
	Protocol Protocol
}

type Operation

type Operation struct {
	Type            OperationType
	ApplicationName string
	// DEPRECATED: use L3L4 instead
	Servers []string

	Data []*L3L4Data
}

type OperationType

type OperationType string
const (
	OperationRemove         OperationType = "remove"
	OperationCreateOrUpdate OperationType = "create-or-update"
	OperationUpdate         OperationType = "update"

	// This one will soon be deprecated.
	OperationAdd OperationType = "add"
)

type Options

type Options struct {
	BaseURL        string         `yaml:"baseUrl"`
	Insecure       bool           `yaml:"insecure"`
	WaitingWindow  *time.Duration `yaml:"waitingWindow"`
	Enable         bool           `yaml:"enable"`
	Authentication *Authentication
}

type Protocol added in v0.7.0

type Protocol string
const (
	ProtocolTCP   Protocol = "tcp"
	ProtocolUDP   Protocol = "udp"
	ProtocolHTTPS Protocol = "https"
	ProtocolHTTP  Protocol = "http"
)

NON-EXHAUSTIVE

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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