Documentation
¶
Index ¶
- Variables
- 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 CreateMasterKeyRequestBody
- type CreateSourceRequest
- type InitialSystemBootstrapRequestBody
- type InstallPupCollectionRequest
- type InstallPupRequest
- type InstallPupsRequest
- type InstallToDiskRequest
- type InternalRouter
- type RecoveryFacts
- type Session
- type SetHostnameRequestBody
- type SetKeyMapRequestBody
- type SetSSHStateRequest
- type SetStorageDeviceRequestBody
- type StoreListSourceEntry
- type StoreListSourceEntryPup
- 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 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 {
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"`
}
type CollectionPup ¶
CollectionPup represents a pup that belongs to a collection
type CreateMasterKeyRequestBody ¶
type CreateMasterKeyRequestBody struct {
Password string `json:"password"`
}
type CreateSourceRequest ¶
type CreateSourceRequest struct {
Location string `json:"location"`
}
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 RecoveryFacts ¶
type RecoveryFacts struct {
InstallationBootMedia dogeboxd.BootstrapInstallationBootMedia `json:"installationBootMedia"`
InstallationState dogeboxd.BootstrapInstallationState `json:"installationState"`
}
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 StoreListSourceEntry ¶
type StoreListSourceEntryPup ¶
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.