Versions in this module Expand all Collapse all v0 v0.5.0 Nov 11, 2026 Changes in this version + const CpuDedicated + const CpuShared + var ErrCreateProjects = errors.New("the account is not allowed to create projects") + func Applied(stack output.ServiceStack, r Resize) bool + func AutoscalingBody(stack output.ServiceStack, r Resize) (body.Autoscaling, error) + func CheckSize(cpu, ram, disk int) error + func DiskFloor(stack output.ServiceStack) float64 type Client + func (c *Client) Autoscale(ctx context.Context, serviceId string, in body.Autoscaling) (*output.Process, error) + func (c *Client) ProcessOutput(ctx context.Context, processId string) (output.Process, error) + func (c *Client) ReloadServiceStack(ctx context.Context, serviceId string) (output.Process, error) + func (c *Client) RestartServiceStack(ctx context.Context, serviceId string) (output.Process, error) + func (c *Client) StartServiceStack(ctx context.Context, serviceId string) (output.Process, error) + func (c *Client) StopServiceStack(ctx context.Context, serviceId string) (output.Process, error) type Error + func AsError(err error) (Error, bool) type ImportParams + CpuMode string + type Organization struct + CanCreateProjects bool + Id string + Name string + type Resize struct + Cpu int + CpuMode string + Disk int + Ram int + type Size struct + Cpu int + CpuMode string + Disk float64 + Ram float64 + func StackSize(stack output.ServiceStack) Size + func (s Size) Known() bool type User + Organizations []Organization + func (u User) ProjectOrganization(ref string) (Organization, error) type WorkspaceStack + OrganizationId string + OrganizationName string v0.4.0 Oct 30, 2026 Changes in this version + const ProxyApiPrefix + const RecipeSource + func IsCode(err error, code string) bool + func IsNotFound(err error) bool + func IsTerminal(status string) bool + func RenderImport(p ImportParams) (string, error) + func SubdomainHosts(value string) (apiHost, ingressHost string) + type Access struct + Expiration string + Token string + UrlApi string + UrlUi string + type Client struct + func New(apiUrl, token string) *Client + func (c *Client) DeleteProject(ctx context.Context, projectId string) (string, error) + func (c *Client) DeleteServiceStack(ctx context.Context, serviceId string) (string, error) + func (c *Client) ImportProject(ctx context.Context, clientId, yaml string) (ImportResult, error) + func (c *Client) ImportServiceStack(ctx context.Context, projectId, yaml string) (ImportResult, error) + func (c *Client) InSudo(ctx context.Context) (bool, error) + func (c *Client) Logout(ctx context.Context) error + func (c *Client) Process(ctx context.Context, processId string) (ProcessState, error) + func (c *Client) Project(ctx context.Context, projectId string) (output.Project, error) + func (c *Client) ServiceEnv(ctx context.Context, serviceId, key string) (string, bool, error) + func (c *Client) ServiceStack(ctx context.Context, serviceId string) (output.ServiceStack, error) + func (c *Client) Sudo(ctx context.Context, guiUrl string, print func(string)) error + func (c *Client) UiAccess(ctx context.Context, serviceId string) (Access, error) + func (c *Client) UserInfo(ctx context.Context) (User, error) + func (c *Client) WaitProcesses(ctx context.Context, ids []string, onChange func(ProcessState)) error + func (c *Client) Workspaces(ctx context.Context, clientId string) ([]WorkspaceStack, error) + type Error struct + Code string + Message string + Status int + func (e Error) Error() string + type ImportParams struct + Cpu int + Disk int + Hostname string + NoSubdomain bool + ProjectName string + Ram int + func (p ImportParams) Sized() bool + type ImportResult struct + Processes []string + ProjectId string + ProjectName string + ServiceId string + type ProcessState struct + Action string + Error string + Id string + Status string + type Registration struct + AccountName string + Email string + Name string + Password string + type Session struct + AccessToken string + ExpiresAt time.Time + RefreshToken string + func DeviceLogin(ctx context.Context, apiUrl, guiUrl string, print func(string)) (Session, error) + func Login(ctx context.Context, apiUrl, email, password string) (Session, error) + func Refresh(ctx context.Context, apiUrl, refreshToken string) (Session, error) + func Register(ctx context.Context, apiUrl string, r Registration) (Session, error) + type User struct + Account string + ClientId string + Email string + FullName string + type WorkspaceStack struct + Hostname string + ProjectId string + ProjectName string + ServiceId string + Status string v0.3.0 Oct 20, 2026 v0.2.0 Oct 20, 2026 v0.1.0 Oct 19, 2026 v0.1.0-rc1 Oct 19, 2026