Documentation
¶
Overview ¶
Package cloud calls the DBOS Cloud API: the routes cloud.dbos.dev serves itself, as opposed to the Conductor API it proxies under /conductor (which internal/api covers). Cloud publishes no OpenAPI spec for these routes, so the few dbosctl uses are written out by hand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client calls the DBOS Cloud API.
func (*Client) CreateLicenseKey ¶
func (c *Client) CreateLicenseKey(ctx context.Context, org string) (*LicenseKey, json.RawMessage, error)
CreateLicenseKey issues a self-hosted Conductor license key to org. Cloud decides the key's type and lifetime; the request has no body. It returns the decoded key and the raw response, so a caller can print the API's shape unaltered.
type Config ¶
type Config struct {
// BaseURL is the cloud origin, e.g. https://cloud.dbos.dev, with no path.
BaseURL string
// Token is sent as `Authorization: Bearer <token>`. Cloud's own routes
// accept only a user's Auth0 access token, not a dbos_ API key.
Token string
// HTTPClient, when set, replaces the default HTTP client.
HTTPClient *http.Client
}
Config configures a Client.
type LicenseKey ¶
type LicenseKey struct {
Key string `json:"key"`
ExpirationDate *time.Time `json:"expiration_date"`
}
LicenseKey is the part of a newly issued license key dbosctl renders; the raw response carries more (key ID, type, usage count).