Documentation ¶
Index ¶
- Constants
- Variables
- func ValidateActionName(name string) error
- func ValidateArn(name string) error
- func ValidateAuthEntityID(name string) error
- func ValidateStatementEffect(effect string) error
- type Credential
- type CredentialKeys
- type Group
- type PaginationParams
- type Paginator
- type Policy
- type Statement
- type Statements
- type SuperuserConfiguration
- type User
Constants ¶
View Source
const ( StatementEffectAllow = "allow" StatementEffectDeny = "deny" )
Variables ¶
View Source
var ( ErrValidationError = errors.New("validation error") EntityIDRegexp = regexp.MustCompile(`^[\w+=.,@\-]{1,127}$`) )
View Source
var (
ErrInvalidStatementSrcFormat = errors.New("invalid statements src format")
)
Functions ¶
func ValidateActionName ¶
func ValidateArn ¶
func ValidateAuthEntityID ¶
func ValidateStatementEffect ¶
Types ¶
type Credential ¶
type CredentialKeys ¶
type CredentialKeys struct { AccessKeyID string `json:"access_key_id"` SecretAccessKey string `json:"secret_access_key"` }
For JSON serialization:
type PaginationParams ¶
type Policy ¶
type Policy struct { ID int `db:"id"` CreatedAt time.Time `db:"created_at"` DisplayName string `db:"display_name" json:"display_name"` Statement Statements `db:"statement"` }
type Statements ¶
type Statements []Statement
func (*Statements) Scan ¶
func (s *Statements) Scan(src interface{}) error
type SuperuserConfiguration ¶
SuperuserConfiguration requests a particular configuration for a superuser.
Click to show internal directories.
Click to hide internal directories.