Documentation ¶
Index ¶
- 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 AddSSHKeyRequest
- type AdminRouter
- type AuthenticateRequestBody
- type BootstrapFacts
- type BootstrapResponse
- type CreateMasterKeyRequestBody
- type CreateSourceRequest
- type InitialSystemBootstrapRequestBody
- type InstallPupRequest
- type InstallToDiskRequest
- type InternalRouter
- type Session
- type SetHostnameRequestBody
- type SetKeyMapRequestBody
- type SetSSHStateRequest
- type SetStorageDeviceRequestBody
- type StoreListSourceEntry
- type StoreListSourceEntryPup
- type WSCONN
- type WSRelay
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 BootstrapFacts struct { InstallationMode dogeboxd.BootstrapInstallationMode `json:"installationMode"` HasGeneratedKey bool `json:"hasGeneratedKey"` HasConfiguredNetwork bool `json:"hasConfiguredNetwork"` HasCompletedInitialConfiguration bool `json:"hasCompletedInitialConfiguration"` }
type BootstrapResponse ¶
type BootstrapResponse struct { 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"` SetupFacts BootstrapFacts `json:"setupFacts"` }
type CreateMasterKeyRequestBody ¶
type CreateMasterKeyRequestBody struct {
Password string `json:"password"`
}
type CreateSourceRequest ¶
type CreateSourceRequest struct {
Location string `json:"location"`
}
type InstallPupRequest ¶
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 SetHostnameRequestBody ¶
type SetHostnameRequestBody struct {
Hostname string `json:"hostname"`
}
type SetKeyMapRequestBody ¶
type SetKeyMapRequestBody struct {
KeyMap string `json:"keyMap"`
}
type SetSSHStateRequest ¶
type SetSSHStateRequest struct {
Enabled string `json:"enabled"`
}
type SetStorageDeviceRequestBody ¶
type SetStorageDeviceRequestBody struct {
StorageDevice string `json:"storageDevice"`
}
type StoreListSourceEntry ¶
type StoreListSourceEntryPup ¶
type StoreListSourceEntryPup struct { LatestVersion string `json:"latestVersion"` LogoBase64 string `json:"logoBase64"` Versions map[string]dogeboxd.PupManifest `json:"versions"` }
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 ¶
Click to show internal directories.
Click to hide internal directories.