Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEntity ¶
func CreateEntity(c *Connection, entity string, payload []byte) ([]byte, error)
Create Entity. Up to the caller to encode it as a valid "payload []byte" and select an appropriate API entity -- e.g. "enterprises"
func DeleteEntity ¶
func DeleteEntity(c *Connection, entity string, id string) ([]byte, error)
Delete Entity. Up to the caller to provide a correct ID for the given API entity -- e.g. "enterprises"
Types ¶
type Authtoken ¶
type Authtoken struct { Apikey string APIKeyExpiry int64 Id string AvatarData string AvatarType string Email string EnterpriseID string EnterpriseName string EntityScop string ExternalID string ExternalId string FirstName string LastName string MobileNumber string Password string Role string UserName string }
type Connection ¶
func (*Connection) Connect ¶
func (c *Connection) Connect(org, user, pass string) error
Initialize Nuage API connection using username & password. Stores a valid Authtoken upon success.
func (*Connection) String ¶
func (c *Connection) String() string
Return string representation of a Nuage API connection
Click to show internal directories.
Click to hide internal directories.