data

package
v0.0.0-...-d252298 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPemKey

func AddPemKey(runId string, key []byte) error

func CloseDatabes

func CloseDatabes()

func CreateProfile

func CreateProfile(profile *tinycloud.Profile) error

save new profile to db returns an error if profile with the same name already exists

func DeleteProfile

func DeleteProfile(profileName string) error

deletes profile and settings, if profile dose not exists it returns an error

func DeleteRuns

func DeleteRuns(runIds []string) error

func DoseProfileExists

func DoseProfileExists(profileName string) (bool, error)

func GetActiveProfile

func GetActiveProfile() (*tinycloud.Profile, error)

returns account which is marked as active or if non returns newest account

func GetAllRunIds

func GetAllRunIds(profileName string) ([]string, error)

func GetNewRunId

func GetNewRunId(profileName string) (string, error)

func GetPemKey

func GetPemKey(runId string) ([]byte, error)

func GetProfiles

func GetProfiles() (tinycloud.Profiles, error)

return all profiles from database

func SetupDatabes

func SetupDatabes(url string) *sql.DB

func UpdateProfileToActive

func UpdateProfileToActive(profileName string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL