# 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.
NewNotSupported 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
# Constants
String and numeric values of TCP ports used accross ioFog.
String and numeric values of TCP ports used accross ioFog.
String and numeric values of TCP ports used accross ioFog.
No description provided by the author
No description provided by the author
# Variables
AgentTypeAgentTypeIDDict Map from string agent type to numeric id.
AgentTypeIDAgentTypeDict Map from numeric id agent type to string agent type.
No description provided by the author
IsVerbose will Toggle HTTP output.
RegistryTypeIDRegistryTypeDict Map from numeric id registry type to string.
RegistryTypeRegistryTypeIDDict Map from string registry type to numeric id.
# 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
Applications.
No description provided by the author
No description provided by the author
No description provided by the author
Application Templates.
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
Flows - Keep for legacy.
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
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.
NotSupported 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
Registries.
No description provided by the author
No description provided by the author
No description provided by the author
Route still has deprecated Dest/SourceUUID for retro compatibility Prefer From and To.
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
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author