Versions in this module Expand all Collapse all v1 v1.0.0 Jun 25, 2019 Changes in this version + const AwsAccountSelection + func AccountId() string + func GetTemporaryCredentials(aa AwsAccount, sessionName string) (*credentials.Credentials, error) + func NextExternal(r *http.Request, a routes.Arguments) (int, interface{}) + func PutSubAccounts(ctx context.Context, account AwsAccount, tx *sql.Tx) error + func ValidateAwsAccounts(awsAccounts []string) error + type AwsAccount struct + AccountOwner bool + AwsIdentity string + External string + Id int + ParentId sql.NullInt64 + Payer bool + Pretty string + RoleArn string + UserId int + UserPermission int + func AwsAccountFromDbAwsAccount(dbAwsAccount models.AwsAccount) AwsAccount + func GetAwsAccountWithId(aaid int, tx *sql.Tx) (AwsAccount, error) + func GetAwsAccountWithIdFromUser(u users.User, aaid int, tx *sql.Tx) (AwsAccount, error) + func GetAwsAccountsFromUser(u users.User, tx *sql.Tx) ([]AwsAccount, error) + func (a *AwsAccount) CreateAwsAccount(ctx context.Context, db models.XODB) error + func (a *AwsAccount) GetAwsAccountIdentity() (identity string, err error) + func (a *AwsAccount) UpdateIdentityAwsAccount(ctx context.Context, tx *sql.Tx) error + func (a *AwsAccount) UpdatePrettyAwsAccount(ctx context.Context, tx *sql.Tx) error + func (a *AwsAccount) UpdateRoleAndExternalAwsAccount(ctx context.Context, tx *sql.Tx) error + type RequireAwsAccountId struct + func (d RequireAwsAccountId) Decorate(h routes.Handler) routes.Handler