Documentation ¶
Overview ¶
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Package models contains the types for schema 'trackit'.
Index ¶
- Variables
- 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
- 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
- type AwsAccountDueUpdate
- type AwsAccountMasterReportsJob
- 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
- 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
- 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
- type AwsAccountUpdateJob
- 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
- 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
- type AwsBillUpdateJob
- 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
- type EmailedAnomaly
- 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
- 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
- type SharedAccount
- 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
- type Slice
- type StringSlice
- type User
- type XODB
Constants ¶
This section is empty.
Variables ¶
var XOLog = func(string, ...interface{}) {}
XOLog provides the log func used by generated queries.
Functions ¶
func DeleteExpiredForgottenPassword ¶
DeleteExpiredForgottenPassword deletes the ForgottenPassword that are older than the date parameter
func GetLatestAccountsBillRepositoriesStatus ¶
func GetLatestAccountsBillRepositoriesStatus(db XODB, billRepositoriesIds []int) (map[int]AwsAccountStatus, error)
GetLatestAccountsBillRepositoriesStatus retrieves the most recent job row from 'trackit.aws_bill_update_job' as a AwsAccountStatus.
Types ¶
type AnomalySnoozing ¶
type AnomalySnoozing struct { ID int `json:"id"` // id UserID int `json:"user_id"` // user_id AnomalyID string `json:"anomaly_id"` // anomaly_id // contains filtered or unexported fields }
AnomalySnoozing represents a row from 'trackit.anomaly_snoozing'.
func AnomalySnoozingByID ¶
func AnomalySnoozingByID(db XODB, id int) (*AnomalySnoozing, error)
AnomalySnoozingByID retrieves a row from 'trackit.anomaly_snoozing' as a AnomalySnoozing.
Generated from index 'anomaly_snoozing_id_pkey'.
func AnomalySnoozingByUserIDAnomalyID ¶
func AnomalySnoozingByUserIDAnomalyID(db XODB, userID int, anomalyID string) (*AnomalySnoozing, error)
AnomalySnoozingByUserIDAnomalyID retrieves a row from 'trackit.anomaly_snoozing' as a AnomalySnoozing.
Generated from index 'user_id'.
func AnomalySnoozingsByUserID ¶
func AnomalySnoozingsByUserID(db XODB, userID int) ([]*AnomalySnoozing, error)
func (*AnomalySnoozing) Delete ¶
func (as *AnomalySnoozing) Delete(db XODB) error
Delete deletes the AnomalySnoozing from the database.
func (*AnomalySnoozing) Deleted ¶
func (as *AnomalySnoozing) Deleted() bool
Deleted provides information if the AnomalySnoozing has been deleted from the database.
func (*AnomalySnoozing) Exists ¶
func (as *AnomalySnoozing) Exists() bool
Exists determines if the AnomalySnoozing exists in the database.
func (*AnomalySnoozing) Insert ¶
func (as *AnomalySnoozing) Insert(db XODB) error
Insert inserts the AnomalySnoozing to the database.
func (*AnomalySnoozing) Save ¶
func (as *AnomalySnoozing) Save(db XODB) error
Save saves the AnomalySnoozing to the database.
func (*AnomalySnoozing) Update ¶
func (as *AnomalySnoozing) Update(db XODB) error
Update updates the AnomalySnoozing in the database.
type AwsAccount ¶
type AwsAccount struct { ID int `json:"id"` // id UserID int `json:"user_id"` // user_id Pretty string `json:"pretty"` // pretty RoleArn string `json:"role_arn"` // role_arn External string `json:"external"` // external NextUpdate time.Time `json:"next_update"` // next_update Payer bool `json:"payer"` // payer NextUpdatePlugins time.Time `json:"next_update_plugins"` // next_update_plugins AwsIdentity string `json:"aws_identity"` // aws_identity ParentID sql.NullInt64 `json:"parent_id"` // parent_id LastSpreadsheetReportGeneration time.Time `json:"last_spreadsheet_report_generation"` // last_spreadsheet_report_generation NextSpreadsheetReportGeneration time.Time `json:"next_spreadsheet_report_generation"` // next_spreadsheet_report_generation NextUpdateAnomaliesDetection time.Time `json:"next_update_anomalies_detection"` // next_update_anomalies_detection LastAnomaliesUpdate time.Time `json:"last_anomalies_update"` // last_anomalies_update LastMasterSpreadsheetReportGeneration time.Time `json:"last_master_spreadsheet_report_generation"` // last_master_spreadsheet_report_generation NextMasterSpreadsheetReportGeneration time.Time `json:"next_master_spreadsheet_report_generation"` // next_master_spreadsheet_report_generation // contains filtered or unexported fields }
AwsAccount represents a row from 'trackit.aws_account'.
func AwsAccountByID ¶
func AwsAccountByID(db XODB, id int) (*AwsAccount, error)
AwsAccountByID retrieves a row from 'trackit.aws_account' as a AwsAccount.
Generated from index 'aws_account_id_pkey'.
func AwsAccounts ¶
func AwsAccounts(db XODB) ([]*AwsAccount, error)
AwsAccounts returns the set of aws account
func AwsAccountsByParentId ¶
func AwsAccountsByParentId(db XODB, parentID int) ([]*AwsAccount, error)
func AwsAccountsByUserID ¶
func AwsAccountsByUserID(db XODB, userID int) ([]*AwsAccount, error)
AwsAccountsByUserID retrieves a row from 'trackit.aws_account' as a AwsAccount.
Generated from index 'foreign_user'.
func (*AwsAccount) Delete ¶
func (aa *AwsAccount) Delete(db XODB) error
Delete deletes the AwsAccount from the database.
func (*AwsAccount) Deleted ¶
func (aa *AwsAccount) Deleted() bool
Deleted provides information if the AwsAccount has been deleted from the database.
func (*AwsAccount) Exists ¶
func (aa *AwsAccount) Exists() bool
Exists determines if the AwsAccount exists in the database.
func (*AwsAccount) Insert ¶
func (aa *AwsAccount) Insert(db XODB) error
Insert inserts the AwsAccount to the database.
func (*AwsAccount) Save ¶
func (aa *AwsAccount) Save(db XODB) error
Save saves the AwsAccount to the database.
func (*AwsAccount) Update ¶
func (aa *AwsAccount) Update(db XODB) error
Update updates the AwsAccount in the database.
type AwsAccountDueUpdate ¶
type AwsAccountDueUpdate struct { ID int `json:"id"` // id UserID int `json:"user_id"` // user_id Pretty string `json:"pretty"` // pretty RoleArn string `json:"role_arn"` // role_arn External string `json:"external"` // external NextUpdate time.Time `json:"next_update"` // next_update Payer bool `json:"payer"` // payer NextUpdatePlugins time.Time `json:"next_update_plugins"` // next_update_plugins AwsIdentity string `json:"aws_identity"` // aws_identity ParentID sql.NullInt64 `json:"parent_id"` // parent_id LastSpreadsheetReportGeneration time.Time `json:"last_spreadsheet_report_generation"` // last_spreadsheet_report_generation NextSpreadsheetReportGeneration time.Time `json:"next_spreadsheet_report_generation"` // next_spreadsheet_report_generation NextUpdateAnomaliesDetection time.Time `json:"next_update_anomalies_detection"` // next_update_anomalies_detection LastAnomaliesUpdate time.Time `json:"last_anomalies_update"` // last_anomalies_update }
AwsAccountDueUpdate represents a row from 'trackit.aws_account_due_update'.
type AwsAccountMasterReportsJob ¶
type AwsAccountMasterReportsJob struct { ID int `json:"id"` // id AwsAccountID int `json:"aws_account_id"` // aws_account_id Completed time.Time `json:"completed"` // completed WorkerID string `json:"worker_id"` // worker_id Joberror string `json:"jobError"` // jobError Spreadsheeterror string `json:"spreadsheetError"` // spreadsheetError Costdifferror string `json:"costDiffError"` // costDiffError Ec2usagereporterror string `json:"ec2UsageReportError"` // ec2UsageReportError Rdsusagereporterror string `json:"rdsUsageReportError"` // rdsUsageReportError Esusagereporterror string `json:"esUsageReportError"` // esUsageReportError Elasticacheusagereporterror string `json:"elasticacheUsageReportError"` // elasticacheUsageReportError Lambdausagereporterror string `json:"lambdaUsageReportError"` // lambdaUsageReportError // contains filtered or unexported fields }
AwsAccountMasterReportsJob represents a row from 'trackit.aws_account_master_reports_job'.
func AwsAccountMasterReportsJobByID ¶
func AwsAccountMasterReportsJobByID(db XODB, id int) (*AwsAccountMasterReportsJob, error)
AwsAccountMasterReportsJobByID retrieves a row from 'trackit.aws_account_master_reports_job' as a AwsAccountMasterReportsJob.
Generated from index 'aws_account_master_reports_job_id_pkey'.
func AwsAccountMasterReportsJobsByAwsAccountID ¶
func AwsAccountMasterReportsJobsByAwsAccountID(db XODB, awsAccountID int) ([]*AwsAccountMasterReportsJob, error)
AwsAccountMasterReportsJobsByAwsAccountID retrieves a row from 'trackit.aws_account_master_reports_job' as a AwsAccountMasterReportsJob.
Generated from index 'foreign_aws_account'.
func (*AwsAccountMasterReportsJob) AwsAccount ¶
func (aamrj *AwsAccountMasterReportsJob) AwsAccount(db XODB) (*AwsAccount, error)
AwsAccount returns the AwsAccount associated with the AwsAccountMasterReportsJob's AwsAccountID (aws_account_id).
Generated from foreign key 'aws_account_master_reports_job_ibfk_1'.
func (*AwsAccountMasterReportsJob) Delete ¶
func (aamrj *AwsAccountMasterReportsJob) Delete(db XODB) error
Delete deletes the AwsAccountMasterReportsJob from the database.
func (*AwsAccountMasterReportsJob) Deleted ¶
func (aamrj *AwsAccountMasterReportsJob) Deleted() bool
Deleted provides information if the AwsAccountMasterReportsJob has been deleted from the database.
func (*AwsAccountMasterReportsJob) Exists ¶
func (aamrj *AwsAccountMasterReportsJob) Exists() bool
Exists determines if the AwsAccountMasterReportsJob exists in the database.
func (*AwsAccountMasterReportsJob) Insert ¶
func (aamrj *AwsAccountMasterReportsJob) Insert(db XODB) error
Insert inserts the AwsAccountMasterReportsJob to the database.
func (*AwsAccountMasterReportsJob) Save ¶
func (aamrj *AwsAccountMasterReportsJob) Save(db XODB) error
Save saves the AwsAccountMasterReportsJob to the database.
func (*AwsAccountMasterReportsJob) Update ¶
func (aamrj *AwsAccountMasterReportsJob) Update(db XODB) error
Update updates the AwsAccountMasterReportsJob in the database.
type AwsAccountPluginsJob ¶
type AwsAccountPluginsJob struct { ID int `json:"id"` // id AwsAccountID int `json:"aws_account_id"` // aws_account_id Completed time.Time `json:"completed"` // completed WorkerID string `json:"worker_id"` // worker_id Joberror string `json:"jobError"` // jobError // contains filtered or unexported fields }
AwsAccountPluginsJob represents a row from 'trackit.aws_account_plugins_job'.
func AwsAccountPluginsJobByID ¶
func AwsAccountPluginsJobByID(db XODB, id int) (*AwsAccountPluginsJob, error)
AwsAccountPluginsJobByID retrieves a row from 'trackit.aws_account_plugins_job' as a AwsAccountPluginsJob.
Generated from index 'aws_account_plugins_job_id_pkey'.
func AwsAccountPluginsJobsByAwsAccountID ¶
func AwsAccountPluginsJobsByAwsAccountID(db XODB, awsAccountID int) ([]*AwsAccountPluginsJob, error)
AwsAccountPluginsJobsByAwsAccountID retrieves a row from 'trackit.aws_account_plugins_job' as a AwsAccountPluginsJob.
Generated from index 'foreign_aws_account'.
func (*AwsAccountPluginsJob) AwsAccount ¶
func (aapj *AwsAccountPluginsJob) AwsAccount(db XODB) (*AwsAccount, error)
AwsAccount returns the AwsAccount associated with the AwsAccountPluginsJob's AwsAccountID (aws_account_id).
Generated from foreign key 'aws_account_plugins_job_ibfk_1'.
func (*AwsAccountPluginsJob) Delete ¶
func (aapj *AwsAccountPluginsJob) Delete(db XODB) error
Delete deletes the AwsAccountPluginsJob from the database.
func (*AwsAccountPluginsJob) Deleted ¶
func (aapj *AwsAccountPluginsJob) Deleted() bool
Deleted provides information if the AwsAccountPluginsJob has been deleted from the database.
func (*AwsAccountPluginsJob) Exists ¶
func (aapj *AwsAccountPluginsJob) Exists() bool
Exists determines if the AwsAccountPluginsJob exists in the database.
func (*AwsAccountPluginsJob) Insert ¶
func (aapj *AwsAccountPluginsJob) Insert(db XODB) error
Insert inserts the AwsAccountPluginsJob to the database.
func (*AwsAccountPluginsJob) Save ¶
func (aapj *AwsAccountPluginsJob) Save(db XODB) error
Save saves the AwsAccountPluginsJob to the database.
func (*AwsAccountPluginsJob) Update ¶
func (aapj *AwsAccountPluginsJob) Update(db XODB) error
Update updates the AwsAccountPluginsJob in the database.
type AwsAccountReportsJob ¶
type AwsAccountReportsJob struct { ID int `json:"id"` // id AwsAccountID int `json:"aws_account_id"` // aws_account_id Completed time.Time `json:"completed"` // completed WorkerID string `json:"worker_id"` // worker_id Joberror string `json:"jobError"` // jobError Spreadsheeterror string `json:"spreadsheetError"` // spreadsheetError Costdifferror string `json:"costDiffError"` // costDiffError Ec2usagereporterror string `json:"ec2UsageReportError"` // ec2UsageReportError Rdsusagereporterror string `json:"rdsUsageReportError"` // rdsUsageReportError Esusagereporterror string `json:"esUsageReportError"` // esUsageReportError Elasticacheusagereporterror string `json:"elasticacheUsageReportError"` // elasticacheUsageReportError Lambdausagereporterror string `json:"lambdaUsageReportError"` // lambdaUsageReportError // contains filtered or unexported fields }
AwsAccountReportsJob represents a row from 'trackit.aws_account_reports_job'.
func AwsAccountReportsJobByID ¶
func AwsAccountReportsJobByID(db XODB, id int) (*AwsAccountReportsJob, error)
AwsAccountReportsJobByID retrieves a row from 'trackit.aws_account_reports_job' as a AwsAccountReportsJob.
Generated from index 'aws_account_reports_job_id_pkey'.
func AwsAccountReportsJobsByAwsAccountID ¶
func AwsAccountReportsJobsByAwsAccountID(db XODB, awsAccountID int) ([]*AwsAccountReportsJob, error)
AwsAccountReportsJobsByAwsAccountID retrieves a row from 'trackit.aws_account_reports_job' as a AwsAccountReportsJob.
Generated from index 'foreign_aws_account'.
func (*AwsAccountReportsJob) AwsAccount ¶
func (aarj *AwsAccountReportsJob) AwsAccount(db XODB) (*AwsAccount, error)
AwsAccount returns the AwsAccount associated with the AwsAccountReportsJob's AwsAccountID (aws_account_id).
Generated from foreign key 'aws_account_reports_job_ibfk_1'.
func (*AwsAccountReportsJob) Delete ¶
func (aarj *AwsAccountReportsJob) Delete(db XODB) error
Delete deletes the AwsAccountReportsJob from the database.
func (*AwsAccountReportsJob) Deleted ¶
func (aarj *AwsAccountReportsJob) Deleted() bool
Deleted provides information if the AwsAccountReportsJob has been deleted from the database.
func (*AwsAccountReportsJob) Exists ¶
func (aarj *AwsAccountReportsJob) Exists() bool
Exists determines if the AwsAccountReportsJob exists in the database.
func (*AwsAccountReportsJob) Insert ¶
func (aarj *AwsAccountReportsJob) Insert(db XODB) error
Insert inserts the AwsAccountReportsJob to the database.
func (*AwsAccountReportsJob) Save ¶
func (aarj *AwsAccountReportsJob) Save(db XODB) error
Save saves the AwsAccountReportsJob to the database.
func (*AwsAccountReportsJob) Update ¶
func (aarj *AwsAccountReportsJob) Update(db XODB) error
Update updates the AwsAccountReportsJob in the database.
type AwsAccountStatus ¶
type AwsAccountStatus struct { AwsBillRepositoryID int `json:"aws_bill_repository_id"` // aws_bill_repository_id Created time.Time `json:"created"` // created Completed time.Time `json:"completed"` // completed Error string `json:"error"` // error }
AwsAccountStatus represents a row from 'trackit.aws_account_status'.
type AwsAccountUpdateJob ¶
type AwsAccountUpdateJob struct { ID int `json:"id"` // id AwsAccountID int `json:"aws_account_id"` // aws_account_id Completed time.Time `json:"completed"` // completed WorkerID string `json:"worker_id"` // worker_id Joberror string `json:"jobError"` // jobError Rdserror string `json:"rdsError"` // rdsError Ec2error string `json:"ec2Error"` // ec2Error Historyerror string `json:"historyError"` // historyError Eserror string `json:"esError"` // esError MonthlyReportsGenerated bool `json:"monthly_reports_generated"` // monthly_reports_generated Elasticacheerror string `json:"elastiCacheError"` // elastiCacheError Lambdaerror string `json:"lambdaError"` // lambdaError Riec2error sql.NullString `json:"riEc2Error"` // riEc2Error Rirdserror string `json:"riRdsError"` // riRdsError Odtoriec2error string `json:"odToRiEc2Error"` // odToRiEc2Error // contains filtered or unexported fields }
AwsAccountUpdateJob represents a row from 'trackit.aws_account_update_job'.
func AwsAccountUpdateJobByID ¶
func AwsAccountUpdateJobByID(db XODB, id int) (*AwsAccountUpdateJob, error)
AwsAccountUpdateJobByID retrieves a row from 'trackit.aws_account_update_job' as a AwsAccountUpdateJob.
Generated from index 'aws_account_update_job_id_pkey'.
func AwsAccountUpdateJobsByAwsAccountID ¶
func AwsAccountUpdateJobsByAwsAccountID(db XODB, awsAccountID int) ([]*AwsAccountUpdateJob, error)
AwsAccountUpdateJobsByAwsAccountID retrieves a row from 'trackit.aws_account_update_job' as a AwsAccountUpdateJob.
Generated from index 'foreign_aws_account'.
func GetLatestAccountUpdateJob ¶
func GetLatestAccountUpdateJob(db XODB, accountId int) (*AwsAccountUpdateJob, error)
GetLatestAccountUpdateJob retrieves the most recent completed row from 'trackit.aws_account_update_job' as a AwsAccountUpdateJob.
func (*AwsAccountUpdateJob) AwsAccount ¶
func (aauj *AwsAccountUpdateJob) AwsAccount(db XODB) (*AwsAccount, error)
AwsAccount returns the AwsAccount associated with the AwsAccountUpdateJob's AwsAccountID (aws_account_id).
Generated from foreign key 'aws_account_update_job_ibfk_1'.
func (*AwsAccountUpdateJob) Delete ¶
func (aauj *AwsAccountUpdateJob) Delete(db XODB) error
Delete deletes the AwsAccountUpdateJob from the database.
func (*AwsAccountUpdateJob) Deleted ¶
func (aauj *AwsAccountUpdateJob) Deleted() bool
Deleted provides information if the AwsAccountUpdateJob has been deleted from the database.
func (*AwsAccountUpdateJob) Exists ¶
func (aauj *AwsAccountUpdateJob) Exists() bool
Exists determines if the AwsAccountUpdateJob exists in the database.
func (*AwsAccountUpdateJob) Insert ¶
func (aauj *AwsAccountUpdateJob) Insert(db XODB) error
Insert inserts the AwsAccountUpdateJob to the database.
func (*AwsAccountUpdateJob) Save ¶
func (aauj *AwsAccountUpdateJob) Save(db XODB) error
Save saves the AwsAccountUpdateJob to the database.
func (*AwsAccountUpdateJob) Update ¶
func (aauj *AwsAccountUpdateJob) Update(db XODB) error
Update updates the AwsAccountUpdateJob in the database.
type AwsBillRepository ¶
type AwsBillRepository struct { ID int `json:"id"` // id AwsAccountID int `json:"aws_account_id"` // aws_account_id Bucket string `json:"bucket"` // bucket Prefix string `json:"prefix"` // prefix LastImportedManifest time.Time `json:"last_imported_manifest"` // last_imported_manifest NextUpdate time.Time `json:"next_update"` // next_update Error string `json:"error"` // error // contains filtered or unexported fields }
AwsBillRepository represents a row from 'trackit.aws_bill_repository'.
func AwsBillRepositoriesByAwsAccountID ¶
func AwsBillRepositoriesByAwsAccountID(db XODB, awsAccountID int) ([]*AwsBillRepository, error)
AwsBillRepositoriesByAwsAccountID retrieves a row from 'trackit.aws_bill_repository' as a AwsBillRepository.
Generated from index 'foreign_aws_account'.
func AwsBillRepositoriesWithDueUpdate ¶
func AwsBillRepositoriesWithDueUpdate(db XODB) ([]*AwsBillRepository, error)
AwsBillRepositoriesWithDueUpdate returns the set of bill repositories with a due update.
func AwsBillRepositoryByID ¶
func AwsBillRepositoryByID(db XODB, id int) (*AwsBillRepository, error)
AwsBillRepositoryByID retrieves a row from 'trackit.aws_bill_repository' as a AwsBillRepository.
Generated from index 'aws_bill_repository_id_pkey'.
func (*AwsBillRepository) AwsAccount ¶
func (abr *AwsBillRepository) AwsAccount(db XODB) (*AwsAccount, error)
AwsAccount returns the AwsAccount associated with the AwsBillRepository's AwsAccountID (aws_account_id).
Generated from foreign key 'aws_bill_repository_ibfk_1'.
func (*AwsBillRepository) Delete ¶
func (abr *AwsBillRepository) Delete(db XODB) error
Delete deletes the AwsBillRepository from the database.
func (*AwsBillRepository) Deleted ¶
func (abr *AwsBillRepository) Deleted() bool
Deleted provides information if the AwsBillRepository has been deleted from the database.
func (*AwsBillRepository) Exists ¶
func (abr *AwsBillRepository) Exists() bool
Exists determines if the AwsBillRepository exists in the database.
func (*AwsBillRepository) Insert ¶
func (abr *AwsBillRepository) Insert(db XODB) error
Insert inserts the AwsBillRepository to the database.
func (*AwsBillRepository) Save ¶
func (abr *AwsBillRepository) Save(db XODB) error
Save saves the AwsBillRepository to the database.
func (*AwsBillRepository) Update ¶
func (abr *AwsBillRepository) Update(db XODB) error
Update updates the AwsBillRepository in the database.
func (*AwsBillRepository) UpdateUnsafe ¶
func (abr *AwsBillRepository) UpdateUnsafe(db XODB) error
UpdateUnsafe updates the BillRepository but doesn't do XO's usual checks.
type AwsBillRepositoryDueUpdate ¶
type AwsBillRepositoryDueUpdate struct { ID int `json:"id"` // id AwsAccountID int `json:"aws_account_id"` // aws_account_id Bucket string `json:"bucket"` // bucket Prefix string `json:"prefix"` // prefix LastImportedManifest time.Time `json:"last_imported_manifest"` // last_imported_manifest NextUpdate time.Time `json:"next_update"` // next_update }
AwsBillRepositoryDueUpdate represents a row from 'trackit.aws_bill_repository_due_update'.
type AwsBillUpdateJob ¶
type AwsBillUpdateJob struct { ID int `json:"id"` // id AwsBillRepositoryID int `json:"aws_bill_repository_id"` // aws_bill_repository_id Expired time.Time `json:"expired"` // expired Completed time.Time `json:"completed"` // completed WorkerID string `json:"worker_id"` // worker_id Error string `json:"error"` // error // contains filtered or unexported fields }
AwsBillUpdateJob represents a row from 'trackit.aws_bill_update_job'.
func AwsBillUpdateJobByID ¶
func AwsBillUpdateJobByID(db XODB, id int) (*AwsBillUpdateJob, error)
AwsBillUpdateJobByID retrieves a row from 'trackit.aws_bill_update_job' as a AwsBillUpdateJob.
Generated from index 'aws_bill_update_job_id_pkey'.
func AwsBillUpdateJobsByAwsBillRepositoryID ¶
func AwsBillUpdateJobsByAwsBillRepositoryID(db XODB, awsBillRepositoryID int) ([]*AwsBillUpdateJob, error)
AwsBillUpdateJobsByAwsBillRepositoryID retrieves a row from 'trackit.aws_bill_update_job' as a AwsBillUpdateJob.
Generated from index 'foreign_bill_repository'.
func LastAwsBillUpdateJobsByAwsBillRepositoryID ¶
func LastAwsBillUpdateJobsByAwsBillRepositoryID(db XODB, awsBillRepositoryID int) (*AwsBillUpdateJob, error)
LastAwsBillUpdateJobsByAwsBillRepositoryID returns the last bill update job.
func (*AwsBillUpdateJob) AwsBillRepository ¶
func (abuj *AwsBillUpdateJob) AwsBillRepository(db XODB) (*AwsBillRepository, error)
AwsBillRepository returns the AwsBillRepository associated with the AwsBillUpdateJob's AwsBillRepositoryID (aws_bill_repository_id).
Generated from foreign key 'aws_bill_update_job_ibfk_1'.
func (*AwsBillUpdateJob) Delete ¶
func (abuj *AwsBillUpdateJob) Delete(db XODB) error
Delete deletes the AwsBillUpdateJob from the database.
func (*AwsBillUpdateJob) Deleted ¶
func (abuj *AwsBillUpdateJob) Deleted() bool
Deleted provides information if the AwsBillUpdateJob has been deleted from the database.
func (*AwsBillUpdateJob) Exists ¶
func (abuj *AwsBillUpdateJob) Exists() bool
Exists determines if the AwsBillUpdateJob exists in the database.
func (*AwsBillUpdateJob) Insert ¶
func (abuj *AwsBillUpdateJob) Insert(db XODB) error
Insert inserts the AwsBillUpdateJob to the database.
func (*AwsBillUpdateJob) Save ¶
func (abuj *AwsBillUpdateJob) Save(db XODB) error
Save saves the AwsBillUpdateJob to the database.
func (*AwsBillUpdateJob) Update ¶
func (abuj *AwsBillUpdateJob) Update(db XODB) error
Update updates the AwsBillUpdateJob in the database.
type AwsPricing ¶
type AwsPricing struct { ID int `json:"id"` // id Product string `json:"product"` // product Pricing []byte `json:"pricing"` // pricing // contains filtered or unexported fields }
AwsPricing represents a row from 'trackit.aws_pricing'.
func AwsPricingByID ¶
func AwsPricingByID(db XODB, id int) (*AwsPricing, error)
AwsPricingByID retrieves a row from 'trackit.aws_pricing' as a AwsPricing.
Generated from index 'aws_pricing_id_pkey'.
func AwsPricingByProduct ¶
func AwsPricingByProduct(db XODB, product string) (*AwsPricing, error)
AwsPricingByProduct retrieves a row from 'trackit.aws_pricing' as a AwsPricing.
Generated from index 'product'.
func (*AwsPricing) Delete ¶
func (ap *AwsPricing) Delete(db XODB) error
Delete deletes the AwsPricing from the database.
func (*AwsPricing) Deleted ¶
func (ap *AwsPricing) Deleted() bool
Deleted provides information if the AwsPricing has been deleted from the database.
func (*AwsPricing) Exists ¶
func (ap *AwsPricing) Exists() bool
Exists determines if the AwsPricing exists in the database.
func (*AwsPricing) Insert ¶
func (ap *AwsPricing) Insert(db XODB) error
Insert inserts the AwsPricing to the database.
func (*AwsPricing) Save ¶
func (ap *AwsPricing) Save(db XODB) error
Save saves the AwsPricing to the database.
func (*AwsPricing) Update ¶
func (ap *AwsPricing) Update(db XODB) error
Update updates the AwsPricing in the database.
type EmailedAnomaly ¶
type EmailedAnomaly struct { ID int `json:"id"` // id AwsAccountID int `json:"aws_account_id"` // aws_account_id Product string `json:"product"` // product Recipient string `json:"recipient"` // recipient Date time.Time `json:"date"` // date // contains filtered or unexported fields }
EmailedAnomaly represents a row from 'trackit.emailed_anomaly'.
func EmailedAnomaliesByAwsAccountID ¶
func EmailedAnomaliesByAwsAccountID(db XODB, awsAccountID int) ([]*EmailedAnomaly, error)
EmailedAnomaliesByAwsAccountID retrieves a row from 'trackit.emailed_anomaly' as a EmailedAnomaly.
Generated from index 'foreign_aws_account'.
func EmailedAnomalyByID ¶
func EmailedAnomalyByID(db XODB, id int) (*EmailedAnomaly, error)
EmailedAnomalyByID retrieves a row from 'trackit.emailed_anomaly' as a EmailedAnomaly.
Generated from index 'emailed_anomaly_id_pkey'.
func (*EmailedAnomaly) AwsAccount ¶
func (ea *EmailedAnomaly) AwsAccount(db XODB) (*AwsAccount, error)
AwsAccount returns the AwsAccount associated with the EmailedAnomaly's AwsAccountID (aws_account_id).
Generated from foreign key 'emailed_anomaly_ibfk_1'.
func (*EmailedAnomaly) Delete ¶
func (ea *EmailedAnomaly) Delete(db XODB) error
Delete deletes the EmailedAnomaly from the database.
func (*EmailedAnomaly) Deleted ¶
func (ea *EmailedAnomaly) Deleted() bool
Deleted provides information if the EmailedAnomaly has been deleted from the database.
func (*EmailedAnomaly) Exists ¶
func (ea *EmailedAnomaly) Exists() bool
Exists determines if the EmailedAnomaly exists in the database.
func (*EmailedAnomaly) Insert ¶
func (ea *EmailedAnomaly) Insert(db XODB) error
Insert inserts the EmailedAnomaly to the database.
func (*EmailedAnomaly) Save ¶
func (ea *EmailedAnomaly) Save(db XODB) error
Save saves the EmailedAnomaly to the database.
func (*EmailedAnomaly) Update ¶
func (ea *EmailedAnomaly) Update(db XODB) error
Update updates the EmailedAnomaly in the database.
type ForgottenPassword ¶
type ForgottenPassword struct { ID int `json:"id"` // id Created time.Time `json:"created"` // created UserID int `json:"user_id"` // user_id Token string `json:"token"` // token // contains filtered or unexported fields }
ForgottenPassword represents a row from 'trackit.forgotten_password'.
func ForgottenPasswordByID ¶
func ForgottenPasswordByID(db XODB, id int) (*ForgottenPassword, error)
ForgottenPasswordByID retrieves a row from 'trackit.forgotten_password' as a ForgottenPassword.
Generated from index 'forgotten_password_id_pkey'.
func ForgottenPasswordsByUserID ¶
func ForgottenPasswordsByUserID(db XODB, userID int) ([]*ForgottenPassword, error)
ForgottenPasswordsByUserID retrieves a row from 'trackit.forgotten_password' as a ForgottenPassword.
Generated from index 'foreign_user'.
func (*ForgottenPassword) Delete ¶
func (fp *ForgottenPassword) Delete(db XODB) error
Delete deletes the ForgottenPassword from the database.
func (*ForgottenPassword) Deleted ¶
func (fp *ForgottenPassword) Deleted() bool
Deleted provides information if the ForgottenPassword has been deleted from the database.
func (*ForgottenPassword) Exists ¶
func (fp *ForgottenPassword) Exists() bool
Exists determines if the ForgottenPassword exists in the database.
func (*ForgottenPassword) Insert ¶
func (fp *ForgottenPassword) Insert(db XODB) error
Insert inserts the ForgottenPassword to the database.
func (*ForgottenPassword) Save ¶
func (fp *ForgottenPassword) Save(db XODB) error
Save saves the ForgottenPassword to the database.
func (*ForgottenPassword) Update ¶
func (fp *ForgottenPassword) Update(db XODB) error
Update updates the ForgottenPassword in the database.
type ScannerValuer ¶
ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
type SharedAccount ¶
type SharedAccount struct { // contains filtered or unexported fields }
SharedAccount represents a row from 'trackit.shared_account'.
func SharedAccountByID ¶
func SharedAccountByID(db XODB, id int) (*SharedAccount, error)
SharedAccountByID retrieves a row from 'trackit.shared_account' as a SharedAccount.
Generated from index 'shared_account_id_pkey'.
func SharedAccountsByAccountID ¶
func SharedAccountsByAccountID(db XODB, accountID int) ([]*SharedAccount, error)
SharedAccountsByAccountID retrieves a row from 'trackit.shared_account' as a SharedAccount.
Generated from index 'foreign_aws_account'.
func SharedAccountsByUserID ¶
func SharedAccountsByUserID(db XODB, userID int) ([]*SharedAccount, error)
SharedAccountsByUserID retrieves a row from 'trackit.shared_account' as a SharedAccount.
Generated from index 'foreign_user_id'.
func (*SharedAccount) AwsAccount ¶
func (sa *SharedAccount) AwsAccount(db XODB) (*AwsAccount, error)
AwsAccount returns the AwsAccount associated with the SharedAccount's AccountID (account_id).
Generated from foreign key 'shared_account_ibfk_1'.
func (*SharedAccount) Delete ¶
func (sa *SharedAccount) Delete(db XODB) error
Delete deletes the SharedAccount from the database.
func (*SharedAccount) Deleted ¶
func (sa *SharedAccount) Deleted() bool
Deleted provides information if the SharedAccount has been deleted from the database.
func (*SharedAccount) Exists ¶
func (sa *SharedAccount) Exists() bool
Exists determines if the SharedAccount exists in the database.
func (*SharedAccount) Insert ¶
func (sa *SharedAccount) Insert(db XODB) error
Insert inserts the SharedAccount to the database.
func (*SharedAccount) Save ¶
func (sa *SharedAccount) Save(db XODB) error
Save saves the SharedAccount to the database.
func (*SharedAccount) Update ¶
func (sa *SharedAccount) Update(db XODB) error
Update updates the SharedAccount in the database.
type SharedAccountWithRole ¶
type SharedAccountWithRole struct {}
SharedAccountWithRole represent a row from 'trackit.shared_account' joined with the role_arn from 'trackit.aws_account'
func SharedAccountsWithRoleByUserID ¶
func SharedAccountsWithRoleByUserID(db XODB, userID int) ([]*SharedAccountWithRole, error)
SharedAccountsWithRoleByUserID returns all the shared accounts and their role arn for a user
type StringSlice ¶
type StringSlice []string
StringSlice is a slice of strings.
func (*StringSlice) Scan ¶
func (ss *StringSlice) Scan(src interface{}) error
Scan satisfies the sql.Scanner interface for StringSlice.
type User ¶
type User struct { ID int `json:"id"` // id Email string `json:"email"` // email Auth string `json:"auth"` // auth NextExternal sql.NullString `json:"next_external"` // next_external ParentUserID sql.NullInt64 `json:"parent_user_id"` // parent_user_id AwsCustomerIdentifier string `json:"aws_customer_identifier"` // aws_customer_identifier AwsCustomerEntitlement bool `json:"aws_customer_entitlement"` // aws_customer_entitlement NextUpdateEntitlement time.Time `json:"next_update_entitlement"` // next_update_entitlement AnomaliesFilters []byte `json:"anomalies_filters"` // anomalies_filters // contains filtered or unexported fields }
User represents a row from 'trackit.user'.
func UserByEmail ¶
UserByEmail retrieves a row from 'trackit.user' as a User.
Generated from index 'unique_email'.
func UserByID ¶
UserByID retrieves a row from 'trackit.user' as a User.
Generated from index 'user_id_pkey'.
func UsersByParentUserID ¶
UsersByParentUserID retrieves a row from 'trackit.user' as a User.
Generated from index 'parent_user'.
type XODB ¶
type XODB interface { Exec(string, ...interface{}) (sql.Result, error) Query(string, ...interface{}) (*sql.Rows, error) QueryRow(string, ...interface{}) *sql.Row }
XODB is the common interface for database operations that can be used with types from schema 'trackit'.
This should work with database/sql.DB and database/sql.Tx.
Source Files ¶
- anomalysnoozing.go
- anomalysnoozing.xo.go
- awsaccount.go
- awsaccount.xo.go
- awsaccountdueupdate.xo.go
- awsaccountmasterreportsjob.xo.go
- awsaccountpluginsjob.xo.go
- awsaccountreportsjob.xo.go
- awsaccountstatus.go
- awsaccountstatus.xo.go
- awsaccountupdatejob.go
- awsaccountupdatejob.xo.go
- awsbillrepository.go
- awsbillrepository.xo.go
- awsbillrepositorydueupdate.xo.go
- awsbillupdatejob.go
- awsbillupdatejob.xo.go
- awspricing.xo.go
- emailedanomaly.go
- emailedanomaly.xo.go
- forgottenpassword.go
- forgottenpassword.xo.go
- sharedaccount.go
- sharedaccount.xo.go
- user.xo.go
- xo_db.xo.go