Versions in this module Expand all Collapse all v0 v0.5.1 Nov 30, 2023 v0.5.0 Nov 29, 2023 Changes in this version + type APIDomain struct + type APIManifest struct + CustomDomainMessage string + Version string type Client + func (c *Client) CreateDomain(ctx context.Context, appID string, domainName string, replaceApp string) (*APIDomain, error) + func (c *Client) DeleteDomain(ctx context.Context, appID string, domainName string) (*APIDomain, error) + func (c *Client) GetManifest(ctx context.Context) (*APIManifest, error) + func (c *Client) ListDomains(ctx context.Context, appID string) ([]APIDomain, error) v0.4.0 Jul 18, 2023 Changes in this version + func ErrorStatusCode(err error) (int, bool) + type APIApp struct + URL string + type APIDeployment struct + SiteName *string + URL *string + type APISite struct + DeploymentName *string + URL string + type APIUser struct + Credentials []models.CredentialID + ID string + Name string + type Client struct + TokenFunc func(r *http.Request) (string, error) + func NewClient(endpoint string) *Client + func NewClientWithTransport(endpoint string, transport http.RoundTripper) *Client + func (c *Client) AddUser(ctx context.Context, appID string, userID string) error + func (c *Client) AuthGitHubOIDC(ctx context.Context, oidcToken string) (string, error) + func (c *Client) ConfigureApp(ctx context.Context, appID string, conf *config.AppConfig) (*APIApp, error) + func (c *Client) CreateApp(ctx context.Context, appID string) (*APIApp, error) + func (c *Client) CreateSite(ctx context.Context, appID string, siteName string) (*APISite, error) + func (c *Client) DeleteUser(ctx context.Context, appID string, userID string) error + func (c *Client) Endpoint() string + func (c *Client) GetApp(ctx context.Context, id string) (*APIApp, error) + func (c *Client) GetDeployment(ctx context.Context, appID string, deploymentName string) (*APIDeployment, error) + func (c *Client) GetMe(ctx context.Context) (*APIUser, error) + func (c *Client) ListApps(ctx context.Context) ([]APIApp, error) + func (c *Client) ListDeployments(ctx context.Context, appID string) ([]APIDeployment, error) + func (c *Client) ListSites(ctx context.Context, appID string) ([]APISite, error) + func (c *Client) ListUsers(ctx context.Context, appID string) ([]APIUser, error) + func (c *Client) OpenAuthGitHubSSH(ctx context.Context) (*websocket.Conn, error) + func (c *Client) SetupDeployment(ctx context.Context, appID string, name string, files []models.FileEntry, ...) (*models.Deployment, error) + func (c *Client) UpdateSite(ctx context.Context, appID string, siteName string, patch *SitePatchRequest) (*APISite, error) + func (c *Client) UploadDeploymentTarball(ctx context.Context, appID string, deploymentName string, tarball io.Reader, ...) (*models.Deployment, error) + type HTTPStatusCodeError struct + Code int + Status string + func (e HTTPStatusCodeError) Error() string + func (e HTTPStatusCodeError) StatusCode() int + type ServerError struct + Code int + Message string + func (e ServerError) Error() string + func (e ServerError) StatusCode() int + type SitePatchRequest struct + DeploymentName *string v0.3.1 Jun 9, 2023 v0.3.0 Jun 9, 2023 v0.2.0 Jun 7, 2023 v0.1.0 May 31, 2023