Documentation ¶
Index ¶
- Constants
- func MustGetDefaultRegion() string
- type DB
- func (db *DB) AddHistoryCommand(command []string) error
- func (db *DB) AddHistoryCommandWithTime(command []string, time time.Time) error
- func (db *DB) AddLog(msg string) error
- func (db *DB) AddTemplateExecution(templ *template.TemplateExecution) error
- func (db *DB) Close()
- func (db *DB) DeleteBucket(name string) error
- func (db *DB) DeleteHistory() error
- func (db *DB) DeleteLogs() error
- func (db *DB) DeleteTemplateExecutions() error
- func (db *DB) GetBytes(key string) ([]byte, error)
- func (db *DB) GetDefault(k string) (interface{}, bool)
- func (db *DB) GetDefaultString(k string) (string, bool)
- func (db *DB) GetDefaults() (defaults, error)
- func (db *DB) GetHistory(fromID int) ([]*line, error)
- func (db *DB) GetIntValue(key string) (int, error)
- func (db *DB) GetLogs() (logs []*Log, err error)
- func (db *DB) GetStringValue(key string) (string, error)
- func (db *DB) GetTemplateExecution(id string) (*template.TemplateExecution, error)
- func (db *DB) GetTimeValue(key string) (time.Time, error)
- func (db *DB) ListTemplateExecutions() ([]*template.TemplateExecution, error)
- func (db *DB) MustGetDefaultRegion() string
- func (db *DB) SetBytes(key string, value []byte) error
- func (db *DB) SetDefault(k string, v interface{}) error
- func (db *DB) SetIntValue(key string, value int) error
- func (db *DB) SetStringValue(key, value string) error
- func (db *DB) SetTimeValue(key string, t time.Time) error
- func (db *DB) UnsetDefault(k string) error
- type Log
Constants ¶
View Source
const ( SyncAuto = "sync.auto" RegionKey = "region" InstanceTypeKey = "instance.type" InstanceImageKey = "instance.image" InstanceCountKey = "instance.count" ProfileKey = "aws.profile" )
View Source
const EXECUTIONS_BUCKET = "executions"
Variables ¶
This section is empty.
Functions ¶
func MustGetDefaultRegion ¶
func MustGetDefaultRegion() string
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
A DB stores awless config, logs...
func MustGetCurrent ¶
func MustGetCurrent() (*DB, func())
func (*DB) AddHistoryCommand ¶
AddHistoryCommand adds a command to history in database
func (*DB) AddHistoryCommandWithTime ¶
AddHistoryCommandWithTime adds a command to history in database where time can be set
func (*DB) AddTemplateExecution ¶
func (db *DB) AddTemplateExecution(templ *template.TemplateExecution) error
func (*DB) DeleteBucket ¶
DeleteBucket deletes a bucket if it exists
func (*DB) DeleteHistory ¶
DeleteHistory empties the history from database
func (*DB) DeleteLogs ¶
func (*DB) DeleteTemplateExecutions ¶
func (*DB) GetDefault ¶
func (*DB) GetDefaults ¶
func (*DB) GetHistory ¶
GetHistory gets the history from database
func (*DB) GetIntValue ¶
GetIntValue gets a int value from database
func (*DB) GetStringValue ¶
GetStringValue gets a string value from database
func (*DB) GetTemplateExecution ¶
func (db *DB) GetTemplateExecution(id string) (*template.TemplateExecution, error)
func (*DB) GetTimeValue ¶
GetTimeValue gets a time value from database
func (*DB) ListTemplateExecutions ¶
func (db *DB) ListTemplateExecutions() ([]*template.TemplateExecution, error)
func (*DB) MustGetDefaultRegion ¶
func (*DB) SetDefault ¶
func (*DB) SetIntValue ¶
SetIntValue sets a int value in database
func (*DB) SetStringValue ¶
SetStringValue sets a string value in database
func (*DB) SetTimeValue ¶
SetTimeValue sets a time value in database
func (*DB) UnsetDefault ¶
Click to show internal directories.
Click to hide internal directories.