panel

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: Apache-2.0, MIT Imports: 50 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 APIToken

type APIToken struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Created  int64  `json:"created"`
	LastUsed int64  `json:"lastUsed"`
	// Token is set only in the create response — never persisted or listed.
	Token string `json:"token,omitempty"`
}

type AlertConfig

type AlertConfig struct {
	Email      string `json:"email"`
	SlackURL   string `json:"slackUrl"`
	WebhookURL string `json:"webhookUrl"`
}

type AuditEntry

type AuditEntry struct {
	ID      int64  `json:"id"`
	Actor   string `json:"actor"`
	Action  string `json:"action"`
	Target  string `json:"target"`
	Detail  string `json:"detail"`
	Created int64  `json:"created"`
}

type Backup

type Backup struct {
	ID      string `json:"id"`
	Size    int64  `json:"size"`
	Trigger string `json:"trigger"` // manual | scheduled
	Created int64  `json:"created"`
	Offsite string `json:"offsite,omitempty"` // "" not sent, pending, ok or failed
}

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 Deploy

type Deploy struct {
	ID           string `json:"id"`
	App          string `json:"app"`
	Commit       string `json:"commit"`
	Message      string `json:"message"`
	Trigger      string `json:"trigger"`
	Status       string `json:"status"`
	Started      int64  `json:"started"`
	Rollbackable bool   `json:"rollbackable,omitempty"`
}

type Domain

type Domain struct {
	Host       string   `json:"host"`
	App        string   `json:"app"`
	Parent     string   `json:"parent,omitempty"`
	Branch     string   `json:"branch,omitempty"`
	Created    int64    `json:"created"`
	PointsHere bool     `json:"pointsHere"`
	ResolvesTo []string `json:"resolvesTo,omitempty"`
}

type EnvVar

type EnvVar struct {
	Key   string `json:"key"`
	Value string `json:"value"`
	Build bool   `json:"build"`
}

type Job

type Job struct {
	ID       string `json:"id"`
	App      string `json:"app"`
	Name     string `json:"name"`
	Schedule string `json:"schedule"`
	Command  string `json:"command"`
	LastRun  int64  `json:"lastRun"`
	LastOk   bool   `json:"lastOk"`
	Next     int64  `json:"next"`
	Created  int64  `json:"created"`
}

type MailDomain added in v0.2.0

type MailDomain struct {
	Domain  string   `json:"domain"`
	MX      bool     `json:"mx"`
	SPF     bool     `json:"spf"`
	MXHosts []string `json:"mxHosts,omitempty"`
}

type MailForward added in v0.2.0

type MailForward struct {
	ID           string   `json:"id"`
	Domain       string   `json:"domain"`
	Alias        string   `json:"alias"`
	Destinations []string `json:"destinations"`
	Created      int64    `json:"created"`
}

type OffsiteTarget added in v0.2.0

type OffsiteTarget struct {
	Endpoint  string `json:"endpoint"`
	Region    string `json:"region"`
	Bucket    string `json:"bucket"`
	Prefix    string `json:"prefix"`
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"secretKey,omitempty"`
	HasSecret bool   `json:"hasSecret"`
}

type Panel

type Panel struct {
	// contains filtered or unexported fields
}

func New

func New(setupSecret, domain string, eng *docker.Engine) (*Panel, error)

func (*Panel) Handler

func (p *Panel) Handler() http.Handler

type SelfUpdateOpts

type SelfUpdateOpts struct {
	Repo     string
	Branch   string
	Commit   string
	DeployID string
}

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
}

type Worker

type Worker struct {
	ID       string `json:"id"`
	App      string `json:"app"`
	Name     string `json:"name"`
	Command  string `json:"command"`
	Replicas int    `json:"replicas"`
	Running  int    `json:"running"`
	Created  int64  `json:"created"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL