Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RenderClient ¶
type RenderClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(token string) (*RenderClient, error)
func (*RenderClient) ListDeploys ¶
func (r *RenderClient) ListDeploys(serviceID string) ([]Deploy, error)
func (*RenderClient) ListServices ¶
func (r *RenderClient) ListServices() ([]Service, error)
type Response ¶
type Response []ResponseItem
type ResponseItem ¶
type Service ¶
type Service struct {
ID string `json:"id"`
Type string `json:"type"`
Repo string `json:"repo"`
Name string `json:"name"`
AutoDeploy bool `json:"autoDeploy"`
Branch string `json:"branch"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
NotifyOnFail string `json:"notifyOnFail"`
OwnerID string `json:"ownerId"`
Slug string `json:"slug"`
Suspenders []string `json:"suspenders"`
Schedule string `json:"schedule"`
LastSuccessfulRunAt time.Time `json:"lastSuccessfulRunAt"`
ServiceDetails ServiceDetails `json:"serviceDetails"`
Deploys []Deploy `json:"deploys"`
}
type ServiceDetails ¶
type ServiceDetails struct {
Disk map[string]interface{} `json:"disk"`
Env string `json:"env"`
EnvSpecificDetails ServiceDetailsEnv `json:"envSpecificDetails"`
HealthCheckPath string `json:"healthCheckPath"`
NumInstances int `json:"numInstances"`
OpenPorts map[string]interface{} `json:"openPorts"`
PublishPath string `json:"publishPath"`
ParentServer map[string]interface{} `json:"parentServer"`
Plan string `json:"plan"`
PullRequestPreviewsEnabled bool `json:"pullRequestPreviewsEnabled"`
Region string `json:"region"`
URL string `json:"url"`
BuildCommand string `json:"buildCommand"`
}
Click to show internal directories.
Click to hide internal directories.