Documentation
¶
Overview ¶
Package panel is Skiff's login-gated control panel where teams deploy git projects onto the box, served behind the router at dash.<domain>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelfUpdate ¶
func SelfUpdate(opts SelfUpdateOpts) error
Types ¶
type AlertConfig ¶
type AuditEntry ¶
type Bucket ¶
type Bucket struct {
ID string `json:"id"`
Name string `json:"name"`
Endpoint string `json:"endpoint"`
Region string `json:"region"`
AccessKey string `json:"accessKey"`
SecretKey string `json:"secretKey"`
State string `json:"state"`
Attached []string `json:"attached"`
Created int64 `json:"created"`
}
Bucket is a managed object store plus the computed fields the dashboard needs.
type Database ¶
type Database struct {
ID string `json:"id"`
Name string `json:"name"`
Engine string `json:"engine"`
Host string `json:"host"`
Port int `json:"port"`
Created int64 `json:"created"`
State string `json:"state"`
URL string `json:"url"`
Attached []string `json:"attached"`
Public bool `json:"public"`
PublicURL string `json:"publicUrl,omitempty"`
}
type LogDrain ¶ added in v0.5.0
type LogDrain struct {
Team string
URL string
HeaderName string
HeaderValue string
LastOK int64
LastError string
}
LogDrain sends a team's app logs to an HTTP endpoint. Delivery is at-least-once: lines are read from the saved log files and the cursor only moves after the endpoint accepts them, so a restart or an outage loses nothing the saved logs still hold.
type MailDomain ¶ added in v0.2.0
type MailForward ¶ added in v0.2.0
type OffsiteTarget ¶ added in v0.2.0
type SelfUpdateOpts ¶
type Source ¶
type Source struct {
App string `json:"app"`
Team string `json:"team"`
Repo string `json:"repo"`
Branch string `json:"branch"`
RootDir string `json:"rootDir"`
Port string `json:"port"`
CloneURL string `json:"cloneUrl"`
Auto bool `json:"auto"`
Parent string `json:"parent,omitempty"`
PreviewAuto bool `json:"previewAuto,omitempty"`
Replicas int `json:"replicas,omitempty"`
Release string `json:"release,omitempty"`
Autoscale bool `json:"autoscale,omitempty"`
ScaleMin int `json:"scaleMin,omitempty"`
ScaleMax int `json:"scaleMax,omitempty"`
ScaleCPU int `json:"scaleCpu,omitempty"`
Origin string `json:"origin,omitempty"` // "" = deployed by the panel from git, "cli" = by `skiff deploy`
SleepAfter int `json:"sleepAfter,omitempty"` // minutes without visitors before the app is stopped; 0 = never
// HealthPath must answer 2xx/3xx before a new version takes traffic; HealthTimeout is in seconds (0 = default).
HealthPath string `json:"healthPath,omitempty"`
HealthTimeout int `json:"healthTimeout,omitempty"`
// Image is a prebuilt image the project runs instead of building from a repo.
Image string `json:"image,omitempty"`
// Memory and CPU limit each replica, like 512m and 0.5; empty leaves it to the server-wide safety cap.
Memory string `json:"memory,omitempty"`
CPU string `json:"cpu,omitempty"`
// Catalog is the one-click recipe this project was created from.
Catalog string `json:"catalog,omitempty"`
}
Source Files
¶
- accounts.go
- alerts.go
- analytics.go
- api_v1.go
- applogs.go
- audit.go
- autoscale.go
- backups.go
- bucketfiles.go
- catalog.go
- cert.go
- cliapps.go
- clilogin.go
- commitstatus.go
- cost.go
- cpbackups.go
- databases.go
- dbadopt.go
- dbrecover.go
- deliveries.go
- deploys.go
- domains.go
- embed.go
- envstage.go
- exec.go
- gc.go
- gitclone.go
- github_handlers.go
- images.go
- insights.go
- jobs.go
- logdrains.go
- logging.go
- mail.go
- names.go
- networks.go
- offsite.go
- overview.go
- ownership.go
- panel.go
- prcomments.go
- previewgate.go
- previews.go
- projects.go
- ratelimit.go
- resources.go
- selfupdate.go
- server.go
- settings.go
- sleep.go
- storage.go
- store.go
- tokens.go
- tomlquote.go
- twofactor.go
- uptime.go
- volumes.go
- workers.go