Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteSharedUser(ctx context.Context, db models.XODB, shareId int) error
- func InviteUserWithValidBody(request *http.Request, body InviteUserRequest, accountId int, tx *sql.Tx, ...) (int, interface{})
- func UpdateSharedUser(ctx context.Context, db models.XODB, shareId int, permissionLevel int) (interface{}, error)
- type InviteUserRequest
- type SharedResults
Constants ¶
View Source
const ( AdminLevel = 0 StandardLevel = 1 ReadLevel = 2 DatabaseError = "Error while getting data from database" )
Variables ¶
View Source
var ( ErrorInviteNewUser = errors.New("An error occured while inviting a new user. Please, try again.") ErrorInviteUser = errors.New("An error occured while inviting a user. Please, try again.") )
Functions ¶
func DeleteSharedUser ¶
DeleteSharedUser deletes a user access to an AWS account by removing entry in shared_account database table.
Types ¶
type InviteUserRequest ¶
type InviteUserRequest struct { Email string `json:"email" req:"nonzero"` PermissionLevel int `json:"permissionLevel"` }
inviteUserRequest is the expected request body for the invite user route handler.
type SharedResults ¶
type SharedResults struct {}
func GetSharingList ¶
GetSharingList returns a list of users who have access to a specific AWS account
Click to show internal directories.
Click to hide internal directories.