# README

Client Package

This package provides an HTTP client to communicate with ioFog Controller's REST API.

You can view see the full REST API specification at iofog.org.

Usage

First, instantiate a client instance and log in with your credentials.

// Connect to Controller REST API
ctrl := client.New(endpoint)

// Create login request
loginRequest := client.LoginRequest{
	Email:    "[email protected]",
	Password: "kj2gh0ooiwbug",
}

// Login
if err := ctrl.Login(loginRequest); err != nil {
	return err
}

Next, call any of the functions available from your client instance.

// Get Controller status
if resp, err = ctrlClient.GetStatus(); err != nil {
    return err
}

// Print the response
println(resp.Status)

# Functions

No description provided by the author
No description provided by the author
NewConflictError export.
No description provided by the author
NewHTTPError export.
NewInputError export.
NewInternalError export.
NewNotFoundError export.
No description provided by the author
No description provided by the author

# Constants

String and numeric values of TCP ports used accross ioFog.
String and numeric values of TCP ports used accross ioFog.

# Variables

AgentTypeAgentTypeIDDict Map from string agent type to numeric id.
AgentTypeIDAgentTypeDict Map from numeric id agent type to string agent type.
RegistryTypeIDRegistryTypeDict Map from numeric id registry type to string.
RegistryTypeRegistryTypeIDDict Map from string registry type to numeric id.
Toggle HTTP output.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConflictError export.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HTTPError export.
InputError export.
InternalError export.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NotFoundError export.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author