Versions in this module Expand all Collapse all v0 v0.0.12 Jan 25, 2026 v0.0.11 Jan 25, 2026 v0.0.10 Jan 25, 2026 v0.0.9 Jan 24, 2026 Changes in this version type Client + func (c *Client) ApplyUpdate(ctx context.Context, version string) error + func (c *Client) CheckForUpdates(ctx context.Context) (*UpdateInfo, error) + type UpdateInfo struct + CurrentVersion string + LatestVersion string + PublishedAt string + ReleaseNotes string + ReleaseURL string + UpdateAvailable bool v0.0.8 Jan 24, 2026 v0.0.7 Jan 24, 2026 v0.0.6 Jan 24, 2026 v0.0.5 Jan 24, 2026 v0.0.4 Jan 24, 2026 v0.0.3 Jan 24, 2026 v0.0.2 Jan 24, 2026 v0.0.1 Jan 8, 2026 Changes in this version + const DefaultConfigCacheTTL + type App struct + CreatedAt time.Time + Description string + Domains []string + ID string + IconURL string + Name string + OrgID string + OwnerID string + Services []Service + UpdatedAt time.Time + Version int + type AuthResponse struct + Token string + UserID string + type Build struct + AppID string + CreatedAt time.Time + DeploymentID string + ID string + Logs string + Status string + Strategy string + UpdatedAt time.Time + type BuildConfig struct + BuildCommand string + BuildTags []string + CGOEnabled *bool + EntryPoint string + EnvVars map[string]string + IsWorkspace bool + Ldflags string + PostBuildCommands []string + PreBuildCommands []string + StartCommand string + WorkspaceModule string + type BuildStrategy string + const BuildStrategyAuto + const BuildStrategyAutoGo + const BuildStrategyAutoNode + const BuildStrategyAutoPython + const BuildStrategyAutoRust + const BuildStrategyDockerfile + const BuildStrategyFlake + const BuildStrategyNixpacks + type Client struct + func NewClient(baseURL string) *Client + func (c *Client) AcceptInvitation(ctx context.Context, token, password string) (*AuthResponse, error) + func (c *Client) CanRegister(ctx context.Context) (bool, error) + func (c *Client) CheckHealth(ctx context.Context) error + func (c *Client) CreateApp(ctx context.Context, name, description, iconURL string) (*App, error) + func (c *Client) CreateDomain(ctx context.Context, appID, service, domain string, isWildcard bool) (*Domain, error) + func (c *Client) CreateInvitation(ctx context.Context, email, role string) (*Invitation, error) + func (c *Client) CreateOrg(ctx context.Context, req CreateOrgRequest) (*Organization, error) + func (c *Client) CreateSecret(ctx context.Context, appID, key, value string) error + func (c *Client) CreateService(ctx context.Context, appID string, svc CreateServiceRequest) (*Service, error) + func (c *Client) DeleteApp(ctx context.Context, id string) error + func (c *Client) DeleteDomain(ctx context.Context, id string) error + func (c *Client) DeleteOrg(ctx context.Context, orgID string) error + func (c *Client) DeleteSecret(ctx context.Context, appID, key string) error + func (c *Client) DeleteService(ctx context.Context, appID, serviceName string) error + func (c *Client) DeleteUser(ctx context.Context, userID string) error + func (c *Client) Deploy(ctx context.Context, appID, serviceName string) (*Deployment, error) + func (c *Client) Get(ctx context.Context, path string, result interface{}) error + func (c *Client) GetApp(ctx context.Context, id string) (*App, error) + func (c *Client) GetAppLogs(ctx context.Context, appID string) ([]Log, error) + func (c *Client) GetBuild(ctx context.Context, id string) (*Build, error) + func (c *Client) GetBuildByDeployment(ctx context.Context, deploymentID string) (*Build, error) + func (c *Client) GetConfig(ctx context.Context) (*PlatformConfig, error) + func (c *Client) GetDashboardData(ctx context.Context) (*DashboardStats, []RecentDeployment, []NodeHealth, error) + func (c *Client) GetDashboardStats(ctx context.Context) (*DashboardStatsResponse, error) + func (c *Client) GetDeployment(ctx context.Context, id string) (*Deployment, error) + func (c *Client) GetGitHubConfig(ctx context.Context) (*GitHubConfigStatus, error) + func (c *Client) GetGitHubInstallURL(ctx context.Context) (string, error) + func (c *Client) GetGitHubOAuthURL(ctx context.Context) (string, error) + func (c *Client) GetGitHubSetupURL(ctx context.Context, org string) (string, error) + func (c *Client) GetInvitationByToken(ctx context.Context, token string) (*Invitation, error) + func (c *Client) GetNode(ctx context.Context, id string) (*Node, error) + func (c *Client) GetOrg(ctx context.Context, orgID string) (*Organization, error) + func (c *Client) GetOrgBySlug(ctx context.Context, slug string) (*Organization, error) + func (c *Client) GetRaw(ctx context.Context, path string) ([]byte, string, error) + func (c *Client) GetServiceLogs(ctx context.Context, appID, serviceName string) ([]Log, error) + func (c *Client) GetSettings(ctx context.Context) (map[string]string, error) + func (c *Client) GetUserProfile(ctx context.Context) (*store.User, error) + func (c *Client) ListAllDomains(ctx context.Context) ([]Domain, error) + func (c *Client) ListAppDeployments(ctx context.Context, appID string) ([]Deployment, error) + func (c *Client) ListApps(ctx context.Context) ([]App, error) + func (c *Client) ListBuilds(ctx context.Context) ([]Build, error) + func (c *Client) ListDeployments(ctx context.Context) ([]Deployment, error) + func (c *Client) ListGitHubInstallations(ctx context.Context) ([]GitHubInstallation, error) + func (c *Client) ListGitHubRepos(ctx context.Context) ([]GitHubRepository, error) + func (c *Client) ListInvitations(ctx context.Context) ([]Invitation, error) + func (c *Client) ListNodes(ctx context.Context) ([]Node, error) + func (c *Client) ListOrgs(ctx context.Context) ([]Organization, error) + func (c *Client) ListSecrets(ctx context.Context, appID string) ([]Secret, error) + func (c *Client) ListUsers(ctx context.Context) ([]UserInfo, error) + func (c *Client) Login(ctx context.Context, email, password string) (*AuthResponse, error) + func (c *Client) Register(ctx context.Context, email, password string) (*AuthResponse, error) + func (c *Client) ReloadService(ctx context.Context, appID, serviceName string) error + func (c *Client) ResetGitHubConfig(ctx context.Context) error + func (c *Client) RetryBuild(ctx context.Context, id string) error + func (c *Client) RetryService(ctx context.Context, appID, serviceName string) error + func (c *Client) RevokeInvitation(ctx context.Context, invitationID string) error + func (c *Client) RollbackDeployment(ctx context.Context, id string) (*Deployment, error) + func (c *Client) SaveGitHubConfig(ctx context.Context, configType, clientID, clientSecret string) error + func (c *Client) StartService(ctx context.Context, appID, serviceName string) error + func (c *Client) StopService(ctx context.Context, appID, serviceName string) error + func (c *Client) UpdateApp(ctx context.Context, id string, req UpdateAppRequest) (*App, error) + func (c *Client) UpdateOrg(ctx context.Context, orgID string, req UpdateOrgRequest) (*Organization, error) + func (c *Client) UpdateService(ctx context.Context, appID, serviceName string, svc CreateServiceRequest) (*Service, error) + func (c *Client) UpdateServicePort(ctx context.Context, appID, serviceName string, port int) (*Service, error) + func (c *Client) UpdateSettings(ctx context.Context, settings map[string]string) error + func (c *Client) UpdateUserProfile(ctx context.Context, name, avatarURL string) (*store.User, error) + func (c *Client) WithOrg(orgID string) *Client + func (c *Client) WithToken(token string) *Client + type ConfigCache struct + func GetGlobalConfigCache() *ConfigCache + func NewConfigCache(ttl time.Duration) *ConfigCache + func (cc *ConfigCache) Get(ctx context.Context, client *Client) (*PlatformConfig, error) + func (cc *ConfigCache) GetDefaultPort(ctx context.Context, client *Client, serviceType string) int + func (cc *ConfigCache) GetDomain(ctx context.Context, client *Client) string + func (cc *ConfigCache) GetStatusMapping(ctx context.Context, client *Client, status string) *StatusMapping + func (cc *ConfigCache) GetSupportedDBTypes(ctx context.Context, client *Client) []DatabaseTypeDef + func (cc *ConfigCache) Invalidate() + type CreateAppRequest struct + Description string + IconURL string + Name string + type CreateOrgRequest struct + Description string + IconURL string + Name string + Slug string + type CreateSecretRequest struct + Key string + Value string + type CreateServiceRequest struct + BuildConfig *BuildConfig + BuildStrategy BuildStrategy + Database *DatabaseConfig + DependsOn []string + EnvVars map[string]string + FlakeURI string + GitRef string + GitRepo string + Name string + Replicas int + Resources *ResourceSpec + SourceType string + type DashboardStats struct + ActiveDeployments int + HealthyNodes int + RunningBuilds int + TotalApps int + type DashboardStatsResponse struct + ActiveDeployments int + NodeHealth NodeHealthSummary + TotalApps int + TotalServices int + type DatabaseConfig struct + Type string + Version string + type DatabaseTypeDef struct + DefaultVersion string + Type string + Versions []string + type Deployment struct + AppID string + CreatedAt time.Time + GitCommit string + GitRef string + ID string + NodeID string + ServiceName string + Status string + UpdatedAt time.Time + Version int + type Domain struct + AppID string + CreatedAt time.Time + Domain string + ID string + IsWildcard bool + Service string + UpdatedAt time.Time + Verified bool + type GitHubConfigStatus struct + AppID *int64 + ConfigType string + Configured bool + Slug *string + type GitHubInstallation struct + AccountLogin string + AccountType string + ID int64 + type GitHubRepository struct + DefaultBranch string + Description string + FullName string + HTMLURL string + ID int64 + Name string + type Invitation struct + AcceptedAt string + CreatedAt string + Email string + ExpiresAt string + ID string + InvitedBy string + Role string + Status string + Token string + type Log struct + DeploymentID string + ID string + Level string + Message string + Source string + Timestamp time.Time + type LoginRequest struct + Email string + Password string + type Node struct + Address string + Healthy bool + Hostname string + ID string + LastHeartbeat time.Time + Resources *NodeResources + type NodeHealth struct + Address string + CPUPercent int + Healthy bool + MemPercent int + Name string + type NodeHealthSummary struct + Healthy int + Total int + Unhealthy int + type NodeResources struct + CPUAvailable float64 + CPUTotal float64 + MemoryAvailable int64 + MemoryTotal int64 + type Organization struct + Description string + ID string + IconURL string + Name string + Slug string + type PlatformConfig struct + DefaultPorts map[string]int + DefaultResources ResourceSpec + Domain string + MaxServicesPerApp int + StatusMappings map[string]StatusMapping + SupportedDBTypes []DatabaseTypeDef + type RecentDeployment struct + AppName string + ServiceName string + Status string + TimeAgo string + type RegisterRequest struct + Email string + Password string + type ResourceSpec struct + CPU string + Memory string + type Secret struct + CreatedAt time.Time + Key string + UpdatedAt time.Time + type Service struct + BuildConfig *BuildConfig + BuildStrategy BuildStrategy + Database *DatabaseConfig + DependsOn []string + EnvVars map[string]string + FlakeURI string + GitRef string + GitRepo string + Name string + Port int + Replicas int + Resources *ResourceSpec + SourceType string + type StatusMapping struct + Color string + Icon string + Label string + type UpdateAppRequest struct + Description *string + IconURL *string + Name *string + Version int + type UpdateOrgRequest struct + Description string + IconURL string + Name string + Slug string + type UserInfo struct + AvatarURL string + CreatedAt int64 + Email string + ID string + InvitedBy string + Name string + Role string