Documentation ¶
Index ¶
- type AccessAnalyzer
- type AccessAnalyzerClient
- type AccessAnalyzers
- type AccessKey
- type AccessManagement
- type AuthDevice
- type Client
- type CredentialReport
- type MockAccessAnalyzerClient
- type MockAccessAnalyzerClient_Expecter
- type MockAccessAnalyzerClient_ListAnalyzers_Call
- func (_c *MockAccessAnalyzerClient_ListAnalyzers_Call) Return(_a0 *accessanalyzer.ListAnalyzersOutput, _a1 error) *MockAccessAnalyzerClient_ListAnalyzers_Call
- func (_c *MockAccessAnalyzerClient_ListAnalyzers_Call) Run(run func(ctx context.Context, params *accessanalyzer.ListAnalyzersInput, ...)) *MockAccessAnalyzerClient_ListAnalyzers_Call
- func (_c *MockAccessAnalyzerClient_ListAnalyzers_Call) RunAndReturn(...) *MockAccessAnalyzerClient_ListAnalyzers_Call
- type MockAccessManagement
- func (_m *MockAccessManagement) EXPECT() *MockAccessManagement_Expecter
- func (_m *MockAccessManagement) GetAccessAnalyzers(ctx context.Context) (awslib.AwsResource, error)
- func (_m *MockAccessManagement) GetIAMRolePermissions(ctx context.Context, roleName string) ([]RolePolicyInfo, error)
- func (_m *MockAccessManagement) GetPasswordPolicy(ctx context.Context) (awslib.AwsResource, error)
- func (_m *MockAccessManagement) GetPolicies(ctx context.Context) ([]awslib.AwsResource, error)
- func (_m *MockAccessManagement) GetUsers(ctx context.Context) ([]awslib.AwsResource, error)
- func (_m *MockAccessManagement) ListServerCertificates(ctx context.Context) (awslib.AwsResource, error)
- type MockAccessManagement_Expecter
- func (_e *MockAccessManagement_Expecter) GetAccessAnalyzers(ctx interface{}) *MockAccessManagement_GetAccessAnalyzers_Call
- func (_e *MockAccessManagement_Expecter) GetIAMRolePermissions(ctx interface{}, roleName interface{}) *MockAccessManagement_GetIAMRolePermissions_Call
- func (_e *MockAccessManagement_Expecter) GetPasswordPolicy(ctx interface{}) *MockAccessManagement_GetPasswordPolicy_Call
- func (_e *MockAccessManagement_Expecter) GetPolicies(ctx interface{}) *MockAccessManagement_GetPolicies_Call
- func (_e *MockAccessManagement_Expecter) GetUsers(ctx interface{}) *MockAccessManagement_GetUsers_Call
- func (_e *MockAccessManagement_Expecter) ListServerCertificates(ctx interface{}) *MockAccessManagement_ListServerCertificates_Call
- type MockAccessManagement_GetAccessAnalyzers_Call
- func (_c *MockAccessManagement_GetAccessAnalyzers_Call) Return(_a0 awslib.AwsResource, _a1 error) *MockAccessManagement_GetAccessAnalyzers_Call
- func (_c *MockAccessManagement_GetAccessAnalyzers_Call) Run(run func(ctx context.Context)) *MockAccessManagement_GetAccessAnalyzers_Call
- func (_c *MockAccessManagement_GetAccessAnalyzers_Call) RunAndReturn(run func(context.Context) (awslib.AwsResource, error)) *MockAccessManagement_GetAccessAnalyzers_Call
- type MockAccessManagement_GetIAMRolePermissions_Call
- func (_c *MockAccessManagement_GetIAMRolePermissions_Call) Return(_a0 []RolePolicyInfo, _a1 error) *MockAccessManagement_GetIAMRolePermissions_Call
- func (_c *MockAccessManagement_GetIAMRolePermissions_Call) Run(run func(ctx context.Context, roleName string)) *MockAccessManagement_GetIAMRolePermissions_Call
- func (_c *MockAccessManagement_GetIAMRolePermissions_Call) RunAndReturn(run func(context.Context, string) ([]RolePolicyInfo, error)) *MockAccessManagement_GetIAMRolePermissions_Call
- type MockAccessManagement_GetPasswordPolicy_Call
- func (_c *MockAccessManagement_GetPasswordPolicy_Call) Return(_a0 awslib.AwsResource, _a1 error) *MockAccessManagement_GetPasswordPolicy_Call
- func (_c *MockAccessManagement_GetPasswordPolicy_Call) Run(run func(ctx context.Context)) *MockAccessManagement_GetPasswordPolicy_Call
- func (_c *MockAccessManagement_GetPasswordPolicy_Call) RunAndReturn(run func(context.Context) (awslib.AwsResource, error)) *MockAccessManagement_GetPasswordPolicy_Call
- type MockAccessManagement_GetPolicies_Call
- func (_c *MockAccessManagement_GetPolicies_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockAccessManagement_GetPolicies_Call
- func (_c *MockAccessManagement_GetPolicies_Call) Run(run func(ctx context.Context)) *MockAccessManagement_GetPolicies_Call
- func (_c *MockAccessManagement_GetPolicies_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockAccessManagement_GetPolicies_Call
- type MockAccessManagement_GetUsers_Call
- func (_c *MockAccessManagement_GetUsers_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockAccessManagement_GetUsers_Call
- func (_c *MockAccessManagement_GetUsers_Call) Run(run func(ctx context.Context)) *MockAccessManagement_GetUsers_Call
- func (_c *MockAccessManagement_GetUsers_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockAccessManagement_GetUsers_Call
- type MockAccessManagement_ListServerCertificates_Call
- func (_c *MockAccessManagement_ListServerCertificates_Call) Return(_a0 awslib.AwsResource, _a1 error) *MockAccessManagement_ListServerCertificates_Call
- func (_c *MockAccessManagement_ListServerCertificates_Call) Run(run func(ctx context.Context)) *MockAccessManagement_ListServerCertificates_Call
- func (_c *MockAccessManagement_ListServerCertificates_Call) RunAndReturn(run func(context.Context) (awslib.AwsResource, error)) *MockAccessManagement_ListServerCertificates_Call
- type MockClient
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) GenerateCredentialReport(ctx context.Context, params *serviceiam.GenerateCredentialReportInput, ...) (*serviceiam.GenerateCredentialReportOutput, error)
- func (_m *MockClient) GetAccessKeyLastUsed(ctx context.Context, params *serviceiam.GetAccessKeyLastUsedInput, ...) (*serviceiam.GetAccessKeyLastUsedOutput, error)
- func (_m *MockClient) GetAccountPasswordPolicy(ctx context.Context, params *serviceiam.GetAccountPasswordPolicyInput, ...) (*serviceiam.GetAccountPasswordPolicyOutput, error)
- func (_m *MockClient) GetCredentialReport(ctx context.Context, params *serviceiam.GetCredentialReportInput, ...) (*serviceiam.GetCredentialReportOutput, error)
- func (_m *MockClient) GetPolicy(ctx context.Context, params *serviceiam.GetPolicyInput, ...) (*serviceiam.GetPolicyOutput, error)
- func (_m *MockClient) GetPolicyVersion(ctx context.Context, params *serviceiam.GetPolicyVersionInput, ...) (*serviceiam.GetPolicyVersionOutput, error)
- func (_m *MockClient) GetRole(ctx context.Context, params *serviceiam.GetRoleInput, ...) (*serviceiam.GetRoleOutput, error)
- func (_m *MockClient) GetRolePolicy(ctx context.Context, params *serviceiam.GetRolePolicyInput, ...) (*serviceiam.GetRolePolicyOutput, error)
- func (_m *MockClient) GetUserPolicy(ctx context.Context, params *serviceiam.GetUserPolicyInput, ...) (*serviceiam.GetUserPolicyOutput, error)
- func (_m *MockClient) ListAccessKeys(ctx context.Context, params *serviceiam.ListAccessKeysInput, ...) (*serviceiam.ListAccessKeysOutput, error)
- func (_m *MockClient) ListAttachedRolePolicies(ctx context.Context, params *serviceiam.ListAttachedRolePoliciesInput, ...) (*serviceiam.ListAttachedRolePoliciesOutput, error)
- func (_m *MockClient) ListAttachedUserPolicies(ctx context.Context, params *serviceiam.ListAttachedUserPoliciesInput, ...) (*serviceiam.ListAttachedUserPoliciesOutput, error)
- func (_m *MockClient) ListEntitiesForPolicy(ctx context.Context, params *serviceiam.ListEntitiesForPolicyInput, ...) (*serviceiam.ListEntitiesForPolicyOutput, error)
- func (_m *MockClient) ListMFADevices(ctx context.Context, params *serviceiam.ListMFADevicesInput, ...) (*serviceiam.ListMFADevicesOutput, error)
- func (_m *MockClient) ListPolicies(ctx context.Context, params *serviceiam.ListPoliciesInput, ...) (*serviceiam.ListPoliciesOutput, error)
- func (_m *MockClient) ListRoles(ctx context.Context, params *serviceiam.ListRolesInput, ...) (*serviceiam.ListRolesOutput, error)
- func (_m *MockClient) ListServerCertificates(ctx context.Context, params *serviceiam.ListServerCertificatesInput, ...) (*serviceiam.ListServerCertificatesOutput, error)
- func (_m *MockClient) ListUserPolicies(ctx context.Context, params *serviceiam.ListUserPoliciesInput, ...) (*serviceiam.ListUserPoliciesOutput, error)
- func (_m *MockClient) ListUsers(ctx context.Context, params *serviceiam.ListUsersInput, ...) (*serviceiam.ListUsersOutput, error)
- func (_m *MockClient) ListVirtualMFADevices(ctx context.Context, params *serviceiam.ListVirtualMFADevicesInput, ...) (*serviceiam.ListVirtualMFADevicesOutput, error)
- type MockClient_Expecter
- func (_e *MockClient_Expecter) GenerateCredentialReport(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GenerateCredentialReport_Call
- func (_e *MockClient_Expecter) GetAccessKeyLastUsed(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetAccessKeyLastUsed_Call
- func (_e *MockClient_Expecter) GetAccountPasswordPolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetAccountPasswordPolicy_Call
- func (_e *MockClient_Expecter) GetCredentialReport(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetCredentialReport_Call
- func (_e *MockClient_Expecter) GetPolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetPolicy_Call
- func (_e *MockClient_Expecter) GetPolicyVersion(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetPolicyVersion_Call
- func (_e *MockClient_Expecter) GetRole(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetRole_Call
- func (_e *MockClient_Expecter) GetRolePolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetRolePolicy_Call
- func (_e *MockClient_Expecter) GetUserPolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetUserPolicy_Call
- func (_e *MockClient_Expecter) ListAccessKeys(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListAccessKeys_Call
- func (_e *MockClient_Expecter) ListAttachedRolePolicies(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListAttachedRolePolicies_Call
- func (_e *MockClient_Expecter) ListAttachedUserPolicies(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListAttachedUserPolicies_Call
- func (_e *MockClient_Expecter) ListEntitiesForPolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListEntitiesForPolicy_Call
- func (_e *MockClient_Expecter) ListMFADevices(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListMFADevices_Call
- func (_e *MockClient_Expecter) ListPolicies(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListPolicies_Call
- func (_e *MockClient_Expecter) ListRoles(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListRoles_Call
- func (_e *MockClient_Expecter) ListServerCertificates(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListServerCertificates_Call
- func (_e *MockClient_Expecter) ListUserPolicies(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListUserPolicies_Call
- func (_e *MockClient_Expecter) ListUsers(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListUsers_Call
- func (_e *MockClient_Expecter) ListVirtualMFADevices(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListVirtualMFADevices_Call
- type MockClient_GenerateCredentialReport_Call
- func (_c *MockClient_GenerateCredentialReport_Call) Return(_a0 *serviceiam.GenerateCredentialReportOutput, _a1 error) *MockClient_GenerateCredentialReport_Call
- func (_c *MockClient_GenerateCredentialReport_Call) Run(...) *MockClient_GenerateCredentialReport_Call
- func (_c *MockClient_GenerateCredentialReport_Call) RunAndReturn(...) *MockClient_GenerateCredentialReport_Call
- type MockClient_GetAccessKeyLastUsed_Call
- func (_c *MockClient_GetAccessKeyLastUsed_Call) Return(_a0 *serviceiam.GetAccessKeyLastUsedOutput, _a1 error) *MockClient_GetAccessKeyLastUsed_Call
- func (_c *MockClient_GetAccessKeyLastUsed_Call) Run(...) *MockClient_GetAccessKeyLastUsed_Call
- func (_c *MockClient_GetAccessKeyLastUsed_Call) RunAndReturn(...) *MockClient_GetAccessKeyLastUsed_Call
- type MockClient_GetAccountPasswordPolicy_Call
- func (_c *MockClient_GetAccountPasswordPolicy_Call) Return(_a0 *serviceiam.GetAccountPasswordPolicyOutput, _a1 error) *MockClient_GetAccountPasswordPolicy_Call
- func (_c *MockClient_GetAccountPasswordPolicy_Call) Run(...) *MockClient_GetAccountPasswordPolicy_Call
- func (_c *MockClient_GetAccountPasswordPolicy_Call) RunAndReturn(...) *MockClient_GetAccountPasswordPolicy_Call
- type MockClient_GetCredentialReport_Call
- func (_c *MockClient_GetCredentialReport_Call) Return(_a0 *serviceiam.GetCredentialReportOutput, _a1 error) *MockClient_GetCredentialReport_Call
- func (_c *MockClient_GetCredentialReport_Call) Run(...) *MockClient_GetCredentialReport_Call
- func (_c *MockClient_GetCredentialReport_Call) RunAndReturn(...) *MockClient_GetCredentialReport_Call
- type MockClient_GetPolicyVersion_Call
- func (_c *MockClient_GetPolicyVersion_Call) Return(_a0 *serviceiam.GetPolicyVersionOutput, _a1 error) *MockClient_GetPolicyVersion_Call
- func (_c *MockClient_GetPolicyVersion_Call) Run(run func(ctx context.Context, params *serviceiam.GetPolicyVersionInput, ...)) *MockClient_GetPolicyVersion_Call
- func (_c *MockClient_GetPolicyVersion_Call) RunAndReturn(...) *MockClient_GetPolicyVersion_Call
- type MockClient_GetPolicy_Call
- func (_c *MockClient_GetPolicy_Call) Return(_a0 *serviceiam.GetPolicyOutput, _a1 error) *MockClient_GetPolicy_Call
- func (_c *MockClient_GetPolicy_Call) Run(run func(ctx context.Context, params *serviceiam.GetPolicyInput, ...)) *MockClient_GetPolicy_Call
- func (_c *MockClient_GetPolicy_Call) RunAndReturn(...) *MockClient_GetPolicy_Call
- type MockClient_GetRolePolicy_Call
- func (_c *MockClient_GetRolePolicy_Call) Return(_a0 *serviceiam.GetRolePolicyOutput, _a1 error) *MockClient_GetRolePolicy_Call
- func (_c *MockClient_GetRolePolicy_Call) Run(run func(ctx context.Context, params *serviceiam.GetRolePolicyInput, ...)) *MockClient_GetRolePolicy_Call
- func (_c *MockClient_GetRolePolicy_Call) RunAndReturn(...) *MockClient_GetRolePolicy_Call
- type MockClient_GetRole_Call
- func (_c *MockClient_GetRole_Call) Return(_a0 *serviceiam.GetRoleOutput, _a1 error) *MockClient_GetRole_Call
- func (_c *MockClient_GetRole_Call) Run(run func(ctx context.Context, params *serviceiam.GetRoleInput, ...)) *MockClient_GetRole_Call
- func (_c *MockClient_GetRole_Call) RunAndReturn(...) *MockClient_GetRole_Call
- type MockClient_GetUserPolicy_Call
- func (_c *MockClient_GetUserPolicy_Call) Return(_a0 *serviceiam.GetUserPolicyOutput, _a1 error) *MockClient_GetUserPolicy_Call
- func (_c *MockClient_GetUserPolicy_Call) Run(run func(ctx context.Context, params *serviceiam.GetUserPolicyInput, ...)) *MockClient_GetUserPolicy_Call
- func (_c *MockClient_GetUserPolicy_Call) RunAndReturn(...) *MockClient_GetUserPolicy_Call
- type MockClient_ListAccessKeys_Call
- func (_c *MockClient_ListAccessKeys_Call) Return(_a0 *serviceiam.ListAccessKeysOutput, _a1 error) *MockClient_ListAccessKeys_Call
- func (_c *MockClient_ListAccessKeys_Call) Run(run func(ctx context.Context, params *serviceiam.ListAccessKeysInput, ...)) *MockClient_ListAccessKeys_Call
- func (_c *MockClient_ListAccessKeys_Call) RunAndReturn(...) *MockClient_ListAccessKeys_Call
- type MockClient_ListAttachedRolePolicies_Call
- func (_c *MockClient_ListAttachedRolePolicies_Call) Return(_a0 *serviceiam.ListAttachedRolePoliciesOutput, _a1 error) *MockClient_ListAttachedRolePolicies_Call
- func (_c *MockClient_ListAttachedRolePolicies_Call) Run(...) *MockClient_ListAttachedRolePolicies_Call
- func (_c *MockClient_ListAttachedRolePolicies_Call) RunAndReturn(...) *MockClient_ListAttachedRolePolicies_Call
- type MockClient_ListAttachedUserPolicies_Call
- func (_c *MockClient_ListAttachedUserPolicies_Call) Return(_a0 *serviceiam.ListAttachedUserPoliciesOutput, _a1 error) *MockClient_ListAttachedUserPolicies_Call
- func (_c *MockClient_ListAttachedUserPolicies_Call) Run(...) *MockClient_ListAttachedUserPolicies_Call
- func (_c *MockClient_ListAttachedUserPolicies_Call) RunAndReturn(...) *MockClient_ListAttachedUserPolicies_Call
- type MockClient_ListEntitiesForPolicy_Call
- func (_c *MockClient_ListEntitiesForPolicy_Call) Return(_a0 *serviceiam.ListEntitiesForPolicyOutput, _a1 error) *MockClient_ListEntitiesForPolicy_Call
- func (_c *MockClient_ListEntitiesForPolicy_Call) Run(...) *MockClient_ListEntitiesForPolicy_Call
- func (_c *MockClient_ListEntitiesForPolicy_Call) RunAndReturn(...) *MockClient_ListEntitiesForPolicy_Call
- type MockClient_ListMFADevices_Call
- func (_c *MockClient_ListMFADevices_Call) Return(_a0 *serviceiam.ListMFADevicesOutput, _a1 error) *MockClient_ListMFADevices_Call
- func (_c *MockClient_ListMFADevices_Call) Run(run func(ctx context.Context, params *serviceiam.ListMFADevicesInput, ...)) *MockClient_ListMFADevices_Call
- func (_c *MockClient_ListMFADevices_Call) RunAndReturn(...) *MockClient_ListMFADevices_Call
- type MockClient_ListPolicies_Call
- func (_c *MockClient_ListPolicies_Call) Return(_a0 *serviceiam.ListPoliciesOutput, _a1 error) *MockClient_ListPolicies_Call
- func (_c *MockClient_ListPolicies_Call) Run(run func(ctx context.Context, params *serviceiam.ListPoliciesInput, ...)) *MockClient_ListPolicies_Call
- func (_c *MockClient_ListPolicies_Call) RunAndReturn(...) *MockClient_ListPolicies_Call
- type MockClient_ListRoles_Call
- func (_c *MockClient_ListRoles_Call) Return(_a0 *serviceiam.ListRolesOutput, _a1 error) *MockClient_ListRoles_Call
- func (_c *MockClient_ListRoles_Call) Run(run func(ctx context.Context, params *serviceiam.ListRolesInput, ...)) *MockClient_ListRoles_Call
- func (_c *MockClient_ListRoles_Call) RunAndReturn(...) *MockClient_ListRoles_Call
- type MockClient_ListServerCertificates_Call
- func (_c *MockClient_ListServerCertificates_Call) Return(_a0 *serviceiam.ListServerCertificatesOutput, _a1 error) *MockClient_ListServerCertificates_Call
- func (_c *MockClient_ListServerCertificates_Call) Run(...) *MockClient_ListServerCertificates_Call
- func (_c *MockClient_ListServerCertificates_Call) RunAndReturn(...) *MockClient_ListServerCertificates_Call
- type MockClient_ListUserPolicies_Call
- func (_c *MockClient_ListUserPolicies_Call) Return(_a0 *serviceiam.ListUserPoliciesOutput, _a1 error) *MockClient_ListUserPolicies_Call
- func (_c *MockClient_ListUserPolicies_Call) Run(run func(ctx context.Context, params *serviceiam.ListUserPoliciesInput, ...)) *MockClient_ListUserPolicies_Call
- func (_c *MockClient_ListUserPolicies_Call) RunAndReturn(...) *MockClient_ListUserPolicies_Call
- type MockClient_ListUsers_Call
- func (_c *MockClient_ListUsers_Call) Return(_a0 *serviceiam.ListUsersOutput, _a1 error) *MockClient_ListUsers_Call
- func (_c *MockClient_ListUsers_Call) Run(run func(ctx context.Context, params *serviceiam.ListUsersInput, ...)) *MockClient_ListUsers_Call
- func (_c *MockClient_ListUsers_Call) RunAndReturn(...) *MockClient_ListUsers_Call
- type MockClient_ListVirtualMFADevices_Call
- func (_c *MockClient_ListVirtualMFADevices_Call) Return(_a0 *serviceiam.ListVirtualMFADevicesOutput, _a1 error) *MockClient_ListVirtualMFADevices_Call
- func (_c *MockClient_ListVirtualMFADevices_Call) Run(...) *MockClient_ListVirtualMFADevices_Call
- func (_c *MockClient_ListVirtualMFADevices_Call) RunAndReturn(...) *MockClient_ListVirtualMFADevices_Call
- type MockRoleGetter
- type MockRoleGetter_Expecter
- type MockRoleGetter_GetRole_Call
- func (_c *MockRoleGetter_GetRole_Call) Return(_a0 *Role, _a1 error) *MockRoleGetter_GetRole_Call
- func (_c *MockRoleGetter_GetRole_Call) Run(run func(ctx context.Context, roleName string)) *MockRoleGetter_GetRole_Call
- func (_c *MockRoleGetter_GetRole_Call) RunAndReturn(run func(context.Context, string) (*Role, error)) *MockRoleGetter_GetRole_Call
- type PasswordPolicy
- type Policy
- type PolicyDocument
- type Provider
- func (p Provider) GetAccessAnalyzers(ctx context.Context) (awslib.AwsResource, error)
- func (p Provider) GetIAMRolePermissions(ctx context.Context, roleName string) ([]RolePolicyInfo, error)
- func (p Provider) GetPasswordPolicy(ctx context.Context) (awslib.AwsResource, error)
- func (p Provider) GetPolicies(ctx context.Context) ([]awslib.AwsResource, error)
- func (p Provider) GetRole(ctx context.Context, roleName string) (*Role, error)
- func (p Provider) GetUsers(ctx context.Context) ([]awslib.AwsResource, error)
- func (p Provider) ListRoles(ctx context.Context) ([]*Role, error)
- func (p Provider) ListServerCertificates(ctx context.Context) (awslib.AwsResource, error)
- type Role
- type RoleGetter
- type RolePolicyInfo
- type ServerCertificatesInfo
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessAnalyzer ¶
type AccessAnalyzer struct { types.AnalyzerSummary Region string }
type AccessAnalyzerClient ¶
type AccessAnalyzerClient interface {
ListAnalyzers(ctx context.Context, params *accessanalyzer.ListAnalyzersInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAnalyzersOutput, error)
}
type AccessAnalyzers ¶
type AccessAnalyzers struct { Analyzers []AccessAnalyzer Regions []string }
func (AccessAnalyzers) GetRegion ¶
func (a AccessAnalyzers) GetRegion() string
func (AccessAnalyzers) GetResourceArn ¶
func (a AccessAnalyzers) GetResourceArn() string
func (AccessAnalyzers) GetResourceName ¶
func (a AccessAnalyzers) GetResourceName() string
func (AccessAnalyzers) GetResourceType ¶
func (a AccessAnalyzers) GetResourceType() string
type AccessManagement ¶
type AccessManagement interface { GetIAMRolePermissions(ctx context.Context, roleName string) ([]RolePolicyInfo, error) GetPasswordPolicy(ctx context.Context) (awslib.AwsResource, error) GetUsers(ctx context.Context) ([]awslib.AwsResource, error) GetPolicies(ctx context.Context) ([]awslib.AwsResource, error) ListServerCertificates(ctx context.Context) (awslib.AwsResource, error) GetAccessAnalyzers(ctx context.Context) (awslib.AwsResource, error) }
type AuthDevice ¶
type Client ¶
type Client interface { ListUsers(ctx context.Context, params *iamsdk.ListUsersInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListUsersOutput, error) ListMFADevices(ctx context.Context, params *iamsdk.ListMFADevicesInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListMFADevicesOutput, error) ListAccessKeys(ctx context.Context, params *iamsdk.ListAccessKeysInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListAccessKeysOutput, error) ListAttachedRolePolicies(ctx context.Context, params *iamsdk.ListAttachedRolePoliciesInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListAttachedRolePoliciesOutput, error) ListVirtualMFADevices(ctx context.Context, params *iamsdk.ListVirtualMFADevicesInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListVirtualMFADevicesOutput, error) ListAttachedUserPolicies(ctx context.Context, params *iamsdk.ListAttachedUserPoliciesInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListAttachedUserPoliciesOutput, error) ListUserPolicies(ctx context.Context, params *iamsdk.ListUserPoliciesInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListUserPoliciesOutput, error) GetAccessKeyLastUsed(ctx context.Context, params *iamsdk.GetAccessKeyLastUsedInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GetAccessKeyLastUsedOutput, error) GetAccountPasswordPolicy(ctx context.Context, params *iamsdk.GetAccountPasswordPolicyInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GetAccountPasswordPolicyOutput, error) GetRole(ctx context.Context, params *iamsdk.GetRoleInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GetRoleOutput, error) ListRoles(ctx context.Context, params *iamsdk.ListRolesInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListRolesOutput, error) GetRolePolicy(ctx context.Context, params *iamsdk.GetRolePolicyInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GetRolePolicyOutput, error) GetCredentialReport(ctx context.Context, params *iamsdk.GetCredentialReportInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GetCredentialReportOutput, error) GetUserPolicy(ctx context.Context, params *iamsdk.GetUserPolicyInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GetUserPolicyOutput, error) GenerateCredentialReport(ctx context.Context, params *iamsdk.GenerateCredentialReportInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GenerateCredentialReportOutput, error) ListPolicies(ctx context.Context, params *iamsdk.ListPoliciesInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListPoliciesOutput, error) GetPolicy(ctx context.Context, params *iamsdk.GetPolicyInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GetPolicyOutput, error) GetPolicyVersion(ctx context.Context, params *iamsdk.GetPolicyVersionInput, optFns ...func(*iamsdk.Options)) (*iamsdk.GetPolicyVersionOutput, error) ListEntitiesForPolicy(ctx context.Context, params *iamsdk.ListEntitiesForPolicyInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListEntitiesForPolicyOutput, error) ListServerCertificates(ctx context.Context, params *iamsdk.ListServerCertificatesInput, optFns ...func(*iamsdk.Options)) (*iamsdk.ListServerCertificatesOutput, error) }
type CredentialReport ¶
type CredentialReport struct { User string `csv:"user"` Arn string `csv:"arn"` UserCreation string `csv:"user_creation_time"` // can't be parsed as a bool, the value for the AWS account root user is always not_supported PasswordEnabled string `csv:"password_enabled"` PasswordLastUsed string `csv:"password_last_used"` PasswordLastChanged string `csv:"password_last_changed"` PasswordNextRotation string `csv:"password_next_rotation"` MfaActive bool `csv:"mfa_active"` AccessKey1Active bool `csv:"access_key_1_active"` AccessKey1LastRotated string `csv:"access_key_1_last_rotated"` AccessKey1LastUsed string `csv:"access_key_1_last_used_date"` AccessKey2Active bool `csv:"access_key_2_active"` AccessKey2LastRotated string `csv:"access_key_2_last_rotated"` AccessKey2LastUsed string `csv:"access_key_2_last_used_date"` Cert1Active bool `csv:"cert_1_active"` Cert2Active bool `csv:"cert_2_active"` }
CredentialReport credential report CSV output
type MockAccessAnalyzerClient ¶
MockAccessAnalyzerClient is an autogenerated mock type for the AccessAnalyzerClient type
func NewMockAccessAnalyzerClient ¶
func NewMockAccessAnalyzerClient(t interface { mock.TestingT Cleanup(func()) }) *MockAccessAnalyzerClient
NewMockAccessAnalyzerClient creates a new instance of MockAccessAnalyzerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockAccessAnalyzerClient) EXPECT ¶
func (_m *MockAccessAnalyzerClient) EXPECT() *MockAccessAnalyzerClient_Expecter
func (*MockAccessAnalyzerClient) ListAnalyzers ¶
func (_m *MockAccessAnalyzerClient) ListAnalyzers(ctx context.Context, params *accessanalyzer.ListAnalyzersInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAnalyzersOutput, error)
ListAnalyzers provides a mock function with given fields: ctx, params, optFns
type MockAccessAnalyzerClient_Expecter ¶
type MockAccessAnalyzerClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAccessAnalyzerClient_Expecter) ListAnalyzers ¶
func (_e *MockAccessAnalyzerClient_Expecter) ListAnalyzers(ctx interface{}, params interface{}, optFns ...interface{}) *MockAccessAnalyzerClient_ListAnalyzers_Call
ListAnalyzers is a helper method to define mock.On call
- ctx context.Context
- params *accessanalyzer.ListAnalyzersInput
- optFns ...func(*accessanalyzer.Options)
type MockAccessAnalyzerClient_ListAnalyzers_Call ¶
MockAccessAnalyzerClient_ListAnalyzers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAnalyzers'
func (*MockAccessAnalyzerClient_ListAnalyzers_Call) Return ¶
func (_c *MockAccessAnalyzerClient_ListAnalyzers_Call) Return(_a0 *accessanalyzer.ListAnalyzersOutput, _a1 error) *MockAccessAnalyzerClient_ListAnalyzers_Call
func (*MockAccessAnalyzerClient_ListAnalyzers_Call) Run ¶
func (_c *MockAccessAnalyzerClient_ListAnalyzers_Call) Run(run func(ctx context.Context, params *accessanalyzer.ListAnalyzersInput, optFns ...func(*accessanalyzer.Options))) *MockAccessAnalyzerClient_ListAnalyzers_Call
func (*MockAccessAnalyzerClient_ListAnalyzers_Call) RunAndReturn ¶
func (_c *MockAccessAnalyzerClient_ListAnalyzers_Call) RunAndReturn(run func(context.Context, *accessanalyzer.ListAnalyzersInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAnalyzersOutput, error)) *MockAccessAnalyzerClient_ListAnalyzers_Call
type MockAccessManagement ¶
MockAccessManagement is an autogenerated mock type for the AccessManagement type
func NewMockAccessManagement ¶
func NewMockAccessManagement(t interface { mock.TestingT Cleanup(func()) }) *MockAccessManagement
NewMockAccessManagement creates a new instance of MockAccessManagement. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockAccessManagement) EXPECT ¶
func (_m *MockAccessManagement) EXPECT() *MockAccessManagement_Expecter
func (*MockAccessManagement) GetAccessAnalyzers ¶
func (_m *MockAccessManagement) GetAccessAnalyzers(ctx context.Context) (awslib.AwsResource, error)
GetAccessAnalyzers provides a mock function with given fields: ctx
func (*MockAccessManagement) GetIAMRolePermissions ¶
func (_m *MockAccessManagement) GetIAMRolePermissions(ctx context.Context, roleName string) ([]RolePolicyInfo, error)
GetIAMRolePermissions provides a mock function with given fields: ctx, roleName
func (*MockAccessManagement) GetPasswordPolicy ¶
func (_m *MockAccessManagement) GetPasswordPolicy(ctx context.Context) (awslib.AwsResource, error)
GetPasswordPolicy provides a mock function with given fields: ctx
func (*MockAccessManagement) GetPolicies ¶
func (_m *MockAccessManagement) GetPolicies(ctx context.Context) ([]awslib.AwsResource, error)
GetPolicies provides a mock function with given fields: ctx
func (*MockAccessManagement) GetUsers ¶
func (_m *MockAccessManagement) GetUsers(ctx context.Context) ([]awslib.AwsResource, error)
GetUsers provides a mock function with given fields: ctx
func (*MockAccessManagement) ListServerCertificates ¶
func (_m *MockAccessManagement) ListServerCertificates(ctx context.Context) (awslib.AwsResource, error)
ListServerCertificates provides a mock function with given fields: ctx
type MockAccessManagement_Expecter ¶
type MockAccessManagement_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAccessManagement_Expecter) GetAccessAnalyzers ¶
func (_e *MockAccessManagement_Expecter) GetAccessAnalyzers(ctx interface{}) *MockAccessManagement_GetAccessAnalyzers_Call
GetAccessAnalyzers is a helper method to define mock.On call
- ctx context.Context
func (*MockAccessManagement_Expecter) GetIAMRolePermissions ¶
func (_e *MockAccessManagement_Expecter) GetIAMRolePermissions(ctx interface{}, roleName interface{}) *MockAccessManagement_GetIAMRolePermissions_Call
GetIAMRolePermissions is a helper method to define mock.On call
- ctx context.Context
- roleName string
func (*MockAccessManagement_Expecter) GetPasswordPolicy ¶
func (_e *MockAccessManagement_Expecter) GetPasswordPolicy(ctx interface{}) *MockAccessManagement_GetPasswordPolicy_Call
GetPasswordPolicy is a helper method to define mock.On call
- ctx context.Context
func (*MockAccessManagement_Expecter) GetPolicies ¶
func (_e *MockAccessManagement_Expecter) GetPolicies(ctx interface{}) *MockAccessManagement_GetPolicies_Call
GetPolicies is a helper method to define mock.On call
- ctx context.Context
func (*MockAccessManagement_Expecter) GetUsers ¶
func (_e *MockAccessManagement_Expecter) GetUsers(ctx interface{}) *MockAccessManagement_GetUsers_Call
GetUsers is a helper method to define mock.On call
- ctx context.Context
func (*MockAccessManagement_Expecter) ListServerCertificates ¶
func (_e *MockAccessManagement_Expecter) ListServerCertificates(ctx interface{}) *MockAccessManagement_ListServerCertificates_Call
ListServerCertificates is a helper method to define mock.On call
- ctx context.Context
type MockAccessManagement_GetAccessAnalyzers_Call ¶
MockAccessManagement_GetAccessAnalyzers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccessAnalyzers'
func (*MockAccessManagement_GetAccessAnalyzers_Call) Return ¶
func (_c *MockAccessManagement_GetAccessAnalyzers_Call) Return(_a0 awslib.AwsResource, _a1 error) *MockAccessManagement_GetAccessAnalyzers_Call
func (*MockAccessManagement_GetAccessAnalyzers_Call) Run ¶
func (_c *MockAccessManagement_GetAccessAnalyzers_Call) Run(run func(ctx context.Context)) *MockAccessManagement_GetAccessAnalyzers_Call
func (*MockAccessManagement_GetAccessAnalyzers_Call) RunAndReturn ¶
func (_c *MockAccessManagement_GetAccessAnalyzers_Call) RunAndReturn(run func(context.Context) (awslib.AwsResource, error)) *MockAccessManagement_GetAccessAnalyzers_Call
type MockAccessManagement_GetIAMRolePermissions_Call ¶
MockAccessManagement_GetIAMRolePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIAMRolePermissions'
func (*MockAccessManagement_GetIAMRolePermissions_Call) Return ¶
func (_c *MockAccessManagement_GetIAMRolePermissions_Call) Return(_a0 []RolePolicyInfo, _a1 error) *MockAccessManagement_GetIAMRolePermissions_Call
func (*MockAccessManagement_GetIAMRolePermissions_Call) Run ¶
func (_c *MockAccessManagement_GetIAMRolePermissions_Call) Run(run func(ctx context.Context, roleName string)) *MockAccessManagement_GetIAMRolePermissions_Call
func (*MockAccessManagement_GetIAMRolePermissions_Call) RunAndReturn ¶
func (_c *MockAccessManagement_GetIAMRolePermissions_Call) RunAndReturn(run func(context.Context, string) ([]RolePolicyInfo, error)) *MockAccessManagement_GetIAMRolePermissions_Call
type MockAccessManagement_GetPasswordPolicy_Call ¶
MockAccessManagement_GetPasswordPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPasswordPolicy'
func (*MockAccessManagement_GetPasswordPolicy_Call) Return ¶
func (_c *MockAccessManagement_GetPasswordPolicy_Call) Return(_a0 awslib.AwsResource, _a1 error) *MockAccessManagement_GetPasswordPolicy_Call
func (*MockAccessManagement_GetPasswordPolicy_Call) Run ¶
func (_c *MockAccessManagement_GetPasswordPolicy_Call) Run(run func(ctx context.Context)) *MockAccessManagement_GetPasswordPolicy_Call
func (*MockAccessManagement_GetPasswordPolicy_Call) RunAndReturn ¶
func (_c *MockAccessManagement_GetPasswordPolicy_Call) RunAndReturn(run func(context.Context) (awslib.AwsResource, error)) *MockAccessManagement_GetPasswordPolicy_Call
type MockAccessManagement_GetPolicies_Call ¶
MockAccessManagement_GetPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicies'
func (*MockAccessManagement_GetPolicies_Call) Return ¶
func (_c *MockAccessManagement_GetPolicies_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockAccessManagement_GetPolicies_Call
func (*MockAccessManagement_GetPolicies_Call) Run ¶
func (_c *MockAccessManagement_GetPolicies_Call) Run(run func(ctx context.Context)) *MockAccessManagement_GetPolicies_Call
func (*MockAccessManagement_GetPolicies_Call) RunAndReturn ¶
func (_c *MockAccessManagement_GetPolicies_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockAccessManagement_GetPolicies_Call
type MockAccessManagement_GetUsers_Call ¶
MockAccessManagement_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*MockAccessManagement_GetUsers_Call) Return ¶
func (_c *MockAccessManagement_GetUsers_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockAccessManagement_GetUsers_Call
func (*MockAccessManagement_GetUsers_Call) Run ¶
func (_c *MockAccessManagement_GetUsers_Call) Run(run func(ctx context.Context)) *MockAccessManagement_GetUsers_Call
func (*MockAccessManagement_GetUsers_Call) RunAndReturn ¶
func (_c *MockAccessManagement_GetUsers_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockAccessManagement_GetUsers_Call
type MockAccessManagement_ListServerCertificates_Call ¶
MockAccessManagement_ListServerCertificates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServerCertificates'
func (*MockAccessManagement_ListServerCertificates_Call) Return ¶
func (_c *MockAccessManagement_ListServerCertificates_Call) Return(_a0 awslib.AwsResource, _a1 error) *MockAccessManagement_ListServerCertificates_Call
func (*MockAccessManagement_ListServerCertificates_Call) Run ¶
func (_c *MockAccessManagement_ListServerCertificates_Call) Run(run func(ctx context.Context)) *MockAccessManagement_ListServerCertificates_Call
func (*MockAccessManagement_ListServerCertificates_Call) RunAndReturn ¶
func (_c *MockAccessManagement_ListServerCertificates_Call) RunAndReturn(run func(context.Context) (awslib.AwsResource, error)) *MockAccessManagement_ListServerCertificates_Call
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface { mock.TestingT Cleanup(func()) }) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
func (*MockClient) GenerateCredentialReport ¶
func (_m *MockClient) GenerateCredentialReport(ctx context.Context, params *serviceiam.GenerateCredentialReportInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GenerateCredentialReportOutput, error)
GenerateCredentialReport provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetAccessKeyLastUsed ¶
func (_m *MockClient) GetAccessKeyLastUsed(ctx context.Context, params *serviceiam.GetAccessKeyLastUsedInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GetAccessKeyLastUsedOutput, error)
GetAccessKeyLastUsed provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetAccountPasswordPolicy ¶
func (_m *MockClient) GetAccountPasswordPolicy(ctx context.Context, params *serviceiam.GetAccountPasswordPolicyInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GetAccountPasswordPolicyOutput, error)
GetAccountPasswordPolicy provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetCredentialReport ¶
func (_m *MockClient) GetCredentialReport(ctx context.Context, params *serviceiam.GetCredentialReportInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GetCredentialReportOutput, error)
GetCredentialReport provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetPolicy ¶
func (_m *MockClient) GetPolicy(ctx context.Context, params *serviceiam.GetPolicyInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GetPolicyOutput, error)
GetPolicy provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetPolicyVersion ¶
func (_m *MockClient) GetPolicyVersion(ctx context.Context, params *serviceiam.GetPolicyVersionInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GetPolicyVersionOutput, error)
GetPolicyVersion provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetRole ¶
func (_m *MockClient) GetRole(ctx context.Context, params *serviceiam.GetRoleInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GetRoleOutput, error)
GetRole provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetRolePolicy ¶
func (_m *MockClient) GetRolePolicy(ctx context.Context, params *serviceiam.GetRolePolicyInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GetRolePolicyOutput, error)
GetRolePolicy provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetUserPolicy ¶
func (_m *MockClient) GetUserPolicy(ctx context.Context, params *serviceiam.GetUserPolicyInput, optFns ...func(*serviceiam.Options)) (*serviceiam.GetUserPolicyOutput, error)
GetUserPolicy provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListAccessKeys ¶
func (_m *MockClient) ListAccessKeys(ctx context.Context, params *serviceiam.ListAccessKeysInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListAccessKeysOutput, error)
ListAccessKeys provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListAttachedRolePolicies ¶
func (_m *MockClient) ListAttachedRolePolicies(ctx context.Context, params *serviceiam.ListAttachedRolePoliciesInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListAttachedRolePoliciesOutput, error)
ListAttachedRolePolicies provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListAttachedUserPolicies ¶
func (_m *MockClient) ListAttachedUserPolicies(ctx context.Context, params *serviceiam.ListAttachedUserPoliciesInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListAttachedUserPoliciesOutput, error)
ListAttachedUserPolicies provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListEntitiesForPolicy ¶
func (_m *MockClient) ListEntitiesForPolicy(ctx context.Context, params *serviceiam.ListEntitiesForPolicyInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListEntitiesForPolicyOutput, error)
ListEntitiesForPolicy provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListMFADevices ¶
func (_m *MockClient) ListMFADevices(ctx context.Context, params *serviceiam.ListMFADevicesInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListMFADevicesOutput, error)
ListMFADevices provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListPolicies ¶
func (_m *MockClient) ListPolicies(ctx context.Context, params *serviceiam.ListPoliciesInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListPoliciesOutput, error)
ListPolicies provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListRoles ¶
func (_m *MockClient) ListRoles(ctx context.Context, params *serviceiam.ListRolesInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListRolesOutput, error)
ListRoles provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListServerCertificates ¶
func (_m *MockClient) ListServerCertificates(ctx context.Context, params *serviceiam.ListServerCertificatesInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListServerCertificatesOutput, error)
ListServerCertificates provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListUserPolicies ¶
func (_m *MockClient) ListUserPolicies(ctx context.Context, params *serviceiam.ListUserPoliciesInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListUserPoliciesOutput, error)
ListUserPolicies provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListUsers ¶
func (_m *MockClient) ListUsers(ctx context.Context, params *serviceiam.ListUsersInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListUsersOutput, error)
ListUsers provides a mock function with given fields: ctx, params, optFns
func (*MockClient) ListVirtualMFADevices ¶
func (_m *MockClient) ListVirtualMFADevices(ctx context.Context, params *serviceiam.ListVirtualMFADevicesInput, optFns ...func(*serviceiam.Options)) (*serviceiam.ListVirtualMFADevicesOutput, error)
ListVirtualMFADevices provides a mock function with given fields: ctx, params, optFns
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) GenerateCredentialReport ¶
func (_e *MockClient_Expecter) GenerateCredentialReport(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GenerateCredentialReport_Call
GenerateCredentialReport is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GenerateCredentialReportInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) GetAccessKeyLastUsed ¶
func (_e *MockClient_Expecter) GetAccessKeyLastUsed(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetAccessKeyLastUsed_Call
GetAccessKeyLastUsed is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GetAccessKeyLastUsedInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) GetAccountPasswordPolicy ¶
func (_e *MockClient_Expecter) GetAccountPasswordPolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetAccountPasswordPolicy_Call
GetAccountPasswordPolicy is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GetAccountPasswordPolicyInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) GetCredentialReport ¶
func (_e *MockClient_Expecter) GetCredentialReport(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetCredentialReport_Call
GetCredentialReport is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GetCredentialReportInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) GetPolicy ¶
func (_e *MockClient_Expecter) GetPolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetPolicy_Call
GetPolicy is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GetPolicyInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) GetPolicyVersion ¶
func (_e *MockClient_Expecter) GetPolicyVersion(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetPolicyVersion_Call
GetPolicyVersion is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GetPolicyVersionInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) GetRole ¶
func (_e *MockClient_Expecter) GetRole(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetRole_Call
GetRole is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GetRoleInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) GetRolePolicy ¶
func (_e *MockClient_Expecter) GetRolePolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetRolePolicy_Call
GetRolePolicy is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GetRolePolicyInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) GetUserPolicy ¶
func (_e *MockClient_Expecter) GetUserPolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetUserPolicy_Call
GetUserPolicy is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.GetUserPolicyInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListAccessKeys ¶
func (_e *MockClient_Expecter) ListAccessKeys(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListAccessKeys_Call
ListAccessKeys is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListAccessKeysInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListAttachedRolePolicies ¶
func (_e *MockClient_Expecter) ListAttachedRolePolicies(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListAttachedRolePolicies_Call
ListAttachedRolePolicies is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListAttachedRolePoliciesInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListAttachedUserPolicies ¶
func (_e *MockClient_Expecter) ListAttachedUserPolicies(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListAttachedUserPolicies_Call
ListAttachedUserPolicies is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListAttachedUserPoliciesInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListEntitiesForPolicy ¶
func (_e *MockClient_Expecter) ListEntitiesForPolicy(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListEntitiesForPolicy_Call
ListEntitiesForPolicy is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListEntitiesForPolicyInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListMFADevices ¶
func (_e *MockClient_Expecter) ListMFADevices(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListMFADevices_Call
ListMFADevices is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListMFADevicesInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListPolicies ¶
func (_e *MockClient_Expecter) ListPolicies(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListPolicies_Call
ListPolicies is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListPoliciesInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListRoles ¶
func (_e *MockClient_Expecter) ListRoles(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListRoles_Call
ListRoles is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListRolesInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListServerCertificates ¶
func (_e *MockClient_Expecter) ListServerCertificates(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListServerCertificates_Call
ListServerCertificates is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListServerCertificatesInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListUserPolicies ¶
func (_e *MockClient_Expecter) ListUserPolicies(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListUserPolicies_Call
ListUserPolicies is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListUserPoliciesInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListUsers ¶
func (_e *MockClient_Expecter) ListUsers(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListUsers_Call
ListUsers is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListUsersInput
- optFns ...func(*serviceiam.Options)
func (*MockClient_Expecter) ListVirtualMFADevices ¶
func (_e *MockClient_Expecter) ListVirtualMFADevices(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_ListVirtualMFADevices_Call
ListVirtualMFADevices is a helper method to define mock.On call
- ctx context.Context
- params *serviceiam.ListVirtualMFADevicesInput
- optFns ...func(*serviceiam.Options)
type MockClient_GenerateCredentialReport_Call ¶
MockClient_GenerateCredentialReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateCredentialReport'
func (*MockClient_GenerateCredentialReport_Call) Return ¶
func (_c *MockClient_GenerateCredentialReport_Call) Return(_a0 *serviceiam.GenerateCredentialReportOutput, _a1 error) *MockClient_GenerateCredentialReport_Call
func (*MockClient_GenerateCredentialReport_Call) Run ¶
func (_c *MockClient_GenerateCredentialReport_Call) Run(run func(ctx context.Context, params *serviceiam.GenerateCredentialReportInput, optFns ...func(*serviceiam.Options))) *MockClient_GenerateCredentialReport_Call
func (*MockClient_GenerateCredentialReport_Call) RunAndReturn ¶
func (_c *MockClient_GenerateCredentialReport_Call) RunAndReturn(run func(context.Context, *serviceiam.GenerateCredentialReportInput, ...func(*serviceiam.Options)) (*serviceiam.GenerateCredentialReportOutput, error)) *MockClient_GenerateCredentialReport_Call
type MockClient_GetAccessKeyLastUsed_Call ¶
MockClient_GetAccessKeyLastUsed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccessKeyLastUsed'
func (*MockClient_GetAccessKeyLastUsed_Call) Return ¶
func (_c *MockClient_GetAccessKeyLastUsed_Call) Return(_a0 *serviceiam.GetAccessKeyLastUsedOutput, _a1 error) *MockClient_GetAccessKeyLastUsed_Call
func (*MockClient_GetAccessKeyLastUsed_Call) Run ¶
func (_c *MockClient_GetAccessKeyLastUsed_Call) Run(run func(ctx context.Context, params *serviceiam.GetAccessKeyLastUsedInput, optFns ...func(*serviceiam.Options))) *MockClient_GetAccessKeyLastUsed_Call
func (*MockClient_GetAccessKeyLastUsed_Call) RunAndReturn ¶
func (_c *MockClient_GetAccessKeyLastUsed_Call) RunAndReturn(run func(context.Context, *serviceiam.GetAccessKeyLastUsedInput, ...func(*serviceiam.Options)) (*serviceiam.GetAccessKeyLastUsedOutput, error)) *MockClient_GetAccessKeyLastUsed_Call
type MockClient_GetAccountPasswordPolicy_Call ¶
MockClient_GetAccountPasswordPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccountPasswordPolicy'
func (*MockClient_GetAccountPasswordPolicy_Call) Return ¶
func (_c *MockClient_GetAccountPasswordPolicy_Call) Return(_a0 *serviceiam.GetAccountPasswordPolicyOutput, _a1 error) *MockClient_GetAccountPasswordPolicy_Call
func (*MockClient_GetAccountPasswordPolicy_Call) Run ¶
func (_c *MockClient_GetAccountPasswordPolicy_Call) Run(run func(ctx context.Context, params *serviceiam.GetAccountPasswordPolicyInput, optFns ...func(*serviceiam.Options))) *MockClient_GetAccountPasswordPolicy_Call
func (*MockClient_GetAccountPasswordPolicy_Call) RunAndReturn ¶
func (_c *MockClient_GetAccountPasswordPolicy_Call) RunAndReturn(run func(context.Context, *serviceiam.GetAccountPasswordPolicyInput, ...func(*serviceiam.Options)) (*serviceiam.GetAccountPasswordPolicyOutput, error)) *MockClient_GetAccountPasswordPolicy_Call
type MockClient_GetCredentialReport_Call ¶
MockClient_GetCredentialReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCredentialReport'
func (*MockClient_GetCredentialReport_Call) Return ¶
func (_c *MockClient_GetCredentialReport_Call) Return(_a0 *serviceiam.GetCredentialReportOutput, _a1 error) *MockClient_GetCredentialReport_Call
func (*MockClient_GetCredentialReport_Call) Run ¶
func (_c *MockClient_GetCredentialReport_Call) Run(run func(ctx context.Context, params *serviceiam.GetCredentialReportInput, optFns ...func(*serviceiam.Options))) *MockClient_GetCredentialReport_Call
func (*MockClient_GetCredentialReport_Call) RunAndReturn ¶
func (_c *MockClient_GetCredentialReport_Call) RunAndReturn(run func(context.Context, *serviceiam.GetCredentialReportInput, ...func(*serviceiam.Options)) (*serviceiam.GetCredentialReportOutput, error)) *MockClient_GetCredentialReport_Call
type MockClient_GetPolicyVersion_Call ¶
MockClient_GetPolicyVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicyVersion'
func (*MockClient_GetPolicyVersion_Call) Return ¶
func (_c *MockClient_GetPolicyVersion_Call) Return(_a0 *serviceiam.GetPolicyVersionOutput, _a1 error) *MockClient_GetPolicyVersion_Call
func (*MockClient_GetPolicyVersion_Call) Run ¶
func (_c *MockClient_GetPolicyVersion_Call) Run(run func(ctx context.Context, params *serviceiam.GetPolicyVersionInput, optFns ...func(*serviceiam.Options))) *MockClient_GetPolicyVersion_Call
func (*MockClient_GetPolicyVersion_Call) RunAndReturn ¶
func (_c *MockClient_GetPolicyVersion_Call) RunAndReturn(run func(context.Context, *serviceiam.GetPolicyVersionInput, ...func(*serviceiam.Options)) (*serviceiam.GetPolicyVersionOutput, error)) *MockClient_GetPolicyVersion_Call
type MockClient_GetPolicy_Call ¶
MockClient_GetPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicy'
func (*MockClient_GetPolicy_Call) Return ¶
func (_c *MockClient_GetPolicy_Call) Return(_a0 *serviceiam.GetPolicyOutput, _a1 error) *MockClient_GetPolicy_Call
func (*MockClient_GetPolicy_Call) Run ¶
func (_c *MockClient_GetPolicy_Call) Run(run func(ctx context.Context, params *serviceiam.GetPolicyInput, optFns ...func(*serviceiam.Options))) *MockClient_GetPolicy_Call
func (*MockClient_GetPolicy_Call) RunAndReturn ¶
func (_c *MockClient_GetPolicy_Call) RunAndReturn(run func(context.Context, *serviceiam.GetPolicyInput, ...func(*serviceiam.Options)) (*serviceiam.GetPolicyOutput, error)) *MockClient_GetPolicy_Call
type MockClient_GetRolePolicy_Call ¶
MockClient_GetRolePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRolePolicy'
func (*MockClient_GetRolePolicy_Call) Return ¶
func (_c *MockClient_GetRolePolicy_Call) Return(_a0 *serviceiam.GetRolePolicyOutput, _a1 error) *MockClient_GetRolePolicy_Call
func (*MockClient_GetRolePolicy_Call) Run ¶
func (_c *MockClient_GetRolePolicy_Call) Run(run func(ctx context.Context, params *serviceiam.GetRolePolicyInput, optFns ...func(*serviceiam.Options))) *MockClient_GetRolePolicy_Call
func (*MockClient_GetRolePolicy_Call) RunAndReturn ¶
func (_c *MockClient_GetRolePolicy_Call) RunAndReturn(run func(context.Context, *serviceiam.GetRolePolicyInput, ...func(*serviceiam.Options)) (*serviceiam.GetRolePolicyOutput, error)) *MockClient_GetRolePolicy_Call
type MockClient_GetRole_Call ¶
MockClient_GetRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRole'
func (*MockClient_GetRole_Call) Return ¶
func (_c *MockClient_GetRole_Call) Return(_a0 *serviceiam.GetRoleOutput, _a1 error) *MockClient_GetRole_Call
func (*MockClient_GetRole_Call) Run ¶
func (_c *MockClient_GetRole_Call) Run(run func(ctx context.Context, params *serviceiam.GetRoleInput, optFns ...func(*serviceiam.Options))) *MockClient_GetRole_Call
func (*MockClient_GetRole_Call) RunAndReturn ¶
func (_c *MockClient_GetRole_Call) RunAndReturn(run func(context.Context, *serviceiam.GetRoleInput, ...func(*serviceiam.Options)) (*serviceiam.GetRoleOutput, error)) *MockClient_GetRole_Call
type MockClient_GetUserPolicy_Call ¶
MockClient_GetUserPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserPolicy'
func (*MockClient_GetUserPolicy_Call) Return ¶
func (_c *MockClient_GetUserPolicy_Call) Return(_a0 *serviceiam.GetUserPolicyOutput, _a1 error) *MockClient_GetUserPolicy_Call
func (*MockClient_GetUserPolicy_Call) Run ¶
func (_c *MockClient_GetUserPolicy_Call) Run(run func(ctx context.Context, params *serviceiam.GetUserPolicyInput, optFns ...func(*serviceiam.Options))) *MockClient_GetUserPolicy_Call
func (*MockClient_GetUserPolicy_Call) RunAndReturn ¶
func (_c *MockClient_GetUserPolicy_Call) RunAndReturn(run func(context.Context, *serviceiam.GetUserPolicyInput, ...func(*serviceiam.Options)) (*serviceiam.GetUserPolicyOutput, error)) *MockClient_GetUserPolicy_Call
type MockClient_ListAccessKeys_Call ¶
MockClient_ListAccessKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccessKeys'
func (*MockClient_ListAccessKeys_Call) Return ¶
func (_c *MockClient_ListAccessKeys_Call) Return(_a0 *serviceiam.ListAccessKeysOutput, _a1 error) *MockClient_ListAccessKeys_Call
func (*MockClient_ListAccessKeys_Call) Run ¶
func (_c *MockClient_ListAccessKeys_Call) Run(run func(ctx context.Context, params *serviceiam.ListAccessKeysInput, optFns ...func(*serviceiam.Options))) *MockClient_ListAccessKeys_Call
func (*MockClient_ListAccessKeys_Call) RunAndReturn ¶
func (_c *MockClient_ListAccessKeys_Call) RunAndReturn(run func(context.Context, *serviceiam.ListAccessKeysInput, ...func(*serviceiam.Options)) (*serviceiam.ListAccessKeysOutput, error)) *MockClient_ListAccessKeys_Call
type MockClient_ListAttachedRolePolicies_Call ¶
MockClient_ListAttachedRolePolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAttachedRolePolicies'
func (*MockClient_ListAttachedRolePolicies_Call) Return ¶
func (_c *MockClient_ListAttachedRolePolicies_Call) Return(_a0 *serviceiam.ListAttachedRolePoliciesOutput, _a1 error) *MockClient_ListAttachedRolePolicies_Call
func (*MockClient_ListAttachedRolePolicies_Call) Run ¶
func (_c *MockClient_ListAttachedRolePolicies_Call) Run(run func(ctx context.Context, params *serviceiam.ListAttachedRolePoliciesInput, optFns ...func(*serviceiam.Options))) *MockClient_ListAttachedRolePolicies_Call
func (*MockClient_ListAttachedRolePolicies_Call) RunAndReturn ¶
func (_c *MockClient_ListAttachedRolePolicies_Call) RunAndReturn(run func(context.Context, *serviceiam.ListAttachedRolePoliciesInput, ...func(*serviceiam.Options)) (*serviceiam.ListAttachedRolePoliciesOutput, error)) *MockClient_ListAttachedRolePolicies_Call
type MockClient_ListAttachedUserPolicies_Call ¶
MockClient_ListAttachedUserPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAttachedUserPolicies'
func (*MockClient_ListAttachedUserPolicies_Call) Return ¶
func (_c *MockClient_ListAttachedUserPolicies_Call) Return(_a0 *serviceiam.ListAttachedUserPoliciesOutput, _a1 error) *MockClient_ListAttachedUserPolicies_Call
func (*MockClient_ListAttachedUserPolicies_Call) Run ¶
func (_c *MockClient_ListAttachedUserPolicies_Call) Run(run func(ctx context.Context, params *serviceiam.ListAttachedUserPoliciesInput, optFns ...func(*serviceiam.Options))) *MockClient_ListAttachedUserPolicies_Call
func (*MockClient_ListAttachedUserPolicies_Call) RunAndReturn ¶
func (_c *MockClient_ListAttachedUserPolicies_Call) RunAndReturn(run func(context.Context, *serviceiam.ListAttachedUserPoliciesInput, ...func(*serviceiam.Options)) (*serviceiam.ListAttachedUserPoliciesOutput, error)) *MockClient_ListAttachedUserPolicies_Call
type MockClient_ListEntitiesForPolicy_Call ¶
MockClient_ListEntitiesForPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntitiesForPolicy'
func (*MockClient_ListEntitiesForPolicy_Call) Return ¶
func (_c *MockClient_ListEntitiesForPolicy_Call) Return(_a0 *serviceiam.ListEntitiesForPolicyOutput, _a1 error) *MockClient_ListEntitiesForPolicy_Call
func (*MockClient_ListEntitiesForPolicy_Call) Run ¶
func (_c *MockClient_ListEntitiesForPolicy_Call) Run(run func(ctx context.Context, params *serviceiam.ListEntitiesForPolicyInput, optFns ...func(*serviceiam.Options))) *MockClient_ListEntitiesForPolicy_Call
func (*MockClient_ListEntitiesForPolicy_Call) RunAndReturn ¶
func (_c *MockClient_ListEntitiesForPolicy_Call) RunAndReturn(run func(context.Context, *serviceiam.ListEntitiesForPolicyInput, ...func(*serviceiam.Options)) (*serviceiam.ListEntitiesForPolicyOutput, error)) *MockClient_ListEntitiesForPolicy_Call
type MockClient_ListMFADevices_Call ¶
MockClient_ListMFADevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListMFADevices'
func (*MockClient_ListMFADevices_Call) Return ¶
func (_c *MockClient_ListMFADevices_Call) Return(_a0 *serviceiam.ListMFADevicesOutput, _a1 error) *MockClient_ListMFADevices_Call
func (*MockClient_ListMFADevices_Call) Run ¶
func (_c *MockClient_ListMFADevices_Call) Run(run func(ctx context.Context, params *serviceiam.ListMFADevicesInput, optFns ...func(*serviceiam.Options))) *MockClient_ListMFADevices_Call
func (*MockClient_ListMFADevices_Call) RunAndReturn ¶
func (_c *MockClient_ListMFADevices_Call) RunAndReturn(run func(context.Context, *serviceiam.ListMFADevicesInput, ...func(*serviceiam.Options)) (*serviceiam.ListMFADevicesOutput, error)) *MockClient_ListMFADevices_Call
type MockClient_ListPolicies_Call ¶
MockClient_ListPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPolicies'
func (*MockClient_ListPolicies_Call) Return ¶
func (_c *MockClient_ListPolicies_Call) Return(_a0 *serviceiam.ListPoliciesOutput, _a1 error) *MockClient_ListPolicies_Call
func (*MockClient_ListPolicies_Call) Run ¶
func (_c *MockClient_ListPolicies_Call) Run(run func(ctx context.Context, params *serviceiam.ListPoliciesInput, optFns ...func(*serviceiam.Options))) *MockClient_ListPolicies_Call
func (*MockClient_ListPolicies_Call) RunAndReturn ¶
func (_c *MockClient_ListPolicies_Call) RunAndReturn(run func(context.Context, *serviceiam.ListPoliciesInput, ...func(*serviceiam.Options)) (*serviceiam.ListPoliciesOutput, error)) *MockClient_ListPolicies_Call
type MockClient_ListRoles_Call ¶
MockClient_ListRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRoles'
func (*MockClient_ListRoles_Call) Return ¶
func (_c *MockClient_ListRoles_Call) Return(_a0 *serviceiam.ListRolesOutput, _a1 error) *MockClient_ListRoles_Call
func (*MockClient_ListRoles_Call) Run ¶
func (_c *MockClient_ListRoles_Call) Run(run func(ctx context.Context, params *serviceiam.ListRolesInput, optFns ...func(*serviceiam.Options))) *MockClient_ListRoles_Call
func (*MockClient_ListRoles_Call) RunAndReturn ¶
func (_c *MockClient_ListRoles_Call) RunAndReturn(run func(context.Context, *serviceiam.ListRolesInput, ...func(*serviceiam.Options)) (*serviceiam.ListRolesOutput, error)) *MockClient_ListRoles_Call
type MockClient_ListServerCertificates_Call ¶
MockClient_ListServerCertificates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServerCertificates'
func (*MockClient_ListServerCertificates_Call) Return ¶
func (_c *MockClient_ListServerCertificates_Call) Return(_a0 *serviceiam.ListServerCertificatesOutput, _a1 error) *MockClient_ListServerCertificates_Call
func (*MockClient_ListServerCertificates_Call) Run ¶
func (_c *MockClient_ListServerCertificates_Call) Run(run func(ctx context.Context, params *serviceiam.ListServerCertificatesInput, optFns ...func(*serviceiam.Options))) *MockClient_ListServerCertificates_Call
func (*MockClient_ListServerCertificates_Call) RunAndReturn ¶
func (_c *MockClient_ListServerCertificates_Call) RunAndReturn(run func(context.Context, *serviceiam.ListServerCertificatesInput, ...func(*serviceiam.Options)) (*serviceiam.ListServerCertificatesOutput, error)) *MockClient_ListServerCertificates_Call
type MockClient_ListUserPolicies_Call ¶
MockClient_ListUserPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUserPolicies'
func (*MockClient_ListUserPolicies_Call) Return ¶
func (_c *MockClient_ListUserPolicies_Call) Return(_a0 *serviceiam.ListUserPoliciesOutput, _a1 error) *MockClient_ListUserPolicies_Call
func (*MockClient_ListUserPolicies_Call) Run ¶
func (_c *MockClient_ListUserPolicies_Call) Run(run func(ctx context.Context, params *serviceiam.ListUserPoliciesInput, optFns ...func(*serviceiam.Options))) *MockClient_ListUserPolicies_Call
func (*MockClient_ListUserPolicies_Call) RunAndReturn ¶
func (_c *MockClient_ListUserPolicies_Call) RunAndReturn(run func(context.Context, *serviceiam.ListUserPoliciesInput, ...func(*serviceiam.Options)) (*serviceiam.ListUserPoliciesOutput, error)) *MockClient_ListUserPolicies_Call
type MockClient_ListUsers_Call ¶
MockClient_ListUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUsers'
func (*MockClient_ListUsers_Call) Return ¶
func (_c *MockClient_ListUsers_Call) Return(_a0 *serviceiam.ListUsersOutput, _a1 error) *MockClient_ListUsers_Call
func (*MockClient_ListUsers_Call) Run ¶
func (_c *MockClient_ListUsers_Call) Run(run func(ctx context.Context, params *serviceiam.ListUsersInput, optFns ...func(*serviceiam.Options))) *MockClient_ListUsers_Call
func (*MockClient_ListUsers_Call) RunAndReturn ¶
func (_c *MockClient_ListUsers_Call) RunAndReturn(run func(context.Context, *serviceiam.ListUsersInput, ...func(*serviceiam.Options)) (*serviceiam.ListUsersOutput, error)) *MockClient_ListUsers_Call
type MockClient_ListVirtualMFADevices_Call ¶
MockClient_ListVirtualMFADevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListVirtualMFADevices'
func (*MockClient_ListVirtualMFADevices_Call) Return ¶
func (_c *MockClient_ListVirtualMFADevices_Call) Return(_a0 *serviceiam.ListVirtualMFADevicesOutput, _a1 error) *MockClient_ListVirtualMFADevices_Call
func (*MockClient_ListVirtualMFADevices_Call) Run ¶
func (_c *MockClient_ListVirtualMFADevices_Call) Run(run func(ctx context.Context, params *serviceiam.ListVirtualMFADevicesInput, optFns ...func(*serviceiam.Options))) *MockClient_ListVirtualMFADevices_Call
func (*MockClient_ListVirtualMFADevices_Call) RunAndReturn ¶
func (_c *MockClient_ListVirtualMFADevices_Call) RunAndReturn(run func(context.Context, *serviceiam.ListVirtualMFADevicesInput, ...func(*serviceiam.Options)) (*serviceiam.ListVirtualMFADevicesOutput, error)) *MockClient_ListVirtualMFADevices_Call
type MockRoleGetter ¶
MockRoleGetter is an autogenerated mock type for the RoleGetter type
func NewMockRoleGetter ¶
func NewMockRoleGetter(t interface { mock.TestingT Cleanup(func()) }) *MockRoleGetter
NewMockRoleGetter creates a new instance of MockRoleGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockRoleGetter) EXPECT ¶
func (_m *MockRoleGetter) EXPECT() *MockRoleGetter_Expecter
type MockRoleGetter_Expecter ¶
type MockRoleGetter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRoleGetter_Expecter) GetRole ¶
func (_e *MockRoleGetter_Expecter) GetRole(ctx interface{}, roleName interface{}) *MockRoleGetter_GetRole_Call
GetRole is a helper method to define mock.On call
- ctx context.Context
- roleName string
type MockRoleGetter_GetRole_Call ¶
MockRoleGetter_GetRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRole'
func (*MockRoleGetter_GetRole_Call) Return ¶
func (_c *MockRoleGetter_GetRole_Call) Return(_a0 *Role, _a1 error) *MockRoleGetter_GetRole_Call
func (*MockRoleGetter_GetRole_Call) Run ¶
func (_c *MockRoleGetter_GetRole_Call) Run(run func(ctx context.Context, roleName string)) *MockRoleGetter_GetRole_Call
func (*MockRoleGetter_GetRole_Call) RunAndReturn ¶
func (_c *MockRoleGetter_GetRole_Call) RunAndReturn(run func(context.Context, string) (*Role, error)) *MockRoleGetter_GetRole_Call
type PasswordPolicy ¶
type PasswordPolicy struct { ReusePreventionCount int `json:"reuse_prevention_count"` RequireLowercase bool `json:"require_lowercase"` RequireUppercase bool `json:"require_uppercase"` RequireNumbers bool `json:"require_numbers"` RequireSymbols bool `json:"require_symbols"` MaxAgeDays int `json:"max_age_days"` MinimumLength int `json:"minimum_length"` }
func (PasswordPolicy) GetRegion ¶
func (p PasswordPolicy) GetRegion() string
func (PasswordPolicy) GetResourceArn ¶
func (p PasswordPolicy) GetResourceArn() string
func (PasswordPolicy) GetResourceName ¶
func (p PasswordPolicy) GetResourceName() string
func (PasswordPolicy) GetResourceType ¶
func (p PasswordPolicy) GetResourceType() string
type Policy ¶
type Policy struct { types.Policy Document map[string]any `json:"document,omitempty"` Roles []types.PolicyRole `json:"roles"` }
func (Policy) GetResourceArn ¶
func (Policy) GetResourceName ¶
func (Policy) GetResourceType ¶
type PolicyDocument ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewIAMProvider ¶
func NewIAMProvider(ctx context.Context, log *logp.Logger, cfg aws.Config, crossRegionFactory awslib.CrossRegionFactory[AccessAnalyzerClient]) *Provider
func (Provider) GetAccessAnalyzers ¶
func (Provider) GetIAMRolePermissions ¶
func (Provider) GetPasswordPolicy ¶
func (Provider) GetPolicies ¶
func (Provider) ListServerCertificates ¶
type RoleGetter ¶
type RolePolicyInfo ¶
type RolePolicyInfo struct { PolicyARN string iamsdk.GetRolePolicyOutput }
func (RolePolicyInfo) GetResourceArn ¶
func (r RolePolicyInfo) GetResourceArn() string
func (RolePolicyInfo) GetResourceName ¶
func (r RolePolicyInfo) GetResourceName() string
func (RolePolicyInfo) GetResourceType ¶
func (r RolePolicyInfo) GetResourceType() string
type ServerCertificatesInfo ¶
type ServerCertificatesInfo struct {
Certificates []types.ServerCertificateMetadata `json:"certificates"`
}
func (ServerCertificatesInfo) GetRegion ¶
func (c ServerCertificatesInfo) GetRegion() string
func (ServerCertificatesInfo) GetResourceArn ¶
func (c ServerCertificatesInfo) GetResourceArn() string
func (ServerCertificatesInfo) GetResourceName ¶
func (c ServerCertificatesInfo) GetResourceName() string
func (ServerCertificatesInfo) GetResourceType ¶
func (c ServerCertificatesInfo) GetResourceType() string
type User ¶
type User struct { AccessKeys []AccessKey `json:"access_keys,omitempty"` MFADevices []AuthDevice `json:"mfa_devices,omitempty"` InlinePolicies []PolicyDocument `json:"inline_policies"` AttachedPolicies []types.AttachedPolicy `json:"attached_policies"` Name string `json:"name,omitempty"` LastAccess string `json:"last_access,omitempty"` Arn string `json:"arn,omitempty"` PasswordLastChanged string `json:"password_last_changed,omitempty"` MfaActive bool `json:"mfa_active"` PasswordEnabled bool `json:"password_enabled"` UserId string `json:"user_id"` }
User Override SDK User type