Documentation ¶
Index ¶
- func AddPemKey(runId string, key []byte) error
- func CloseDatabes()
- func CreateProfile(profile *tinycloud.Profile) error
- func DeleteProfile(profileName string) error
- func DeleteRuns(runIds []string) error
- func DoseProfileExists(profileName string) (bool, error)
- func GetActiveProfile() (*tinycloud.Profile, error)
- func GetAllRunIds(profileName string) ([]string, error)
- func GetNewRunId(profileName string) (string, error)
- func GetPemKey(runId string) ([]byte, error)
- func GetProfiles() (tinycloud.Profiles, error)
- func SetupDatabes(url string) *sql.DB
- func UpdateProfileToActive(profileName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseDatabes ¶
func CloseDatabes()
func CreateProfile ¶
save new profile to db returns an error if profile with the same name already exists
func DeleteProfile ¶
deletes profile and settings, if profile dose not exists it returns an error
func DeleteRuns ¶
func DoseProfileExists ¶
func GetActiveProfile ¶
returns account which is marked as active or if non returns newest account
func GetAllRunIds ¶
func GetNewRunId ¶
func SetupDatabes ¶
func UpdateProfileToActive ¶
if profile dose not exist, returns error else update active of all profiles to false except profile with the given name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.