Documentation
¶
Overview ¶
Package iam provides a portable IAM API with cross-cutting concerns.
Index ¶
- type IAM
- 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) 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) 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) 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) ListAttachedRolePolicies(ctx context.Context, roleName string) ([]string, error)
- func (i *IAM) ListAttachedUserPolicies(ctx context.Context, userName string) ([]string, 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)
- 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) AttachRolePolicy ¶
func (*IAM) AttachUserPolicy ¶
func (*IAM) CheckPermission ¶
func (*IAM) CreatePolicy ¶
func (i *IAM) CreatePolicy(ctx context.Context, config driver.PolicyConfig) (*driver.PolicyInfo, error)
func (*IAM) CreateRole ¶
func (*IAM) CreateUser ¶
func (*IAM) DetachRolePolicy ¶
func (*IAM) DetachUserPolicy ¶
func (*IAM) ListAttachedRolePolicies ¶
func (*IAM) ListAttachedUserPolicies ¶
func (*IAM) ListPolicies ¶
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.