Versions in this module Expand all Collapse all v1 v1.0.0 Jun 25, 2019 Changes in this version + var XOLog = func(string, ...interface{}) + func DeleteExpiredForgottenPassword(db XODB, date time.Time) error + func GetLatestAccountsBillRepositoriesStatus(db XODB, billRepositoriesIds []int) (map[int]AwsAccountStatus, error) + func IsAnomalyAlreadyEmailed(db XODB, awsAccountId int, product string, date time.Time) (bool, error) + type AnomalySnoozing struct + AnomalyID string + ID int + UserID int + func AnomalySnoozingByID(db XODB, id int) (*AnomalySnoozing, error) + func AnomalySnoozingByUserIDAnomalyID(db XODB, userID int, anomalyID string) (*AnomalySnoozing, error) + func AnomalySnoozingsByUserID(db XODB, userID int) ([]*AnomalySnoozing, error) + func (as *AnomalySnoozing) Delete(db XODB) error + func (as *AnomalySnoozing) Deleted() bool + func (as *AnomalySnoozing) Exists() bool + func (as *AnomalySnoozing) Insert(db XODB) error + func (as *AnomalySnoozing) Save(db XODB) error + func (as *AnomalySnoozing) Update(db XODB) error + func (as *AnomalySnoozing) User(db XODB) (*User, error) + type AwsAccount struct + AwsIdentity string + External string + ID int + LastAnomaliesUpdate time.Time + LastMasterSpreadsheetReportGeneration time.Time + LastSpreadsheetReportGeneration time.Time + NextMasterSpreadsheetReportGeneration time.Time + NextSpreadsheetReportGeneration time.Time + NextUpdate time.Time + NextUpdateAnomaliesDetection time.Time + NextUpdatePlugins time.Time + ParentID sql.NullInt64 + Payer bool + Pretty string + RoleArn string + UserID int + func AwsAccountByID(db XODB, id int) (*AwsAccount, error) + func AwsAccounts(db XODB) ([]*AwsAccount, error) + func AwsAccountsByParentId(db XODB, parentID int) ([]*AwsAccount, error) + func AwsAccountsByUserID(db XODB, userID int) ([]*AwsAccount, error) + func (aa *AwsAccount) Delete(db XODB) error + func (aa *AwsAccount) Deleted() bool + func (aa *AwsAccount) Exists() bool + func (aa *AwsAccount) Insert(db XODB) error + func (aa *AwsAccount) Save(db XODB) error + func (aa *AwsAccount) Update(db XODB) error + func (aa *AwsAccount) User(db XODB) (*User, error) + type AwsAccountDueUpdate struct + AwsIdentity string + External string + ID int + LastAnomaliesUpdate time.Time + LastSpreadsheetReportGeneration time.Time + NextSpreadsheetReportGeneration time.Time + NextUpdate time.Time + NextUpdateAnomaliesDetection time.Time + NextUpdatePlugins time.Time + ParentID sql.NullInt64 + Payer bool + Pretty string + RoleArn string + UserID int + type AwsAccountMasterReportsJob struct + AwsAccountID int + Completed time.Time + Costdifferror string + Ec2usagereporterror string + Elasticacheusagereporterror string + Esusagereporterror string + ID int + Joberror string + Lambdausagereporterror string + Rdsusagereporterror string + Spreadsheeterror string + WorkerID string + func AwsAccountMasterReportsJobByID(db XODB, id int) (*AwsAccountMasterReportsJob, error) + func AwsAccountMasterReportsJobsByAwsAccountID(db XODB, awsAccountID int) ([]*AwsAccountMasterReportsJob, error) + func (aamrj *AwsAccountMasterReportsJob) AwsAccount(db XODB) (*AwsAccount, error) + func (aamrj *AwsAccountMasterReportsJob) Delete(db XODB) error + func (aamrj *AwsAccountMasterReportsJob) Deleted() bool + func (aamrj *AwsAccountMasterReportsJob) Exists() bool + func (aamrj *AwsAccountMasterReportsJob) Insert(db XODB) error + func (aamrj *AwsAccountMasterReportsJob) Save(db XODB) error + func (aamrj *AwsAccountMasterReportsJob) Update(db XODB) error + type AwsAccountPluginsJob struct + AwsAccountID int + Completed time.Time + ID int + Joberror string + WorkerID string + func AwsAccountPluginsJobByID(db XODB, id int) (*AwsAccountPluginsJob, error) + func AwsAccountPluginsJobsByAwsAccountID(db XODB, awsAccountID int) ([]*AwsAccountPluginsJob, error) + func (aapj *AwsAccountPluginsJob) AwsAccount(db XODB) (*AwsAccount, error) + func (aapj *AwsAccountPluginsJob) Delete(db XODB) error + func (aapj *AwsAccountPluginsJob) Deleted() bool + func (aapj *AwsAccountPluginsJob) Exists() bool + func (aapj *AwsAccountPluginsJob) Insert(db XODB) error + func (aapj *AwsAccountPluginsJob) Save(db XODB) error + func (aapj *AwsAccountPluginsJob) Update(db XODB) error + type AwsAccountReportsJob struct + AwsAccountID int + Completed time.Time + Costdifferror string + Ec2usagereporterror string + Elasticacheusagereporterror string + Esusagereporterror string + ID int + Joberror string + Lambdausagereporterror string + Rdsusagereporterror string + Spreadsheeterror string + WorkerID string + func AwsAccountReportsJobByID(db XODB, id int) (*AwsAccountReportsJob, error) + func AwsAccountReportsJobsByAwsAccountID(db XODB, awsAccountID int) ([]*AwsAccountReportsJob, error) + func (aarj *AwsAccountReportsJob) AwsAccount(db XODB) (*AwsAccount, error) + func (aarj *AwsAccountReportsJob) Delete(db XODB) error + func (aarj *AwsAccountReportsJob) Deleted() bool + func (aarj *AwsAccountReportsJob) Exists() bool + func (aarj *AwsAccountReportsJob) Insert(db XODB) error + func (aarj *AwsAccountReportsJob) Save(db XODB) error + func (aarj *AwsAccountReportsJob) Update(db XODB) error + type AwsAccountStatus struct + AwsBillRepositoryID int + Completed time.Time + Created time.Time + Error string + type AwsAccountUpdateJob struct + AwsAccountID int + Completed time.Time + Ec2error string + Elasticacheerror string + Eserror string + Historyerror string + ID int + Joberror string + Lambdaerror string + MonthlyReportsGenerated bool + Odtoriec2error string + Rdserror string + Riec2error sql.NullString + Rirdserror string + WorkerID string + func AwsAccountUpdateJobByID(db XODB, id int) (*AwsAccountUpdateJob, error) + func AwsAccountUpdateJobsByAwsAccountID(db XODB, awsAccountID int) ([]*AwsAccountUpdateJob, error) + func GetLatestAccountUpdateJob(db XODB, accountId int) (*AwsAccountUpdateJob, error) + func (aauj *AwsAccountUpdateJob) AwsAccount(db XODB) (*AwsAccount, error) + func (aauj *AwsAccountUpdateJob) Delete(db XODB) error + func (aauj *AwsAccountUpdateJob) Deleted() bool + func (aauj *AwsAccountUpdateJob) Exists() bool + func (aauj *AwsAccountUpdateJob) Insert(db XODB) error + func (aauj *AwsAccountUpdateJob) Save(db XODB) error + func (aauj *AwsAccountUpdateJob) Update(db XODB) error + type AwsBillRepository struct + AwsAccountID int + Bucket string + Error string + ID int + LastImportedManifest time.Time + NextUpdate time.Time + Prefix string + func AwsBillRepositoriesByAwsAccountID(db XODB, awsAccountID int) ([]*AwsBillRepository, error) + func AwsBillRepositoriesWithDueUpdate(db XODB) ([]*AwsBillRepository, error) + func AwsBillRepositoryByID(db XODB, id int) (*AwsBillRepository, error) + func (abr *AwsBillRepository) AwsAccount(db XODB) (*AwsAccount, error) + func (abr *AwsBillRepository) Delete(db XODB) error + func (abr *AwsBillRepository) Deleted() bool + func (abr *AwsBillRepository) Exists() bool + func (abr *AwsBillRepository) Insert(db XODB) error + func (abr *AwsBillRepository) Save(db XODB) error + func (abr *AwsBillRepository) Update(db XODB) error + func (abr *AwsBillRepository) UpdateUnsafe(db XODB) error + type AwsBillRepositoryDueUpdate struct + AwsAccountID int + Bucket string + ID int + LastImportedManifest time.Time + NextUpdate time.Time + Prefix string + type AwsBillUpdateJob struct + AwsBillRepositoryID int + Completed time.Time + Error string + Expired time.Time + ID int + WorkerID string + func AwsBillUpdateJobByID(db XODB, id int) (*AwsBillUpdateJob, error) + func AwsBillUpdateJobsByAwsBillRepositoryID(db XODB, awsBillRepositoryID int) ([]*AwsBillUpdateJob, error) + func LastAwsBillUpdateJobsByAwsBillRepositoryID(db XODB, awsBillRepositoryID int) (*AwsBillUpdateJob, error) + func (abuj *AwsBillUpdateJob) AwsBillRepository(db XODB) (*AwsBillRepository, error) + func (abuj *AwsBillUpdateJob) Delete(db XODB) error + func (abuj *AwsBillUpdateJob) Deleted() bool + func (abuj *AwsBillUpdateJob) Exists() bool + func (abuj *AwsBillUpdateJob) Insert(db XODB) error + func (abuj *AwsBillUpdateJob) Save(db XODB) error + func (abuj *AwsBillUpdateJob) Update(db XODB) error + type AwsPricing struct + ID int + Pricing []byte + Product string + func AwsPricingByID(db XODB, id int) (*AwsPricing, error) + func AwsPricingByProduct(db XODB, product string) (*AwsPricing, error) + func (ap *AwsPricing) Delete(db XODB) error + func (ap *AwsPricing) Deleted() bool + func (ap *AwsPricing) Exists() bool + func (ap *AwsPricing) Insert(db XODB) error + func (ap *AwsPricing) Save(db XODB) error + func (ap *AwsPricing) Update(db XODB) error + type EmailedAnomaly struct + AwsAccountID int + Date time.Time + ID int + Product string + Recipient string + func EmailedAnomaliesByAwsAccountID(db XODB, awsAccountID int) ([]*EmailedAnomaly, error) + func EmailedAnomalyByID(db XODB, id int) (*EmailedAnomaly, error) + func (ea *EmailedAnomaly) AwsAccount(db XODB) (*AwsAccount, error) + func (ea *EmailedAnomaly) Delete(db XODB) error + func (ea *EmailedAnomaly) Deleted() bool + func (ea *EmailedAnomaly) Exists() bool + func (ea *EmailedAnomaly) Insert(db XODB) error + func (ea *EmailedAnomaly) Save(db XODB) error + func (ea *EmailedAnomaly) Update(db XODB) error + type ForgottenPassword struct + Created time.Time + ID int + Token string + UserID int + func ForgottenPasswordByID(db XODB, id int) (*ForgottenPassword, error) + func ForgottenPasswordsByUserID(db XODB, userID int) ([]*ForgottenPassword, error) + func (fp *ForgottenPassword) Delete(db XODB) error + func (fp *ForgottenPassword) Deleted() bool + func (fp *ForgottenPassword) Exists() bool + func (fp *ForgottenPassword) Insert(db XODB) error + func (fp *ForgottenPassword) Save(db XODB) error + func (fp *ForgottenPassword) Update(db XODB) error + func (fp *ForgottenPassword) User(db XODB) (*User, error) + type ScannerValuer interface + type SharedAccount struct + AccountID int + ID int + SharingAccepted bool + UserID int + UserPermission int + func SharedAccountByID(db XODB, id int) (*SharedAccount, error) + func SharedAccountsByAccountID(db XODB, accountID int) ([]*SharedAccount, error) + func SharedAccountsByUserID(db XODB, userID int) ([]*SharedAccount, error) + func (sa *SharedAccount) AwsAccount(db XODB) (*AwsAccount, error) + func (sa *SharedAccount) Delete(db XODB) error + func (sa *SharedAccount) Deleted() bool + func (sa *SharedAccount) Exists() bool + func (sa *SharedAccount) Insert(db XODB) error + func (sa *SharedAccount) Save(db XODB) error + func (sa *SharedAccount) Update(db XODB) error + func (sa *SharedAccount) User(db XODB) (*User, error) + type SharedAccountWithRole struct + AccountID int + AwsIdentity string + ID int + OwnerID int + RoleArn string + SharingAccepted bool + UserID int + UserPermission int + func SharedAccountsWithRoleByUserID(db XODB, userID int) ([]*SharedAccountWithRole, error) + type Slice []ScannerValuer + type StringSlice []string + func (ss *StringSlice) Scan(src interface{}) error + func (ss StringSlice) Value() (driver.Value, error) + type User struct + AnomaliesFilters []byte + Auth string + AwsCustomerEntitlement bool + AwsCustomerIdentifier string + Email string + ID int + NextExternal sql.NullString + NextUpdateEntitlement time.Time + ParentUserID sql.NullInt64 + func UserByEmail(db XODB, email string) (*User, error) + func UserByID(db XODB, id int) (*User, error) + func UsersByParentUserID(db XODB, parentUserID sql.NullInt64) ([]*User, error) + func (u *User) Delete(db XODB) error + func (u *User) Deleted() bool + func (u *User) Exists() bool + func (u *User) Insert(db XODB) error + func (u *User) Save(db XODB) error + func (u *User) Update(db XODB) error + func (u *User) User(db XODB) (*User, error) + type XODB interface + Exec func(string, ...interface{}) (sql.Result, error) + Query func(string, ...interface{}) (*sql.Rows, error) + QueryRow func(string, ...interface{}) *sql.Row