cloud

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 New

func New(cfg Config) *Client

New builds a Client.

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 Error

type Error struct {
	StatusCode int
	Message    string
	RequestID  string
}

Error is a non-2xx response from cloud.

func (*Error) Error

func (e *Error) Error() string

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL