nuage

package module
v0.0.0-...-9cdbcce Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: Apache-2.0 Imports: 9 Imported by: 2

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"

func GetEntity

func GetEntity(c *Connection, endpoint string) ([]byte, error)

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

type Connection struct {
	Url     string
	Apivers string
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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