Documentation
¶
Index ¶
Constants ¶
View Source
const ApiV1Prefix = "/api/v1"
View Source
const ServiceFile = "/etc/systemd/system/vite.service"
View Source
const (
Store = datadir.Store("certs")
)
View Source
const UptimeRegex = `(?m); (.+) ago\n`
Variables ¶
View Source
var DisableCmds = [][]string{
{"systemctl", "stop", "vite.service"},
{"systemctl", "disable", "vite.service"},
{"systemctl", "daemon-reload"},
}
View Source
var EnableCmds = [][]string{
{"systemctl", "daemon-reload"},
{"systemctl", "enable", "vite.service"},
{"systemctl", "start", "vite.service"},
}
Functions ¶
func DaemonConfig ¶
func GetAutoCert ¶
func GetAutoCert() (*tls.Certificate, error)
Types ¶
type DaemonStatus ¶
type DaemonStatus int
const ( Absent DaemonStatus = iota Running Errored )
func State ¶
func State() (DaemonStatus, string, error)
func (DaemonStatus) String ¶
func (s DaemonStatus) String() string
type Proxy ¶
func New ¶
func New(stdout io.Writer, deployment *deployment.Deployment) (*Proxy, error)
Click to show internal directories.
Click to hide internal directories.