| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- package structs
- import (
- "time"
- )
- type SessionInfo struct {
- Hash string `json:"hash"`
- Created string `json:"created"`
- }
- type SysConfig struct {
- Setup string `json:"setup"`
- EndpointUrl string `json:"endpointUrl"`
- ApiVersion string `json:"apiVersion"`
- Piers []string `json:"piers"`
- NetCheck string `json:"netCheck"`
- UpdateMode string `json:"updateMode"`
- UpdateUrl string `json:"updateUrl"`
- UpdateBranch string `json:"updateBranch"`
- SwapVal int `json:"swapVal"`
- SwapFile string `json:"swapFile"`
- KeyFile string `json:"keyFile"`
- Sessions struct {
- Authorized map[string]SessionInfo `json:"authorized"`
- Unauthorized map[string]SessionInfo `json:"unauthorized"`
- } `json:"sessions"`
- LinuxUpdates struct {
- Value int `json:"value"`
- Interval string `json:"interval"`
- Previous bool `json:"previous"`
- } `json:"linuxUpdates"`
- DockerData string `json:"dockerData"`
- WgOn bool `json:"wgOn"`
- WgRegistered bool `json:"wgRegistered"`
- PwHash string `json:"pwHash"`
- C2cInterval int `json:"c2cInterval"`
- FirstBoot bool `json:"firstBoot"`
- WgRegisterd bool `json:"wgRegisterd"`
- GsVersion string `json:"gsVersion"`
- CfgDir string `json:"CFG_DIR"`
- UpdateInterval int `json:"updateInterval"`
- BinHash string `json:"binHash"`
- Pubkey string `json:"pubkey"`
- Privkey string `json:"privkey"`
- Salt string `json:"salt"`
- }
- type LoginStatus struct {
- Locked bool
- End time.Time
- Attempts int
- }
- type LoginKeys struct {
- Old struct {
- Pub string
- Priv string
- }
- Cur struct {
- Pub string
- Priv string
- }
- }
- type Version struct {
- Groundseg struct {
- Canary Channel `json:"canary"`
- Edge Channel `json:"edge"`
- Latest Channel `json:"latest"`
- } `json:"groundseg"`
- }
- type Channel struct {
- Groundseg VersionDetails `json:"groundseg"`
- Manual VersionDetails `json:"manual"`
- Minio VersionDetails `json:"minio"`
- Miniomc VersionDetails `json:"miniomc"`
- Netdata VersionDetails `json:"netdata"`
- Vere VersionDetails `json:"vere"`
- Webui VersionDetails `json:"webui"`
- Wireguard VersionDetails `json:"wireguard"`
- }
- type VersionDetails struct {
- Amd64Sha256 string `json:"amd64_sha256"`
- Amd64URL string `json:"amd64_url,omitempty"`
- Arm64Sha256 string `json:"arm64_sha256"`
- Arm64URL string `json:"arm64_url,omitempty"`
- Major int `json:"major,omitempty"`
- Minor int `json:"minor,omitempty"`
- Patch int `json:"patch,omitempty"`
- Repo string `json:"repo,omitempty"`
- Tag string `json:"tag,omitempty"`
- }
|