Documentation
¶
Index ¶
- Variables
- func GetJobLogHandler(JobID string, dbx dogeboxd.Dogeboxd) (*websocket.Server, error)
- func GetLogHandler(PupID string, dbx dogeboxd.Dogeboxd) (*websocket.Server, error)
- func NewAdminRouter(config dogeboxd.ServerConfig, pm dogeboxd.PupManager) conductor.Service
- func NewInternalRouter(config dogeboxd.ServerConfig, dbx dogeboxd.Dogeboxd, pm dogeboxd.PupManager, ...) conductor.Service
- func RESTAPI(config dogeboxd.ServerConfig, sm dogeboxd.StateManager, dbx dogeboxd.Dogeboxd, ...) conductor.Service
- type AddBinaryCacheRequest
- type AddSSHKeyRequest
- type AdminRouter
- type AuthenticateRequestBody
- type BootstrapFacts
- type BootstrapFlags
- type BootstrapRecoveryResponse
- type BootstrapResponse
- type ChangePasswordRequestBody
- type CollectionPup
- type CommenceUpdateRequest
- type CreateMasterKeyRequestBody
- type CreateSourceRequest
- type GetCustomNixResponse
- type InitialSystemBootstrapRequestBody
- type InstallPupCollectionRequest
- type InstallPupRequest
- type InstallPupsRequest
- type InstallToDiskRequest
- type InternalRouter
- type PackageInfo
- type RecoveryFacts
- type SaveCustomNixRequest
- type ServiceInfo
- type ServiceStatus
- type ServicesResponse
- type Session
- type SetHostnameRequestBody
- type SetKeyMapRequestBody
- type SetSSHStateRequest
- type SetStorageDeviceRequestBody
- type SetTimezoneRequestBody
- type SidebarPreferencesResponse
- type StoreListSourceEntry
- type StoreListSourceEntryPup
- type SystemStatMetric
- type SystemStats
- type TailscaleStatus
- type UpdatesResponse
- type UpgradableRelease
- type UpgradePupRequest
- type ValidateCustomNixRequest
- type ValidateCustomNixResponse
- type WSCONN
- type WSRelay
Constants ¶
This section is empty.
Variables ¶
View Source
var FoundationPupCollections = map[string][]CollectionPup{
"core": {
{
Name: "Dogecoin Core",
Version: "0.0.7",
SourceId: "dogeorg.pups",
},
},
"essentials": {
{
Name: "Dogecoin Core",
Version: "0.0.7",
SourceId: "dogeorg.pups",
},
{
Name: "Dogenet",
Version: "0.0.2",
SourceId: "dogeorg.pups",
},
{
Name: "Dogemap",
Version: "0.0.2",
SourceId: "dogeorg.pups",
},
{
Name: "Identity",
Version: "0.0.3",
SourceId: "dogeorg.pups",
},
},
"custom": {},
}
FoundationPupCollections maps collection names to their respective pups
Functions ¶
func GetJobLogHandler ¶ added in v0.8.0
GetJobLogHandler creates a WebSocket handler for streaming job logs Uses the same log streaming mechanism as pup logs (ActionLogger)
func GetLogHandler ¶
func NewAdminRouter ¶
func NewAdminRouter(config dogeboxd.ServerConfig, pm dogeboxd.PupManager) conductor.Service
func NewInternalRouter ¶
func NewInternalRouter(config dogeboxd.ServerConfig, dbx dogeboxd.Dogeboxd, pm dogeboxd.PupManager, dkm dogeboxd.DKMManager) conductor.Service
func RESTAPI ¶
func RESTAPI( config dogeboxd.ServerConfig, sm dogeboxd.StateManager, dbx dogeboxd.Dogeboxd, pups dogeboxd.PupManager, sources dogeboxd.SourceManager, lifecycle dogeboxd.LifecycleManager, nix dogeboxd.NixManager, dkm dogeboxd.DKMManager, ws WSRelay, ) conductor.Service
Types ¶
type AddBinaryCacheRequest ¶
type AddSSHKeyRequest ¶
type AddSSHKeyRequest struct {
Key string `json:"key"`
}
type AdminRouter ¶
type AdminRouter struct {
// contains filtered or unexported fields
}
type AuthenticateRequestBody ¶
type AuthenticateRequestBody struct {
Password string `json:"password"`
}
type BootstrapFacts ¶
type BootstrapFlags ¶
type BootstrapRecoveryResponse ¶
type BootstrapRecoveryResponse struct {
RecoveryFacts RecoveryFacts `json:"recoveryFacts"`
}
type BootstrapResponse ¶
type BootstrapResponse struct {
TS int64 `json:"ts"`
Version *version.DBXVersionInfo `json:"version"`
DevMode bool `json:"devMode"`
Assets map[string]dogeboxd.PupAsset `json:"assets"`
States map[string]dogeboxd.PupState `json:"states"`
Stats map[string]dogeboxd.PupStats `json:"stats"`
Flags BootstrapFlags `json:"flags"`
SetupFacts BootstrapFacts `json:"setupFacts"`
SidebarPreferences SidebarPreferencesResponse `json:"sidebarPreferences"`
}
type CollectionPup ¶
CollectionPup represents a pup that belongs to a collection
type CommenceUpdateRequest ¶ added in v0.8.0
type CreateMasterKeyRequestBody ¶
type CreateMasterKeyRequestBody struct {
Password string `json:"password"`
}
type CreateSourceRequest ¶
type CreateSourceRequest struct {
Location string `json:"location"`
}
type GetCustomNixResponse ¶ added in v0.9.0
type InitialSystemBootstrapRequestBody ¶
type InitialSystemBootstrapRequestBody struct {
ReflectorToken string `json:"reflectorToken"`
ReflectorHost string `json:"reflectorHost"`
InitialSSHKey string `json:"initialSSHKey"`
UseFoundationOSBinaryCache bool `json:"useFoundationOSBinaryCache"`
UseFoundationPupBinaryCache bool `json:"useFoundationPupBinaryCache"`
}
type InstallPupCollectionRequest ¶
type InstallPupCollectionRequest struct {
CollectionName string `json:"collectionName"`
}
type InstallPupRequest ¶
type InstallPupsRequest ¶
type InstallPupsRequest struct {
Pups []InstallPupRequest `json:"pups"`
}
type InstallToDiskRequest ¶
type InternalRouter ¶
type InternalRouter struct {
// contains filtered or unexported fields
}
func (InternalRouter) Run ¶
func (t InternalRouter) Run(started, stopped chan bool, stop chan context.Context) error
func (InternalRouter) ServeHTTP ¶
func (t InternalRouter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PackageInfo ¶ added in v0.8.0
type PackageInfo struct {
Name string `json:"name"`
CurrentVersion string `json:"currentVersion"`
LatestUpdate string `json:"latestUpdate"`
Updates []UpgradableRelease `json:"updates"`
}
type RecoveryFacts ¶
type RecoveryFacts struct {
InstallationBootMedia dogeboxd.BootstrapInstallationBootMedia `json:"installationBootMedia"`
InstallationState dogeboxd.BootstrapInstallationState `json:"installationState"`
}
type SaveCustomNixRequest ¶ added in v0.9.0
type SaveCustomNixRequest struct {
Content string `json:"content"`
}
type ServiceInfo ¶ added in v0.9.0
type ServiceInfo struct {
ID string `json:"id"`
Name string `json:"name"`
Configured bool `json:"configured"`
Status ServiceStatus `json:"status,omitempty"`
}
ServiceInfo represents an external service's status
type ServiceStatus ¶ added in v0.9.0
type ServiceStatus struct {
IP string `json:"ip,omitempty"`
Connected bool `json:"connected"`
Hostname string `json:"hostname,omitempty"`
}
ServiceStatus holds service-specific status information
type ServicesResponse ¶ added in v0.9.0
type ServicesResponse struct {
Available []ServiceInfo `json:"available"`
}
ServicesResponse represents the list of available external services
type SetHostnameRequestBody ¶
type SetHostnameRequestBody struct {
Hostname string `json:"hostname"`
}
type SetKeyMapRequestBody ¶
type SetKeyMapRequestBody struct {
KeyMap string `json:"keyMap"`
}
type SetSSHStateRequest ¶
type SetSSHStateRequest struct {
Enabled bool `json:"enabled"`
}
type SetStorageDeviceRequestBody ¶
type SetStorageDeviceRequestBody struct {
StorageDevice string `json:"storageDevice"`
}
type SetTimezoneRequestBody ¶ added in v0.9.0
type SetTimezoneRequestBody struct {
Timezone string `json:"timezone"`
}
type SidebarPreferencesResponse ¶ added in v0.9.0
type SidebarPreferencesResponse struct {
SidebarPups []string `json:"sidebarPups"`
}
type StoreListSourceEntry ¶
type StoreListSourceEntryPup ¶
type SystemStatMetric ¶ added in v0.9.0
type SystemStats ¶ added in v0.9.0
type SystemStats struct {
CPU SystemStatMetric `json:"cpu"`
RAM SystemStatMetric `json:"ram"`
Disk SystemStatMetric `json:"disk"`
}
SystemStats represents system-level resource usage
type TailscaleStatus ¶ added in v0.9.0
type TailscaleStatus struct {
BackendState string `json:"BackendState"`
Self struct {
DNSName string `json:"DNSName"`
TailscaleIPs []string `json:"TailscaleIPs"`
Online bool `json:"Online"`
HostName string `json:"HostName"`
} `json:"Self"`
}
TailscaleStatus represents the JSON output from `tailscale status --json`
type UpdatesResponse ¶ added in v0.8.0
type UpdatesResponse struct {
Packages map[string]PackageInfo `json:"packages"`
}
type UpgradableRelease ¶ added in v0.8.0
type UpgradePupRequest ¶ added in v0.9.0
type UpgradePupRequest struct {
TargetVersion string `json:"targetVersion"`
}
UpgradePupRequest is the request body for the upgrade endpoint
type ValidateCustomNixRequest ¶ added in v0.9.0
type ValidateCustomNixRequest struct {
Content string `json:"content"`
}
type ValidateCustomNixResponse ¶ added in v0.9.0
type WSRelay ¶
type WSRelay struct {
// contains filtered or unexported fields
}
func NewWSRelay ¶
func NewWSRelay(config dogeboxd.ServerConfig, relay chan dogeboxd.Change) WSRelay
func (WSRelay) GetWSHandler ¶
Source Files
¶
- admin_router.go
- binary_caches.go
- collections.go
- custom_nix.go
- helpers.go
- hooks.go
- import_blockchain_data.go
- install.go
- jobs.go
- keys.go
- metrics.go
- monitoring.go
- network.go
- pup_router.go
- pup_updates.go
- pups.go
- rest.go
- session.go
- setup.go
- sources.go
- ssh.go
- store.go
- upgrade.go
- websocket.go
- websocket_activities.go
- websocket_logger.go
- websocket_updates.go
Click to show internal directories.
Click to hide internal directories.