Documentation ¶
Index ¶
- func ErrorStatusCode(err error) (int, bool)
- type APIApp
- type APIDeployment
- type APIDomain
- type APIManifest
- type APISite
- type APIUser
- type 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) CreateDomain(ctx context.Context, appID string, domainName string, replaceApp string) (*APIDomain, error)
- func (c *Client) CreateSite(ctx context.Context, appID string, siteName string) (*APISite, error)
- func (c *Client) DeleteDomain(ctx context.Context, appID string, domainName string) (*APIDomain, 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) GetManifest(ctx context.Context) (*APIManifest, 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) ListDomains(ctx context.Context, appID string) ([]APIDomain, 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
- type ServerError
- type SitePatchRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorStatusCode ¶
Types ¶
type APIDeployment ¶
type APIDeployment struct { *models.Deployment SiteName *string `json:"siteName"` URL *string `json:"url"` }
type APIManifest ¶ added in v0.5.0
type APIUser ¶
type APIUser struct { ID string `json:"id"` Name string `json:"name"` Credentials []models.CredentialID `json:"credentials"` }
type Client ¶
type Client struct { TokenFunc func(r *http.Request) (string, error) // contains filtered or unexported fields }
func NewClientWithTransport ¶
func NewClientWithTransport(endpoint string, transport http.RoundTripper) *Client
func (*Client) AuthGitHubOIDC ¶
func (*Client) ConfigureApp ¶
func (*Client) CreateDomain ¶ added in v0.5.0
func (*Client) CreateSite ¶
func (*Client) DeleteDomain ¶ added in v0.5.0
func (*Client) DeleteUser ¶
func (*Client) GetDeployment ¶
func (*Client) GetManifest ¶ added in v0.5.0
func (c *Client) GetManifest(ctx context.Context) (*APIManifest, error)
func (*Client) ListDeployments ¶
func (*Client) ListDomains ¶ added in v0.5.0
func (*Client) OpenAuthGitHubSSH ¶
func (*Client) SetupDeployment ¶
func (*Client) UpdateSite ¶
type HTTPStatusCodeError ¶
func (HTTPStatusCodeError) Error ¶
func (e HTTPStatusCodeError) Error() string
func (HTTPStatusCodeError) StatusCode ¶
func (e HTTPStatusCodeError) StatusCode() int
type ServerError ¶
func (ServerError) Error ¶
func (e ServerError) Error() string
func (ServerError) StatusCode ¶
func (e ServerError) StatusCode() int
type SitePatchRequest ¶
type SitePatchRequest struct {
DeploymentName *string `json:"deploymentName,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.