Documentation
¶
Index ¶
- Constants
- Variables
- func CloseDB()
- func GetAWSSettings() (string, string)
- func GetDefaultRegion() string
- func GetEncryptedData() (string, string)
- func GetMachineId(uuid string) int64
- func GetPasswordHash() string
- func GetRole() awsclient.AWSRole
- func GetSecurityGroupId(streamSW awsclient.StreamSoftware, region string) string
- func IsFirstRun() bool
- func IsInit() error
- type Machine
- type MachineDetail
- type MachineStatus
- type Settings
Constants ¶
View Source
const ( PENDING = iota COMPLETE ERROR CANCELED )
Variables ¶
View Source
var Engine *xorm.Engine
View Source
var KEKParams = &argon2id.Params{
Memory: 32 * 1024,
Iterations: 8,
Parallelism: 4,
SaltLength: 16,
KeyLength: 32,
}
Functions ¶
func GetAWSSettings ¶
func GetDefaultRegion ¶
func GetDefaultRegion() string
func GetEncryptedData ¶
func GetMachineId ¶
func GetPasswordHash ¶
func GetPasswordHash() string
func GetSecurityGroupId ¶
func GetSecurityGroupId(streamSW awsclient.StreamSoftware, region string) string
func IsFirstRun ¶
func IsFirstRun() bool
Types ¶
type Machine ¶
type Machine struct { Id int64 Name string Uuid string AmiId string SnapshotId string Region string AdminPassword string StreamSoftware awsclient.StreamSoftware InstanceType string Size int32 Deleted bool }
func NewMachine ¶
type MachineDetail ¶
type MachineDetail struct { Status MachineStatus `json:"status"` Uuid string `json:"uuid"` Name string `json:"name"` Region string `json:"region"` InstanceType string `json:"instanceType"` AmiId string `json:"amiId"` SnapshotId string `json:"snapshotId"` Size int32 `json:"size"` AdminPassword string `json:"adminPwd"` }
func GetMachines ¶
func GetMachines() []MachineDetail
type MachineStatus ¶
type MachineStatus = string
const ( MachineStatusOnline MachineStatus = "online" MachineStatusOffline MachineStatus = "offline" MachineStatusUnknown MachineStatus = "unknown" )
Click to show internal directories.
Click to hide internal directories.