Autonomi allows to deploy automatically and asynchronously cloud resources.
Go 1.22 or higher
-
Use
go get
to install the latest version of the Autonomi Go SDK and dependencies:go get -u https://github.com/intercloud/autonomi-sdk
-
Include the Autonomi Go SDK in your application:
import autonomisdk "github.com/intercloud/autonomi-sdk"
//...other snippet ...
client, err := autonomisdk.NewClient(
terms_and_conditions,
autonomisdk.WithHTTPClient(&http.Client{}),
autonomisdk.WithHostURL(hostURL),
autonomisdk.WithPersonalAccessToken(personal_access_token),
)
if err != nil {
// handle error
}
defer client.Close()
workspace, err := client.CreateWorkspace(ctx, payload)
if err != nil {
// handle error
}
Autonomi SDK allows to :
- Create, Read, Update and Delete a Workspace
- Create, Read, Update and Delete a Node
- Create, Read, Update and Delete a Transport
- Create, Read and Delete an Attachment
- Create, Read and Delete a Physical Port
- Create, Read and Delete an Account