Documentation ¶
Index ¶
- Variables
- type IAMUser
- func (i *IAMUser) AttachUserPolicy(userName string, policyARN string) error
- func (i *IAMUser) Create(userName string) (string, error)
- func (i *IAMUser) CreateAccessKey(userName string) (string, string, error)
- func (i *IAMUser) CreatePolicy(policyName string, effect string, action string, resource string) (string, error)
- func (i *IAMUser) Delete(userName string) error
- func (i *IAMUser) DeleteAccessKey(userName string, accessKeyID string) error
- func (i *IAMUser) DeletePolicy(policyARN string) error
- func (i *IAMUser) Describe(userName string) (UserDetails, error)
- func (i *IAMUser) DetachUserPolicy(userName string, policyARN string) error
- func (i *IAMUser) ListAccessKeys(userName string) ([]string, error)
- func (i *IAMUser) ListAttachedUserPolicies(userName string) ([]string, error)
- type User
- type UserDetails
- type UserPolicy
- type UserPolicyStatement
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserDoesNotExist = errors.New("iam user does not exist")
)
Functions ¶
This section is empty.
Types ¶
type IAMUser ¶
type IAMUser struct {
// contains filtered or unexported fields
}
func (*IAMUser) AttachUserPolicy ¶
func (*IAMUser) CreateAccessKey ¶
func (*IAMUser) CreatePolicy ¶
func (*IAMUser) DeleteAccessKey ¶
func (*IAMUser) DeletePolicy ¶
func (*IAMUser) DetachUserPolicy ¶
func (*IAMUser) ListAccessKeys ¶
type User ¶
type User interface { Describe(userName string) (UserDetails, error) Create(userName string) (string, error) Delete(userName string) error ListAccessKeys(userName string) ([]string, error) CreateAccessKey(userName string) (string, string, error) DeleteAccessKey(userName string, accessKeyID string) error CreatePolicy(policyName string, effect string, action string, resource string) (string, error) DeletePolicy(policyARN string) error ListAttachedUserPolicies(userName string) ([]string, error) AttachUserPolicy(userName string, policyARN string) error DetachUserPolicy(userName string, policyARN string) error }
type UserDetails ¶
type UserPolicy ¶
type UserPolicy struct { Version string `json:"Version"` ID string `json:"Id"` Statements []UserPolicyStatement `json:"Statement"` }
Click to show internal directories.
Click to hide internal directories.