Versions in this module Expand all Collapse all v1 v1.23.4 Jan 27, 2026 v1.23.3 Jan 27, 2026 v1.23.2 Jan 26, 2026 Changes in this version + func DefaultInstanceTypes() map[CloudProvider]string + func DefaultRegions() map[CloudProvider]string + type BackupManager struct + func NewBackupManager(store storage.Storage, basePath, nodeID, nodeName, network string) *BackupManager + func (bm *BackupManager) CreateBackup(ctx context.Context, dbPath string, opts *BackupOptions) (*BackupManifest, error) + func (bm *BackupManager) DeleteBackup(ctx context.Context, backupName string) error + func (bm *BackupManager) ListBackups(ctx context.Context) ([]BackupManifest, error) + func (bm *BackupManager) RestoreBackup(ctx context.Context, backupName string, opts *RestoreOptions) error + type BackupManifest struct + BaseVersion uint64 + Checksums map[string]string + DatabaseType string + Encryption *EncryptionInfo + Incremental bool + KeyCount int + LatestVersion uint64 + Metadata map[string]string + Network string + NodeID string + NodeName string + Timestamp time.Time + Version string + WalletCount int + type BackupOptions struct + AgeRecipients []string + BaseVersion uint64 + ChunkSize int64 + Compression string + CompressionLevel int + Encryption *EncryptionInfo + Incremental bool + Metadata map[string]string + ProgressFunc func(stage string, current, total int64) + type CloudProvider string + const CloudProviderAWS + const CloudProviderAzure + const CloudProviderDigitalOcean + const CloudProviderGCP + const CloudProviderLocal + type DeploymentConfig struct + AWSProfile string + AWSSecurityGroup string + AWSSubnet string + AWSVPC string + AzureResourceGroup string + AzureSubscription string + DOSSHKeys []int + DOToken string + GCPNetwork string + GCPProject string + GCPZone string + InstanceType string + Provider CloudProvider + Region string + SSHKeyName string + SSHKeyPath string + SSHUser string + type DeploymentManager struct + func NewDeploymentManager(baseDir string) *DeploymentManager + func (d *DeploymentManager) BackupRemoteNode(ctx context.Context, networkName, nodeName, destination string) error + func (d *DeploymentManager) ConnectToNode(ctx context.Context, networkName, nodeName string) (*models.Host, error) + func (d *DeploymentManager) DeployNetwork(ctx context.Context, networkName string, cfg *DeploymentConfig) (*RemoteNetworkConfig, error) + func (d *DeploymentManager) GetRemoteNodeStatus(ctx context.Context, networkName, nodeName string) (*NodeInfo, error) + func (d *DeploymentManager) LoadDeploymentConfig(networkName string) (*RemoteNetworkConfig, error) + func (d *DeploymentManager) RunCommandOnNode(ctx context.Context, host *models.Host, command string, timeout time.Duration) ([]byte, error) + func (d *DeploymentManager) StartRemoteNode(ctx context.Context, networkName, nodeName string) error + func (d *DeploymentManager) StopRemoteNode(ctx context.Context, networkName, nodeName string) error + func (d *DeploymentManager) UnlockNodeKeys(ctx context.Context, networkName, nodeName string, ageIdentityPath string) error + type EncryptionInfo struct + Algorithm string + KeyID string + Recipients []string + type NetworkConfig struct + BaseDir string + Created time.Time + NetworkID string + NetworkName string + NetworkType string + Nodes []*NodeConfig + Threshold int + TotalNodes int + type NodeConfig struct + APIPort int + Created time.Time + DataDir string + KeysDir string + ListenAddr string + LogLevel string + Network string + NodeID string + NodeIndex int + NodeName string + P2PPort int + Peers []string + Threshold int + TotalNodes int + type NodeInfo struct + Config *NodeConfig + Endpoint string + Error string + PID int + StartTime time.Time + Status NodeStatus + Uptime string + type NodeManager struct + func NewNodeManager(baseDir string) *NodeManager + func (m *NodeManager) BaseDir() string + func (m *NodeManager) DeleteNetwork(ctx context.Context, networkName string, force bool) error + func (m *NodeManager) GetNetworkStatus(networkName string) ([]*NodeInfo, error) + func (m *NodeManager) GetNodeStatus(nodeName string) (*NodeInfo, error) + func (m *NodeManager) InitNetwork(ctx context.Context, networkType string, threshold, totalNodes int) (*NetworkConfig, error) + func (m *NodeManager) ListNetworks() ([]*NetworkConfig, error) + func (m *NodeManager) LoadNetworkConfig(networkName string) (*NetworkConfig, error) + func (m *NodeManager) StartNetwork(ctx context.Context, networkName string) error + func (m *NodeManager) StartNode(ctx context.Context, cfg *NodeConfig) error + func (m *NodeManager) StopNetwork(ctx context.Context, networkName string) error + func (m *NodeManager) StopNode(ctx context.Context, nodeName string) error + type NodeStatus string + const NodeStatusError + const NodeStatusRunning + const NodeStatusStarting + const NodeStatusStopped + type RemoteNetworkConfig struct + DeployedAt time.Time + Deployment *DeploymentConfig + NetworkConfig *NetworkConfig + Nodes []*RemoteNode + type RemoteNode struct + DeployedAt time.Time + Host *models.Host + InstanceID string + KeyEncrypted bool + NodeConfig *NodeConfig + PrivateIP string + Provider CloudProvider + PublicIP string + Region string + Status NodeStatus + type RestoreOptions struct + AgeIdentities []string + ProgressFunc func(stage string, current, total int64) + TargetPath string + VerifyOnly bool