Documentation ¶
Overview ¶
Common package for the VNFM and the Plugin SDK for Open Baton Managers. It provides common functions for registering, unregistering, starting the manager, etc.
Index ¶
- Constants
- func GetLogger(name string, levelStr string) *logging.Logger
- func GetPluginCreds(username string, password string, brokerIp string, brokerPort, timeout int, ...) (*catalogue.ManagerCredentials, error)
- func GetVnfmCreds(username string, password string, brokerIp string, brokerPort, timeout int, ...) (*catalogue.ManagerCredentials, error)
- func Rpc(queue string, message interface{}, conn *amqp.Connection, l *logging.Logger) ([]byte, error)
- func SendMsg(queue string, message []byte, channel *amqp.Channel, logger *logging.Logger) error
- type DriverError
- type Handler
- type Manager
- type SdkError
Constants ¶
View Source
const ( AmqpContentType = "text/plain" OpenbatonExchangeName = "openbaton-exchange" )
Variables ¶
This section is empty.
Functions ¶
func GetPluginCreds ¶
func GetPluginCreds(username string, password string, brokerIp string, brokerPort, timeout int, pluginType string, logLevel string) (*catalogue.ManagerCredentials, error)
Function to retrieve the private amqp credentials for a Plugin
func GetVnfmCreds ¶
func GetVnfmCreds(username string, password string, brokerIp string, brokerPort, timeout int, vnfmEndpoint *catalogue.Endpoint, logLevel string) (*catalogue.ManagerCredentials, error)
Function to retrieve the private amqp credentials for a VNFM
Types ¶
type DriverError ¶
Vim Driver Error
func (DriverError) Error ¶
func (e DriverError) Error() string
Error returns a description of the error.
type Manager ¶
type Manager struct { Connection *amqp.Connection Channel *amqp.Channel // contains filtered or unexported fields }
The generic Manager struct
func NewManager ¶
func NewManager(h Handler, username string, password string, brokerIp string, brokerPort int, exchange string, queueName string, workers int, allocate bool, managerName string, handleFunction handlerFunction, logLevel string, net catalogue.BaseNetworkInt, img catalogue.BaseImageInt) (*Manager, error)
Instantiate a new Manager struct
Click to show internal directories.
Click to hide internal directories.