Documentation
¶
Overview ¶
Package iam provides a portable IAM API with cross-cutting concerns.
Index ¶
- type IAM
- func (i *IAM) AddRoleToInstanceProfile(ctx context.Context, profileName, roleName string) error
- func (i *IAM) AddUserToGroup(ctx context.Context, userName, groupName string) error
- func (i *IAM) AttachRolePolicy(ctx context.Context, roleName, policyARN string) error
- func (i *IAM) AttachUserPolicy(ctx context.Context, userName, policyARN string) error
- func (i *IAM) CheckPermission(ctx context.Context, principal, action, resource string) (bool, error)
- func (i *IAM) CreateAccessKey(ctx context.Context, config driver.AccessKeyConfig) (*driver.AccessKeyInfo, error)
- func (i *IAM) CreateGroup(ctx context.Context, config driver.GroupConfig) (*driver.GroupInfo, error)
- func (i *IAM) CreateInstanceProfile(ctx context.Context, config driver.InstanceProfileConfig) (*driver.InstanceProfileInfo, error)
- func (i *IAM) CreatePolicy(ctx context.Context, config driver.PolicyConfig) (*driver.PolicyInfo, error)
- func (i *IAM) CreateRole(ctx context.Context, config driver.RoleConfig) (*driver.RoleInfo, error)
- func (i *IAM) CreateUser(ctx context.Context, config driver.UserConfig) (*driver.UserInfo, error)
- func (i *IAM) DeleteAccessKey(ctx context.Context, userName, accessKeyID string) error
- func (i *IAM) DeleteGroup(ctx context.Context, name string) error
- func (i *IAM) DeleteInstanceProfile(ctx context.Context, name string) error
- func (i *IAM) DeletePolicy(ctx context.Context, arn string) error
- func (i *IAM) DeleteRole(ctx context.Context, name string) error
- func (i *IAM) DeleteUser(ctx context.Context, name string) error
- func (i *IAM) DetachRolePolicy(ctx context.Context, roleName, policyARN string) error
- func (i *IAM) DetachUserPolicy(ctx context.Context, userName, policyARN string) error
- func (i *IAM) GetGroup(ctx context.Context, name string) (*driver.GroupInfo, error)
- func (i *IAM) GetInstanceProfile(ctx context.Context, name string) (*driver.InstanceProfileInfo, error)
- func (i *IAM) GetPolicy(ctx context.Context, arn string) (*driver.PolicyInfo, error)
- func (i *IAM) GetRole(ctx context.Context, name string) (*driver.RoleInfo, error)
- func (i *IAM) GetUser(ctx context.Context, name string) (*driver.UserInfo, error)
- func (i *IAM) ListAccessKeys(ctx context.Context, userName string) ([]driver.AccessKeyInfo, error)
- func (i *IAM) ListAttachedRolePolicies(ctx context.Context, roleName string) ([]string, error)
- func (i *IAM) ListAttachedUserPolicies(ctx context.Context, userName string) ([]string, error)
- func (i *IAM) ListGroups(ctx context.Context) ([]driver.GroupInfo, error)
- func (i *IAM) ListGroupsForUser(ctx context.Context, userName string) ([]driver.GroupInfo, error)
- func (i *IAM) ListInstanceProfiles(ctx context.Context) ([]driver.InstanceProfileInfo, error)
- func (i *IAM) ListPolicies(ctx context.Context) ([]driver.PolicyInfo, error)
- func (i *IAM) ListRoles(ctx context.Context) ([]driver.RoleInfo, error)
- func (i *IAM) ListUsers(ctx context.Context) ([]driver.UserInfo, error)
- func (i *IAM) RemoveRoleFromInstanceProfile(ctx context.Context, profileName, roleName string) error
- func (i *IAM) RemoveUserFromGroup(ctx context.Context, userName, groupName string) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAM ¶
type IAM struct {
// contains filtered or unexported fields
}
IAM is the portable IAM type wrapping a driver.
func (*IAM) AddRoleToInstanceProfile ¶ added in v1.4.0
func (*IAM) AddUserToGroup ¶ added in v1.3.2
func (*IAM) AttachRolePolicy ¶
func (*IAM) AttachUserPolicy ¶
func (*IAM) CheckPermission ¶
func (*IAM) CreateAccessKey ¶ added in v1.3.2
func (i *IAM) CreateAccessKey(ctx context.Context, config driver.AccessKeyConfig) (*driver.AccessKeyInfo, error)
func (*IAM) CreateGroup ¶ added in v1.3.2
func (*IAM) CreateInstanceProfile ¶ added in v1.4.0
func (i *IAM) CreateInstanceProfile( ctx context.Context, config driver.InstanceProfileConfig, ) (*driver.InstanceProfileInfo, error)
func (*IAM) CreatePolicy ¶
func (i *IAM) CreatePolicy(ctx context.Context, config driver.PolicyConfig) (*driver.PolicyInfo, error)
func (*IAM) CreateRole ¶
func (*IAM) CreateUser ¶
func (*IAM) DeleteAccessKey ¶ added in v1.3.2
func (*IAM) DeleteGroup ¶ added in v1.3.2
func (*IAM) DeleteInstanceProfile ¶ added in v1.4.0
func (*IAM) DetachRolePolicy ¶
func (*IAM) DetachUserPolicy ¶
func (*IAM) GetInstanceProfile ¶ added in v1.4.0
func (*IAM) ListAccessKeys ¶ added in v1.3.2
func (*IAM) ListAttachedRolePolicies ¶
func (*IAM) ListAttachedUserPolicies ¶
func (*IAM) ListGroups ¶ added in v1.3.2
func (*IAM) ListGroupsForUser ¶ added in v1.3.2
func (*IAM) ListInstanceProfiles ¶ added in v1.4.0
func (*IAM) ListPolicies ¶
func (*IAM) RemoveRoleFromInstanceProfile ¶ added in v1.4.0
type Option ¶
type Option func(*IAM)
func WithErrorInjection ¶
func WithLatency ¶
func WithMetrics ¶
func WithRateLimiter ¶
func WithRecorder ¶
Click to show internal directories.
Click to hide internal directories.