vmanage

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationsHandler added in v0.7.0

type OperationsHandler struct {
	// contains filtered or unexported fields
}

OperationsHandler receives operations from the controller in a general format and "translates" with data that is specific to vManage only, and calls the appropriate API endpoints to reflect that data to vManage.

func NewOperationsHandler added in v0.7.0

func NewOperationsHandler(client *vmanagego.Client, opts sdwan.Options, log zerolog.Logger) (*OperationsHandler, error)

NewOperationsHandler returns a new instance of the operations handler.

It returns an error in case the client passed is nil or the waiting window contains an invalid value -- usually a nil value or <= 0.

func (*OperationsHandler) WatchForOperations added in v0.7.0

func (o *OperationsHandler) WatchForOperations(mainCtx context.Context, opsChan chan *sdwan.Operation) error

WatchForOperations starts watching on the provided channel for operations to perform. It returns an error in case the channel is nil or the context is cancelled.

Make sure to run this in another goroutine.

Jump to

Keyboard shortcuts

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