Documentation
¶
Index ¶
- func MakeCreateVMRequest(clientName string) (*VM, *PrivateKey, error)
- func MakeSignUpRequest(username string, email string, password string) error
- type CreateVMForUserAccount
- type CreateVMForUserAccountResponseStruct
- type DataStore
- type MakeSignUpRequestStruct
- type PrivateKey
- type SignUpUserAccount
- type TokenDetails
- type VM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCreateVMRequest ¶
func MakeCreateVMRequest(clientName string) (*VM, *PrivateKey, error)
Types ¶
type CreateVMForUserAccount ¶
type CreateVMForUserAccount struct {
Vm VM `json:"vm"`
Pkey PrivateKey `json:"pkey"`
}
type CreateVMForUserAccountResponseStruct ¶
type CreateVMForUserAccountResponseStruct struct {
CreateVMForUserAccount CreateVMForUserAccount `json:"createVMForUserAccount"`
}
type DataStore ¶
type DataStore interface {
InitTables() error
PutVM(vm *VM) error
GetHostnameForClientname(clientname string) (string, error)
PutAuthTokens(tokenDetails TokenDetails) error
GetAuthTokens() (accessToken string, refreshToken string, accessTokenExp string, refreshTokenExp string, err error)
DeleteAuthTokens() error
}
type MakeSignUpRequestStruct ¶
type MakeSignUpRequestStruct struct {
SignUpUserAccount SignUpUserAccount `json:"signUpUserAccount"`
}
type PrivateKey ¶
type SignUpUserAccount ¶
type SignUpUserAccount struct {
Token string `json:"token"`
}
type TokenDetails ¶
Click to show internal directories.
Click to hide internal directories.