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.
Click to show internal directories.
Click to hide internal directories.