SDKs
Octelium APIs are all developed over gRPC. Most octeliumctl commands are wrappers over the Cluster's Core API methods. The SDK clients make it easy for applications to authenticate to the Cluster and manage resources such as Users, Services and Sessions programmatically.
The examples below create an authenticated client, list Users, create and update a User, create a Service and list Sessions. The authenticated User must have a Policy that permits these operations. Read more about authentication-token Credentials here and Policies here.
Golang SDK
The octelium-go library provides an authenticated gRPC connection for the Cluster APIs. It also handles obtaining and refreshing the Session access token used by the connection.
Install the module in your Go application as follows:
Here is a complete management example:
Set OCTELIUM_DOMAIN and OCTELIUM_AUTH_TOKEN before running the program.