Documentation
¶
Index ¶
- Constants
- func AccessProviderActionStrings() []string
- type AccessHandler
- func NewAccessHandler(executor AccessHandlerExecutor, handlerType model.AccessProviderType, ...) AccessHandler
- func NewAccessProviderHandler(allAccessProviders *AccessProvidersByType, repo dataAccessRepository, ...) AccessHandler
- func NewPolicyAccessHandler(allAccessProviders *AccessProvidersByType, repo dataAccessRepository, ...) AccessHandler
- func NewRoleAccessHandler(allAccessProviders *AccessProvidersByType, repo dataAccessRepository, ...) AccessHandler
- func NewSSORoleAccessHandler(allAccessProviders *AccessProvidersByType, repo dataAccessRepository, ...) AccessHandler
- func (a *AccessHandler) HandleDeletes(ctx context.Context)
- func (a *AccessHandler) HandleUpdates(ctx context.Context)
- func (a *AccessHandler) Initialize(ctx context.Context, configmap *config.ConfigMap) error
- func (a *AccessHandler) PrepareAccessProviders(ctx context.Context)
- func (a *AccessHandler) ProcessInheritance() map[string]*AccessProviderDetails
- type AccessHandlerExecutor
- type AccessProviderAction
- type AccessProviderDetails
- type AccessProvidersByType
- func (a *AccessProvidersByType) AddAccessProvider(t model.AccessProviderType, ap *sync_to_target.AccessProvider, ...) *model.AccessProviderType
- func (a *AccessProvidersByType) GetAccessProvider(t model.AccessProviderType, name string) *AccessProviderDetails
- func (a *AccessProvidersByType) GetAllAccessProvidersInInheritanceChainForWhat(t model.AccessProviderType, start string, ...) set.Set[*AccessProviderDetails]
- func (a *AccessProvidersByType) GetDescendants(t model.AccessProviderType, name string, ...) set.Set[*AccessProviderDetails]
- type AccessSyncer
- func (a *AccessSyncer) FetchS3AccessPointAccessProviders(ctx context.Context, configMap *config.ConfigMap, ...) ([]model.AccessProviderInputExtended, error)
- func (a *AccessSyncer) SyncAccessProviderToTarget(ctx context.Context, accessProviders *sync_to_target.AccessProviderImport, ...) error
- func (a *AccessSyncer) SyncAccessProvidersFromTarget(ctx context.Context, accessProviderHandler wrappers.AccessProviderHandler, ...) error
- type Assignee
- type MockdataAccessIamRepository
- type MockdataAccessIamRepository_Expecter
- type MockdataAccessIamRepository_GetGroups_Call
- func (_c *MockdataAccessIamRepository_GetGroups_Call) Return(_a0 []model.GroupEntity, _a1 error) *MockdataAccessIamRepository_GetGroups_Call
- func (_c *MockdataAccessIamRepository_GetGroups_Call) Run(run func(ctx context.Context)) *MockdataAccessIamRepository_GetGroups_Call
- func (_c *MockdataAccessIamRepository_GetGroups_Call) RunAndReturn(run func(context.Context) ([]model.GroupEntity, error)) *MockdataAccessIamRepository_GetGroups_Call
- type MockdataAccessIamRepository_GetUsers_Call
- func (_c *MockdataAccessIamRepository_GetUsers_Call) Return(_a0 []model.UserEntity, _a1 error) *MockdataAccessIamRepository_GetUsers_Call
- func (_c *MockdataAccessIamRepository_GetUsers_Call) Run(run func(ctx context.Context, withDetails bool)) *MockdataAccessIamRepository_GetUsers_Call
- func (_c *MockdataAccessIamRepository_GetUsers_Call) RunAndReturn(run func(context.Context, bool) ([]model.UserEntity, error)) *MockdataAccessIamRepository_GetUsers_Call
- type MockdataAccessRepository
- func (_m *MockdataAccessRepository) AttachGroupToManagedPolicy(ctx context.Context, policyArn string, groupNames []string) error
- func (_m *MockdataAccessRepository) AttachRoleToManagedPolicy(ctx context.Context, policyArn string, roleNames []string) error
- func (_m *MockdataAccessRepository) AttachUserToManagedPolicy(ctx context.Context, policyArn string, userNames []string) error
- func (_m *MockdataAccessRepository) ClearCache()
- func (_m *MockdataAccessRepository) CreateAccessPoint(ctx context.Context, name string, bucket string, region string, ...) (string, error)
- func (_m *MockdataAccessRepository) CreateManagedPolicy(ctx context.Context, policyName string, statements []*awspolicy.Statement) (*types.Policy, error)
- func (_m *MockdataAccessRepository) CreateRole(ctx context.Context, name string, description string, userNames []string) (bool, error)
- func (_m *MockdataAccessRepository) CreateRoleInlinePolicy(ctx context.Context, roleName string, policyName string, ...) error
- func (_m *MockdataAccessRepository) DeleteAccessPoint(ctx context.Context, name string, region string) error
- func (_m *MockdataAccessRepository) DeleteInlinePolicy(ctx context.Context, policyName string, resourceName string, ...) error
- func (_m *MockdataAccessRepository) DeleteManagedPolicy(ctx context.Context, policyName string, awsManaged bool) error
- func (_m *MockdataAccessRepository) DeleteRole(ctx context.Context, name string) error
- func (_m *MockdataAccessRepository) DeleteRoleInlinePolicies(ctx context.Context, roleName string) error
- func (_m *MockdataAccessRepository) DetachGroupFromManagedPolicy(ctx context.Context, policyArn string, groupNames []string) error
- func (_m *MockdataAccessRepository) DetachRoleFromManagedPolicy(ctx context.Context, policyArn string, roleNames []string) error
- func (_m *MockdataAccessRepository) DetachUserFromManagedPolicy(ctx context.Context, policyArn string, userNames []string) error
- func (_m *MockdataAccessRepository) EXPECT() *MockdataAccessRepository_Expecter
- func (_m *MockdataAccessRepository) GetGroups(ctx context.Context) ([]model.GroupEntity, error)
- func (_m *MockdataAccessRepository) GetInlinePoliciesForEntities(ctx context.Context, entityNames []string, entityType string) (map[string][]model.PolicyEntity, error)
- func (_m *MockdataAccessRepository) GetManagedPolicies(ctx context.Context) ([]model.PolicyEntity, error)
- func (_m *MockdataAccessRepository) GetPolicyArn(policyName string, awsManaged bool, configMap *config.ConfigMap) string
- func (_m *MockdataAccessRepository) GetRoles(ctx context.Context, excludedRoles []string) ([]model.RoleEntity, error)
- func (_m *MockdataAccessRepository) GetSsoRoleWithPrefix(ctx context.Context, prefixName string, excludedRoles []string) (*model.RoleEntity, error)
- func (_m *MockdataAccessRepository) GetUsers(ctx context.Context, withDetails bool) ([]model.UserEntity, error)
- func (_m *MockdataAccessRepository) ListAccessPoints(ctx context.Context, region string) ([]model.AwsS3AccessPoint, error)
- func (_m *MockdataAccessRepository) UpdateAccessPoint(ctx context.Context, name string, region string, ...) error
- func (_m *MockdataAccessRepository) UpdateAssumeEntities(ctx context.Context, roleName string, userNames []string) error
- func (_m *MockdataAccessRepository) UpdateInlinePolicy(ctx context.Context, policyName string, resourceName string, ...) error
- func (_m *MockdataAccessRepository) UpdateManagedPolicy(ctx context.Context, policyName string, awsManaged bool, ...) error
- type MockdataAccessRepository_AttachGroupToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachGroupToManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_AttachGroupToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachGroupToManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, groupNames []string)) *MockdataAccessRepository_AttachGroupToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachGroupToManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_AttachGroupToManagedPolicy_Call
- type MockdataAccessRepository_AttachRoleToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachRoleToManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_AttachRoleToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachRoleToManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, roleNames []string)) *MockdataAccessRepository_AttachRoleToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachRoleToManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_AttachRoleToManagedPolicy_Call
- type MockdataAccessRepository_AttachUserToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachUserToManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_AttachUserToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachUserToManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, userNames []string)) *MockdataAccessRepository_AttachUserToManagedPolicy_Call
- func (_c *MockdataAccessRepository_AttachUserToManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_AttachUserToManagedPolicy_Call
- type MockdataAccessRepository_ClearCache_Call
- func (_c *MockdataAccessRepository_ClearCache_Call) Return() *MockdataAccessRepository_ClearCache_Call
- func (_c *MockdataAccessRepository_ClearCache_Call) Run(run func()) *MockdataAccessRepository_ClearCache_Call
- func (_c *MockdataAccessRepository_ClearCache_Call) RunAndReturn(run func()) *MockdataAccessRepository_ClearCache_Call
- type MockdataAccessRepository_CreateAccessPoint_Call
- func (_c *MockdataAccessRepository_CreateAccessPoint_Call) Return(_a0 string, _a1 error) *MockdataAccessRepository_CreateAccessPoint_Call
- func (_c *MockdataAccessRepository_CreateAccessPoint_Call) Run(run func(ctx context.Context, name string, bucket string, region string, ...)) *MockdataAccessRepository_CreateAccessPoint_Call
- func (_c *MockdataAccessRepository_CreateAccessPoint_Call) RunAndReturn(...) *MockdataAccessRepository_CreateAccessPoint_Call
- type MockdataAccessRepository_CreateManagedPolicy_Call
- func (_c *MockdataAccessRepository_CreateManagedPolicy_Call) Return(_a0 *types.Policy, _a1 error) *MockdataAccessRepository_CreateManagedPolicy_Call
- func (_c *MockdataAccessRepository_CreateManagedPolicy_Call) Run(...) *MockdataAccessRepository_CreateManagedPolicy_Call
- func (_c *MockdataAccessRepository_CreateManagedPolicy_Call) RunAndReturn(...) *MockdataAccessRepository_CreateManagedPolicy_Call
- type MockdataAccessRepository_CreateRoleInlinePolicy_Call
- func (_c *MockdataAccessRepository_CreateRoleInlinePolicy_Call) Return(_a0 error) *MockdataAccessRepository_CreateRoleInlinePolicy_Call
- func (_c *MockdataAccessRepository_CreateRoleInlinePolicy_Call) Run(run func(ctx context.Context, roleName string, policyName string, ...)) *MockdataAccessRepository_CreateRoleInlinePolicy_Call
- func (_c *MockdataAccessRepository_CreateRoleInlinePolicy_Call) RunAndReturn(run func(context.Context, string, string, []*awspolicy.Statement) error) *MockdataAccessRepository_CreateRoleInlinePolicy_Call
- type MockdataAccessRepository_CreateRole_Call
- func (_c *MockdataAccessRepository_CreateRole_Call) Return(_a0 bool, _a1 error) *MockdataAccessRepository_CreateRole_Call
- func (_c *MockdataAccessRepository_CreateRole_Call) Run(...) *MockdataAccessRepository_CreateRole_Call
- func (_c *MockdataAccessRepository_CreateRole_Call) RunAndReturn(run func(context.Context, string, string, []string) (bool, error)) *MockdataAccessRepository_CreateRole_Call
- type MockdataAccessRepository_DeleteAccessPoint_Call
- func (_c *MockdataAccessRepository_DeleteAccessPoint_Call) Return(_a0 error) *MockdataAccessRepository_DeleteAccessPoint_Call
- func (_c *MockdataAccessRepository_DeleteAccessPoint_Call) Run(run func(ctx context.Context, name string, region string)) *MockdataAccessRepository_DeleteAccessPoint_Call
- func (_c *MockdataAccessRepository_DeleteAccessPoint_Call) RunAndReturn(run func(context.Context, string, string) error) *MockdataAccessRepository_DeleteAccessPoint_Call
- type MockdataAccessRepository_DeleteInlinePolicy_Call
- func (_c *MockdataAccessRepository_DeleteInlinePolicy_Call) Return(_a0 error) *MockdataAccessRepository_DeleteInlinePolicy_Call
- func (_c *MockdataAccessRepository_DeleteInlinePolicy_Call) Run(run func(ctx context.Context, policyName string, resourceName string, ...)) *MockdataAccessRepository_DeleteInlinePolicy_Call
- func (_c *MockdataAccessRepository_DeleteInlinePolicy_Call) RunAndReturn(run func(context.Context, string, string, string) error) *MockdataAccessRepository_DeleteInlinePolicy_Call
- type MockdataAccessRepository_DeleteManagedPolicy_Call
- func (_c *MockdataAccessRepository_DeleteManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_DeleteManagedPolicy_Call
- func (_c *MockdataAccessRepository_DeleteManagedPolicy_Call) Run(run func(ctx context.Context, policyName string, awsManaged bool)) *MockdataAccessRepository_DeleteManagedPolicy_Call
- func (_c *MockdataAccessRepository_DeleteManagedPolicy_Call) RunAndReturn(run func(context.Context, string, bool) error) *MockdataAccessRepository_DeleteManagedPolicy_Call
- type MockdataAccessRepository_DeleteRoleInlinePolicies_Call
- func (_c *MockdataAccessRepository_DeleteRoleInlinePolicies_Call) Return(_a0 error) *MockdataAccessRepository_DeleteRoleInlinePolicies_Call
- func (_c *MockdataAccessRepository_DeleteRoleInlinePolicies_Call) Run(run func(ctx context.Context, roleName string)) *MockdataAccessRepository_DeleteRoleInlinePolicies_Call
- func (_c *MockdataAccessRepository_DeleteRoleInlinePolicies_Call) RunAndReturn(run func(context.Context, string) error) *MockdataAccessRepository_DeleteRoleInlinePolicies_Call
- type MockdataAccessRepository_DeleteRole_Call
- func (_c *MockdataAccessRepository_DeleteRole_Call) Return(_a0 error) *MockdataAccessRepository_DeleteRole_Call
- func (_c *MockdataAccessRepository_DeleteRole_Call) Run(run func(ctx context.Context, name string)) *MockdataAccessRepository_DeleteRole_Call
- func (_c *MockdataAccessRepository_DeleteRole_Call) RunAndReturn(run func(context.Context, string) error) *MockdataAccessRepository_DeleteRole_Call
- type MockdataAccessRepository_DetachGroupFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, groupNames []string)) *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call
- type MockdataAccessRepository_DetachRoleFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, roleNames []string)) *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call
- type MockdataAccessRepository_DetachUserFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachUserFromManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_DetachUserFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachUserFromManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, userNames []string)) *MockdataAccessRepository_DetachUserFromManagedPolicy_Call
- func (_c *MockdataAccessRepository_DetachUserFromManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_DetachUserFromManagedPolicy_Call
- type MockdataAccessRepository_Expecter
- func (_e *MockdataAccessRepository_Expecter) AttachGroupToManagedPolicy(ctx interface{}, policyArn interface{}, groupNames interface{}) *MockdataAccessRepository_AttachGroupToManagedPolicy_Call
- func (_e *MockdataAccessRepository_Expecter) AttachRoleToManagedPolicy(ctx interface{}, policyArn interface{}, roleNames interface{}) *MockdataAccessRepository_AttachRoleToManagedPolicy_Call
- func (_e *MockdataAccessRepository_Expecter) AttachUserToManagedPolicy(ctx interface{}, policyArn interface{}, userNames interface{}) *MockdataAccessRepository_AttachUserToManagedPolicy_Call
- func (_e *MockdataAccessRepository_Expecter) ClearCache() *MockdataAccessRepository_ClearCache_Call
- func (_e *MockdataAccessRepository_Expecter) CreateAccessPoint(ctx interface{}, name interface{}, bucket interface{}, region interface{}, ...) *MockdataAccessRepository_CreateAccessPoint_Call
- func (_e *MockdataAccessRepository_Expecter) CreateManagedPolicy(ctx interface{}, policyName interface{}, statements interface{}) *MockdataAccessRepository_CreateManagedPolicy_Call
- func (_e *MockdataAccessRepository_Expecter) CreateRole(ctx interface{}, name interface{}, description interface{}, ...) *MockdataAccessRepository_CreateRole_Call
- func (_e *MockdataAccessRepository_Expecter) CreateRoleInlinePolicy(ctx interface{}, roleName interface{}, policyName interface{}, ...) *MockdataAccessRepository_CreateRoleInlinePolicy_Call
- func (_e *MockdataAccessRepository_Expecter) DeleteAccessPoint(ctx interface{}, name interface{}, region interface{}) *MockdataAccessRepository_DeleteAccessPoint_Call
- func (_e *MockdataAccessRepository_Expecter) DeleteInlinePolicy(ctx interface{}, policyName interface{}, resourceName interface{}, ...) *MockdataAccessRepository_DeleteInlinePolicy_Call
- func (_e *MockdataAccessRepository_Expecter) DeleteManagedPolicy(ctx interface{}, policyName interface{}, awsManaged interface{}) *MockdataAccessRepository_DeleteManagedPolicy_Call
- func (_e *MockdataAccessRepository_Expecter) DeleteRole(ctx interface{}, name interface{}) *MockdataAccessRepository_DeleteRole_Call
- func (_e *MockdataAccessRepository_Expecter) DeleteRoleInlinePolicies(ctx interface{}, roleName interface{}) *MockdataAccessRepository_DeleteRoleInlinePolicies_Call
- func (_e *MockdataAccessRepository_Expecter) DetachGroupFromManagedPolicy(ctx interface{}, policyArn interface{}, groupNames interface{}) *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call
- func (_e *MockdataAccessRepository_Expecter) DetachRoleFromManagedPolicy(ctx interface{}, policyArn interface{}, roleNames interface{}) *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call
- func (_e *MockdataAccessRepository_Expecter) DetachUserFromManagedPolicy(ctx interface{}, policyArn interface{}, userNames interface{}) *MockdataAccessRepository_DetachUserFromManagedPolicy_Call
- func (_e *MockdataAccessRepository_Expecter) GetGroups(ctx interface{}) *MockdataAccessRepository_GetGroups_Call
- func (_e *MockdataAccessRepository_Expecter) GetInlinePoliciesForEntities(ctx interface{}, entityNames interface{}, entityType interface{}) *MockdataAccessRepository_GetInlinePoliciesForEntities_Call
- func (_e *MockdataAccessRepository_Expecter) GetManagedPolicies(ctx interface{}) *MockdataAccessRepository_GetManagedPolicies_Call
- func (_e *MockdataAccessRepository_Expecter) GetPolicyArn(policyName interface{}, awsManaged interface{}, configMap interface{}) *MockdataAccessRepository_GetPolicyArn_Call
- func (_e *MockdataAccessRepository_Expecter) GetRoles(ctx interface{}, excludedRoles interface{}) *MockdataAccessRepository_GetRoles_Call
- func (_e *MockdataAccessRepository_Expecter) GetSsoRoleWithPrefix(ctx interface{}, prefixName interface{}, excludedRoles interface{}) *MockdataAccessRepository_GetSsoRoleWithPrefix_Call
- func (_e *MockdataAccessRepository_Expecter) GetUsers(ctx interface{}, withDetails interface{}) *MockdataAccessRepository_GetUsers_Call
- func (_e *MockdataAccessRepository_Expecter) ListAccessPoints(ctx interface{}, region interface{}) *MockdataAccessRepository_ListAccessPoints_Call
- func (_e *MockdataAccessRepository_Expecter) UpdateAccessPoint(ctx interface{}, name interface{}, region interface{}, statements interface{}) *MockdataAccessRepository_UpdateAccessPoint_Call
- func (_e *MockdataAccessRepository_Expecter) UpdateAssumeEntities(ctx interface{}, roleName interface{}, userNames interface{}) *MockdataAccessRepository_UpdateAssumeEntities_Call
- func (_e *MockdataAccessRepository_Expecter) UpdateInlinePolicy(ctx interface{}, policyName interface{}, resourceName interface{}, ...) *MockdataAccessRepository_UpdateInlinePolicy_Call
- func (_e *MockdataAccessRepository_Expecter) UpdateManagedPolicy(ctx interface{}, policyName interface{}, awsManaged interface{}, ...) *MockdataAccessRepository_UpdateManagedPolicy_Call
- type MockdataAccessRepository_GetGroups_Call
- func (_c *MockdataAccessRepository_GetGroups_Call) Return(_a0 []model.GroupEntity, _a1 error) *MockdataAccessRepository_GetGroups_Call
- func (_c *MockdataAccessRepository_GetGroups_Call) Run(run func(ctx context.Context)) *MockdataAccessRepository_GetGroups_Call
- func (_c *MockdataAccessRepository_GetGroups_Call) RunAndReturn(run func(context.Context) ([]model.GroupEntity, error)) *MockdataAccessRepository_GetGroups_Call
- type MockdataAccessRepository_GetInlinePoliciesForEntities_Call
- func (_c *MockdataAccessRepository_GetInlinePoliciesForEntities_Call) Return(_a0 map[string][]model.PolicyEntity, _a1 error) *MockdataAccessRepository_GetInlinePoliciesForEntities_Call
- func (_c *MockdataAccessRepository_GetInlinePoliciesForEntities_Call) Run(run func(ctx context.Context, entityNames []string, entityType string)) *MockdataAccessRepository_GetInlinePoliciesForEntities_Call
- func (_c *MockdataAccessRepository_GetInlinePoliciesForEntities_Call) RunAndReturn(...) *MockdataAccessRepository_GetInlinePoliciesForEntities_Call
- type MockdataAccessRepository_GetManagedPolicies_Call
- func (_c *MockdataAccessRepository_GetManagedPolicies_Call) Return(_a0 []model.PolicyEntity, _a1 error) *MockdataAccessRepository_GetManagedPolicies_Call
- func (_c *MockdataAccessRepository_GetManagedPolicies_Call) Run(run func(ctx context.Context)) *MockdataAccessRepository_GetManagedPolicies_Call
- func (_c *MockdataAccessRepository_GetManagedPolicies_Call) RunAndReturn(run func(context.Context) ([]model.PolicyEntity, error)) *MockdataAccessRepository_GetManagedPolicies_Call
- type MockdataAccessRepository_GetPolicyArn_Call
- func (_c *MockdataAccessRepository_GetPolicyArn_Call) Return(_a0 string) *MockdataAccessRepository_GetPolicyArn_Call
- func (_c *MockdataAccessRepository_GetPolicyArn_Call) Run(run func(policyName string, awsManaged bool, configMap *config.ConfigMap)) *MockdataAccessRepository_GetPolicyArn_Call
- func (_c *MockdataAccessRepository_GetPolicyArn_Call) RunAndReturn(run func(string, bool, *config.ConfigMap) string) *MockdataAccessRepository_GetPolicyArn_Call
- type MockdataAccessRepository_GetRoles_Call
- func (_c *MockdataAccessRepository_GetRoles_Call) Return(_a0 []model.RoleEntity, _a1 error) *MockdataAccessRepository_GetRoles_Call
- func (_c *MockdataAccessRepository_GetRoles_Call) Run(run func(ctx context.Context, excludedRoles []string)) *MockdataAccessRepository_GetRoles_Call
- func (_c *MockdataAccessRepository_GetRoles_Call) RunAndReturn(run func(context.Context, []string) ([]model.RoleEntity, error)) *MockdataAccessRepository_GetRoles_Call
- type MockdataAccessRepository_GetSsoRoleWithPrefix_Call
- func (_c *MockdataAccessRepository_GetSsoRoleWithPrefix_Call) Return(_a0 *model.RoleEntity, _a1 error) *MockdataAccessRepository_GetSsoRoleWithPrefix_Call
- func (_c *MockdataAccessRepository_GetSsoRoleWithPrefix_Call) Run(run func(ctx context.Context, prefixName string, excludedRoles []string)) *MockdataAccessRepository_GetSsoRoleWithPrefix_Call
- func (_c *MockdataAccessRepository_GetSsoRoleWithPrefix_Call) RunAndReturn(run func(context.Context, string, []string) (*model.RoleEntity, error)) *MockdataAccessRepository_GetSsoRoleWithPrefix_Call
- type MockdataAccessRepository_GetUsers_Call
- func (_c *MockdataAccessRepository_GetUsers_Call) Return(_a0 []model.UserEntity, _a1 error) *MockdataAccessRepository_GetUsers_Call
- func (_c *MockdataAccessRepository_GetUsers_Call) Run(run func(ctx context.Context, withDetails bool)) *MockdataAccessRepository_GetUsers_Call
- func (_c *MockdataAccessRepository_GetUsers_Call) RunAndReturn(run func(context.Context, bool) ([]model.UserEntity, error)) *MockdataAccessRepository_GetUsers_Call
- type MockdataAccessRepository_ListAccessPoints_Call
- func (_c *MockdataAccessRepository_ListAccessPoints_Call) Return(_a0 []model.AwsS3AccessPoint, _a1 error) *MockdataAccessRepository_ListAccessPoints_Call
- func (_c *MockdataAccessRepository_ListAccessPoints_Call) Run(run func(ctx context.Context, region string)) *MockdataAccessRepository_ListAccessPoints_Call
- func (_c *MockdataAccessRepository_ListAccessPoints_Call) RunAndReturn(run func(context.Context, string) ([]model.AwsS3AccessPoint, error)) *MockdataAccessRepository_ListAccessPoints_Call
- type MockdataAccessRepository_UpdateAccessPoint_Call
- func (_c *MockdataAccessRepository_UpdateAccessPoint_Call) Return(_a0 error) *MockdataAccessRepository_UpdateAccessPoint_Call
- func (_c *MockdataAccessRepository_UpdateAccessPoint_Call) Run(run func(ctx context.Context, name string, region string, ...)) *MockdataAccessRepository_UpdateAccessPoint_Call
- func (_c *MockdataAccessRepository_UpdateAccessPoint_Call) RunAndReturn(run func(context.Context, string, string, []*awspolicy.Statement) error) *MockdataAccessRepository_UpdateAccessPoint_Call
- type MockdataAccessRepository_UpdateAssumeEntities_Call
- func (_c *MockdataAccessRepository_UpdateAssumeEntities_Call) Return(_a0 error) *MockdataAccessRepository_UpdateAssumeEntities_Call
- func (_c *MockdataAccessRepository_UpdateAssumeEntities_Call) Run(run func(ctx context.Context, roleName string, userNames []string)) *MockdataAccessRepository_UpdateAssumeEntities_Call
- func (_c *MockdataAccessRepository_UpdateAssumeEntities_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_UpdateAssumeEntities_Call
- type MockdataAccessRepository_UpdateInlinePolicy_Call
- func (_c *MockdataAccessRepository_UpdateInlinePolicy_Call) Return(_a0 error) *MockdataAccessRepository_UpdateInlinePolicy_Call
- func (_c *MockdataAccessRepository_UpdateInlinePolicy_Call) Run(run func(ctx context.Context, policyName string, resourceName string, ...)) *MockdataAccessRepository_UpdateInlinePolicy_Call
- func (_c *MockdataAccessRepository_UpdateInlinePolicy_Call) RunAndReturn(...) *MockdataAccessRepository_UpdateInlinePolicy_Call
- type MockdataAccessRepository_UpdateManagedPolicy_Call
- func (_c *MockdataAccessRepository_UpdateManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_UpdateManagedPolicy_Call
- func (_c *MockdataAccessRepository_UpdateManagedPolicy_Call) Run(run func(ctx context.Context, policyName string, awsManaged bool, ...)) *MockdataAccessRepository_UpdateManagedPolicy_Call
- func (_c *MockdataAccessRepository_UpdateManagedPolicy_Call) RunAndReturn(run func(context.Context, string, bool, []*awspolicy.Statement) error) *MockdataAccessRepository_UpdateManagedPolicy_Call
- type MockdataAccessSsoRepository
- func (_m *MockdataAccessSsoRepository) AssignPermissionSet(ctx context.Context, permissionSetArn string, ...) error
- func (_m *MockdataAccessSsoRepository) AttachAwsManagedPolicyToPermissionSet(ctx context.Context, permissionSetArn string, policyArn string) error
- func (_m *MockdataAccessSsoRepository) AttachCustomerManagedPolicyToPermissionSet(ctx context.Context, permissionSetArn string, name string, path *string) error
- func (_m *MockdataAccessSsoRepository) CreateSsoRole(ctx context.Context, name string, description string) (string, error)
- func (_m *MockdataAccessSsoRepository) DeleteSsoRole(ctx context.Context, permissionSetArn string) error
- func (_m *MockdataAccessSsoRepository) DetachAwsManagedPolicyFromPermissionSet(ctx context.Context, permissionSetArn string, policyArn string) error
- func (_m *MockdataAccessSsoRepository) DetachCustomerManagedPolicyFromPermissionSet(ctx context.Context, permissionSetArn string, name string, path *string) error
- func (_m *MockdataAccessSsoRepository) EXPECT() *MockdataAccessSsoRepository_Expecter
- func (_m *MockdataAccessSsoRepository) GetGroups(ctx context.Context) (bimap.Bimap[string, string], error)
- func (_m *MockdataAccessSsoRepository) GetSsoRole(ctx context.Context, permissionSetArn string) (*types.PermissionSet, error)
- func (_m *MockdataAccessSsoRepository) GetUsers(ctx context.Context) (bimap.Bimap[string, string], error)
- func (_m *MockdataAccessSsoRepository) HasRaitoCreatedTag(ctx context.Context, permissionSetArn string) (bool, error)
- func (_m *MockdataAccessSsoRepository) ListAwsManagedPolicyFromPermissionSet(ctx context.Context, permissionSetArn string) (set.Set[string], error)
- func (_m *MockdataAccessSsoRepository) ListCustomerManagedPolicyFromPermissionSet(ctx context.Context, permissionSetArn string) (set.Set[string], error)
- func (_m *MockdataAccessSsoRepository) ListPermissionSetAssignment(ctx context.Context, permissionSetArn string) ([]types.AccountAssignment, error)
- func (_m *MockdataAccessSsoRepository) ListSsoRole(ctx context.Context) ([]string, error)
- func (_m *MockdataAccessSsoRepository) ProvisionPermissionSet(ctx context.Context, permissionSetArn string) (*types.PermissionSetProvisioningStatus, error)
- func (_m *MockdataAccessSsoRepository) UnassignPermissionSet(ctx context.Context, permissionSetArn string, ...) error
- func (_m *MockdataAccessSsoRepository) UpdateInlinePolicyToPermissionSet(ctx context.Context, permissionSetArn string, ...) error
- func (_m *MockdataAccessSsoRepository) UpdateSsoRole(ctx context.Context, arn string, description string) error
- type MockdataAccessSsoRepository_AssignPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AssignPermissionSet_Call) Return(_a0 error) *MockdataAccessSsoRepository_AssignPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AssignPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, ...)) *MockdataAccessSsoRepository_AssignPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AssignPermissionSet_Call) RunAndReturn(run func(context.Context, string, types.PrincipalType, string) error) *MockdataAccessSsoRepository_AssignPermissionSet_Call
- type MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) Return(_a0 error) *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, policyArn string)) *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) RunAndReturn(run func(context.Context, string, string) error) *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call
- type MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) Return(_a0 error) *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) Run(...) *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) RunAndReturn(run func(context.Context, string, string, *string) error) *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call
- type MockdataAccessSsoRepository_CreateSsoRole_Call
- func (_c *MockdataAccessSsoRepository_CreateSsoRole_Call) Return(arn string, err error) *MockdataAccessSsoRepository_CreateSsoRole_Call
- func (_c *MockdataAccessSsoRepository_CreateSsoRole_Call) Run(run func(ctx context.Context, name string, description string)) *MockdataAccessSsoRepository_CreateSsoRole_Call
- func (_c *MockdataAccessSsoRepository_CreateSsoRole_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *MockdataAccessSsoRepository_CreateSsoRole_Call
- type MockdataAccessSsoRepository_DeleteSsoRole_Call
- func (_c *MockdataAccessSsoRepository_DeleteSsoRole_Call) Return(_a0 error) *MockdataAccessSsoRepository_DeleteSsoRole_Call
- func (_c *MockdataAccessSsoRepository_DeleteSsoRole_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_DeleteSsoRole_Call
- func (_c *MockdataAccessSsoRepository_DeleteSsoRole_Call) RunAndReturn(run func(context.Context, string) error) *MockdataAccessSsoRepository_DeleteSsoRole_Call
- type MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) Return(_a0 error) *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, policyArn string)) *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) RunAndReturn(run func(context.Context, string, string) error) *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call
- type MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call) Return(_a0 error) *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call) Run(...) *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call) RunAndReturn(run func(context.Context, string, string, *string) error) *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call
- type MockdataAccessSsoRepository_Expecter
- func (_e *MockdataAccessSsoRepository_Expecter) AssignPermissionSet(ctx interface{}, permissionSetArn interface{}, principalType interface{}, ...) *MockdataAccessSsoRepository_AssignPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) AttachAwsManagedPolicyToPermissionSet(ctx interface{}, permissionSetArn interface{}, policyArn interface{}) *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) AttachCustomerManagedPolicyToPermissionSet(ctx interface{}, permissionSetArn interface{}, name interface{}, ...) *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) CreateSsoRole(ctx interface{}, name interface{}, description interface{}) *MockdataAccessSsoRepository_CreateSsoRole_Call
- func (_e *MockdataAccessSsoRepository_Expecter) DeleteSsoRole(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_DeleteSsoRole_Call
- func (_e *MockdataAccessSsoRepository_Expecter) DetachAwsManagedPolicyFromPermissionSet(ctx interface{}, permissionSetArn interface{}, policyArn interface{}) *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) DetachCustomerManagedPolicyFromPermissionSet(ctx interface{}, permissionSetArn interface{}, name interface{}, ...) *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) GetGroups(ctx interface{}) *MockdataAccessSsoRepository_GetGroups_Call
- func (_e *MockdataAccessSsoRepository_Expecter) GetSsoRole(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_GetSsoRole_Call
- func (_e *MockdataAccessSsoRepository_Expecter) GetUsers(ctx interface{}) *MockdataAccessSsoRepository_GetUsers_Call
- func (_e *MockdataAccessSsoRepository_Expecter) HasRaitoCreatedTag(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
- func (_e *MockdataAccessSsoRepository_Expecter) ListAwsManagedPolicyFromPermissionSet(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) ListCustomerManagedPolicyFromPermissionSet(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) ListPermissionSetAssignment(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call
- func (_e *MockdataAccessSsoRepository_Expecter) ListSsoRole(ctx interface{}) *MockdataAccessSsoRepository_ListSsoRole_Call
- func (_e *MockdataAccessSsoRepository_Expecter) ProvisionPermissionSet(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ProvisionPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) UnassignPermissionSet(ctx interface{}, permissionSetArn interface{}, principalType interface{}, ...) *MockdataAccessSsoRepository_UnassignPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) UpdateInlinePolicyToPermissionSet(ctx interface{}, permissionSetArn interface{}, statements interface{}) *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call
- func (_e *MockdataAccessSsoRepository_Expecter) UpdateSsoRole(ctx interface{}, arn interface{}, description interface{}) *MockdataAccessSsoRepository_UpdateSsoRole_Call
- type MockdataAccessSsoRepository_GetGroups_Call
- func (_c *MockdataAccessSsoRepository_GetGroups_Call) Return(_a0 bimap.Bimap[string, string], _a1 error) *MockdataAccessSsoRepository_GetGroups_Call
- func (_c *MockdataAccessSsoRepository_GetGroups_Call) Run(run func(ctx context.Context)) *MockdataAccessSsoRepository_GetGroups_Call
- func (_c *MockdataAccessSsoRepository_GetGroups_Call) RunAndReturn(run func(context.Context) (bimap.Bimap[string, string], error)) *MockdataAccessSsoRepository_GetGroups_Call
- type MockdataAccessSsoRepository_GetSsoRole_Call
- func (_c *MockdataAccessSsoRepository_GetSsoRole_Call) Return(_a0 *types.PermissionSet, _a1 error) *MockdataAccessSsoRepository_GetSsoRole_Call
- func (_c *MockdataAccessSsoRepository_GetSsoRole_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_GetSsoRole_Call
- func (_c *MockdataAccessSsoRepository_GetSsoRole_Call) RunAndReturn(run func(context.Context, string) (*types.PermissionSet, error)) *MockdataAccessSsoRepository_GetSsoRole_Call
- type MockdataAccessSsoRepository_GetUsers_Call
- func (_c *MockdataAccessSsoRepository_GetUsers_Call) Return(_a0 bimap.Bimap[string, string], _a1 error) *MockdataAccessSsoRepository_GetUsers_Call
- func (_c *MockdataAccessSsoRepository_GetUsers_Call) Run(run func(ctx context.Context)) *MockdataAccessSsoRepository_GetUsers_Call
- func (_c *MockdataAccessSsoRepository_GetUsers_Call) RunAndReturn(run func(context.Context) (bimap.Bimap[string, string], error)) *MockdataAccessSsoRepository_GetUsers_Call
- type MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
- func (_c *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) Return(_a0 bool, _a1 error) *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
- func (_c *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
- func (_c *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
- type MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) Return(_a0 set.Set[string], _a1 error) *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) RunAndReturn(run func(context.Context, string) (set.Set[string], error)) *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call
- type MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) Return(_a0 set.Set[string], _a1 error) *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) RunAndReturn(run func(context.Context, string) (set.Set[string], error)) *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call
- type MockdataAccessSsoRepository_ListPermissionSetAssignment_Call
- func (_c *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) Return(_a0 []types.AccountAssignment, _a1 error) *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call
- func (_c *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call
- func (_c *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) RunAndReturn(run func(context.Context, string) ([]types.AccountAssignment, error)) *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call
- type MockdataAccessSsoRepository_ListSsoRole_Call
- func (_c *MockdataAccessSsoRepository_ListSsoRole_Call) Return(_a0 []string, _a1 error) *MockdataAccessSsoRepository_ListSsoRole_Call
- func (_c *MockdataAccessSsoRepository_ListSsoRole_Call) Run(run func(ctx context.Context)) *MockdataAccessSsoRepository_ListSsoRole_Call
- func (_c *MockdataAccessSsoRepository_ListSsoRole_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockdataAccessSsoRepository_ListSsoRole_Call
- type MockdataAccessSsoRepository_ProvisionPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ProvisionPermissionSet_Call) Return(_a0 *types.PermissionSetProvisioningStatus, _a1 error) *MockdataAccessSsoRepository_ProvisionPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ProvisionPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_ProvisionPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_ProvisionPermissionSet_Call) RunAndReturn(...) *MockdataAccessSsoRepository_ProvisionPermissionSet_Call
- type MockdataAccessSsoRepository_UnassignPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_UnassignPermissionSet_Call) Return(_a0 error) *MockdataAccessSsoRepository_UnassignPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_UnassignPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, ...)) *MockdataAccessSsoRepository_UnassignPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_UnassignPermissionSet_Call) RunAndReturn(run func(context.Context, string, types.PrincipalType, string) error) *MockdataAccessSsoRepository_UnassignPermissionSet_Call
- type MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) Return(_a0 error) *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, ...)) *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call
- func (_c *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) RunAndReturn(run func(context.Context, string, []*awspolicy.Statement) error) *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call
- type MockdataAccessSsoRepository_UpdateSsoRole_Call
- func (_c *MockdataAccessSsoRepository_UpdateSsoRole_Call) Return(_a0 error) *MockdataAccessSsoRepository_UpdateSsoRole_Call
- func (_c *MockdataAccessSsoRepository_UpdateSsoRole_Call) Run(run func(ctx context.Context, arn string, description string)) *MockdataAccessSsoRepository_UpdateSsoRole_Call
- func (_c *MockdataAccessSsoRepository_UpdateSsoRole_Call) RunAndReturn(run func(context.Context, string, string) error) *MockdataAccessSsoRepository_UpdateSsoRole_Call
- type NameGenerator
- type UserGroupMapFunc
Constants ¶
const ReservedSSOPrefix = "AWSReservedSSO_"
Variables ¶
This section is empty.
Functions ¶
func AccessProviderActionStrings ¶
func AccessProviderActionStrings() []string
AccessProviderActionStrings returns a slice of all String values of the enum
Types ¶
type AccessHandler ¶
type AccessHandler struct {
// contains filtered or unexported fields
}
func NewAccessHandler ¶
func NewAccessHandler(executor AccessHandlerExecutor, handlerType model.AccessProviderType, accessProviderDetails map[string]*AccessProviderDetails, accessProvidersByType *AccessProvidersByType) AccessHandler
func NewAccessProviderHandler ¶
func NewAccessProviderHandler(allAccessProviders *AccessProvidersByType, repo dataAccessRepository, getUserGroupMap UserGroupMapFunc, account string) AccessHandler
func NewPolicyAccessHandler ¶
func NewPolicyAccessHandler(allAccessProviders *AccessProvidersByType, repo dataAccessRepository, account string) AccessHandler
func NewRoleAccessHandler ¶
func NewRoleAccessHandler(allAccessProviders *AccessProvidersByType, repo dataAccessRepository, getUserGroupMap UserGroupMapFunc, account string) AccessHandler
func NewSSORoleAccessHandler ¶
func NewSSORoleAccessHandler(allAccessProviders *AccessProvidersByType, repo dataAccessRepository, ssoAdmin dataAccessSsoRepository, getUserGroupMap UserGroupMapFunc, account string) AccessHandler
func (*AccessHandler) HandleDeletes ¶
func (a *AccessHandler) HandleDeletes(ctx context.Context)
func (*AccessHandler) HandleUpdates ¶
func (a *AccessHandler) HandleUpdates(ctx context.Context)
func (*AccessHandler) Initialize ¶
func (*AccessHandler) PrepareAccessProviders ¶
func (a *AccessHandler) PrepareAccessProviders(ctx context.Context)
func (*AccessHandler) ProcessInheritance ¶
func (a *AccessHandler) ProcessInheritance() map[string]*AccessProviderDetails
type AccessHandlerExecutor ¶
type AccessHandlerExecutor interface { Initialize(configmap *config.ConfigMap) FetchExistingBindings(ctx context.Context) (map[string]set.Set[model.PolicyBinding], error) HookInlinePolicies(ap *sync_to_target.AccessProvider) ExternalId(name string, details *AccessProviderDetails) *string HandleGroupBindings(ctx context.Context, groups []string) (set.Set[model.PolicyBinding], error) HandleInheritance() ExecuteUpdates(ctx context.Context) ExecuteDeletes(ctx context.Context) }
type AccessProviderAction ¶
type AccessProviderAction int
const ( ActionUnknown AccessProviderAction = iota ActionExisting ActionCreate ActionUpdate ActionDelete )
func AccessProviderActionString ¶
func AccessProviderActionString(s string) (AccessProviderAction, error)
AccessProviderActionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func AccessProviderActionValues ¶
func AccessProviderActionValues() []AccessProviderAction
AccessProviderActionValues returns all values of the enum
func (AccessProviderAction) IsAAccessProviderAction ¶
func (i AccessProviderAction) IsAAccessProviderAction() bool
IsAAccessProviderAction returns "true" if the value is listed in the enum definition. "false" otherwise
func (AccessProviderAction) String ¶
func (i AccessProviderAction) String() string
type AccessProviderDetails ¶
type AccessProviderDetails struct {
// contains filtered or unexported fields
}
func NewAccessProviderDetails ¶
func NewAccessProviderDetails(ap *sync_to_target.AccessProvider, t model.AccessProviderType, apFeedback *sync_to_target.AccessProviderSyncFeedback) *AccessProviderDetails
func (*AccessProviderDetails) GetExistingOrNewBindings ¶
func (a *AccessProviderDetails) GetExistingOrNewBindings() set.Set[model.PolicyBinding]
func (*AccessProviderDetails) IsExternal ¶
func (a *AccessProviderDetails) IsExternal() bool
type AccessProvidersByType ¶
type AccessProvidersByType struct { Roles map[string]*AccessProviderDetails Policies map[string]*AccessProviderDetails AccessPoints map[string]*AccessProviderDetails PermissionSets map[string]*AccessProviderDetails AccessProviderById map[string]*AccessProviderDetails }
func NewAccessProvidersByType ¶
func NewAccessProvidersByType() AccessProvidersByType
func (*AccessProvidersByType) AddAccessProvider ¶
func (a *AccessProvidersByType) AddAccessProvider(t model.AccessProviderType, ap *sync_to_target.AccessProvider, apFeedback *sync_to_target.AccessProviderSyncFeedback, nameGenerator *NameGenerator) *model.AccessProviderType
func (*AccessProvidersByType) GetAccessProvider ¶
func (a *AccessProvidersByType) GetAccessProvider(t model.AccessProviderType, name string) *AccessProviderDetails
func (*AccessProvidersByType) GetAllAccessProvidersInInheritanceChainForWhat ¶
func (a *AccessProvidersByType) GetAllAccessProvidersInInheritanceChainForWhat(t model.AccessProviderType, start string, allowedTypes ...model.AccessProviderType) set.Set[*AccessProviderDetails]
func (*AccessProvidersByType) GetDescendants ¶
func (a *AccessProvidersByType) GetDescendants(t model.AccessProviderType, name string, allowedTypes ...model.AccessProviderType) set.Set[*AccessProviderDetails]
type AccessSyncer ¶
type AccessSyncer struct {
// contains filtered or unexported fields
}
func NewDataAccessSyncer ¶
func NewDataAccessSyncer() *AccessSyncer
func NewDataAccessSyncerFromConfig ¶
func NewDataAccessSyncerFromConfig(configMap *config.ConfigMap) *AccessSyncer
func (*AccessSyncer) FetchS3AccessPointAccessProviders ¶
func (a *AccessSyncer) FetchS3AccessPointAccessProviders(ctx context.Context, configMap *config.ConfigMap, aps []model.AccessProviderInputExtended) ([]model.AccessProviderInputExtended, error)
func (*AccessSyncer) SyncAccessProviderToTarget ¶
func (a *AccessSyncer) SyncAccessProviderToTarget(ctx context.Context, accessProviders *sync_to_target.AccessProviderImport, accessProviderFeedbackHandler wrappers.AccessProviderFeedbackHandler, configMap *config.ConfigMap) error
func (*AccessSyncer) SyncAccessProvidersFromTarget ¶
func (a *AccessSyncer) SyncAccessProvidersFromTarget(ctx context.Context, accessProviderHandler wrappers.AccessProviderHandler, configMap *config.ConfigMap) error
type MockdataAccessIamRepository ¶ added in v0.0.2
MockdataAccessIamRepository is an autogenerated mock type for the dataAccessIamRepository type
func NewMockdataAccessIamRepository ¶ added in v0.0.2
func NewMockdataAccessIamRepository(t interface { mock.TestingT Cleanup(func()) }) *MockdataAccessIamRepository
NewMockdataAccessIamRepository creates a new instance of MockdataAccessIamRepository. 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 (*MockdataAccessIamRepository) EXPECT ¶ added in v0.0.2
func (_m *MockdataAccessIamRepository) EXPECT() *MockdataAccessIamRepository_Expecter
func (*MockdataAccessIamRepository) GetGroups ¶ added in v0.0.2
func (_m *MockdataAccessIamRepository) GetGroups(ctx context.Context) ([]model.GroupEntity, error)
GetGroups provides a mock function with given fields: ctx
func (*MockdataAccessIamRepository) GetUsers ¶ added in v0.0.2
func (_m *MockdataAccessIamRepository) GetUsers(ctx context.Context, withDetails bool) ([]model.UserEntity, error)
GetUsers provides a mock function with given fields: ctx, withDetails
type MockdataAccessIamRepository_Expecter ¶ added in v0.0.2
type MockdataAccessIamRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockdataAccessIamRepository_Expecter) GetGroups ¶ added in v0.0.2
func (_e *MockdataAccessIamRepository_Expecter) GetGroups(ctx interface{}) *MockdataAccessIamRepository_GetGroups_Call
GetGroups is a helper method to define mock.On call
- ctx context.Context
func (*MockdataAccessIamRepository_Expecter) GetUsers ¶ added in v0.0.2
func (_e *MockdataAccessIamRepository_Expecter) GetUsers(ctx interface{}, withDetails interface{}) *MockdataAccessIamRepository_GetUsers_Call
GetUsers is a helper method to define mock.On call
- ctx context.Context
- withDetails bool
type MockdataAccessIamRepository_GetGroups_Call ¶ added in v0.0.2
MockdataAccessIamRepository_GetGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGroups'
func (*MockdataAccessIamRepository_GetGroups_Call) Return ¶ added in v0.0.2
func (_c *MockdataAccessIamRepository_GetGroups_Call) Return(_a0 []model.GroupEntity, _a1 error) *MockdataAccessIamRepository_GetGroups_Call
func (*MockdataAccessIamRepository_GetGroups_Call) Run ¶ added in v0.0.2
func (_c *MockdataAccessIamRepository_GetGroups_Call) Run(run func(ctx context.Context)) *MockdataAccessIamRepository_GetGroups_Call
func (*MockdataAccessIamRepository_GetGroups_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockdataAccessIamRepository_GetGroups_Call) RunAndReturn(run func(context.Context) ([]model.GroupEntity, error)) *MockdataAccessIamRepository_GetGroups_Call
type MockdataAccessIamRepository_GetUsers_Call ¶ added in v0.0.2
MockdataAccessIamRepository_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*MockdataAccessIamRepository_GetUsers_Call) Return ¶ added in v0.0.2
func (_c *MockdataAccessIamRepository_GetUsers_Call) Return(_a0 []model.UserEntity, _a1 error) *MockdataAccessIamRepository_GetUsers_Call
func (*MockdataAccessIamRepository_GetUsers_Call) Run ¶ added in v0.0.2
func (_c *MockdataAccessIamRepository_GetUsers_Call) Run(run func(ctx context.Context, withDetails bool)) *MockdataAccessIamRepository_GetUsers_Call
func (*MockdataAccessIamRepository_GetUsers_Call) RunAndReturn ¶ added in v0.0.2
func (_c *MockdataAccessIamRepository_GetUsers_Call) RunAndReturn(run func(context.Context, bool) ([]model.UserEntity, error)) *MockdataAccessIamRepository_GetUsers_Call
type MockdataAccessRepository ¶
MockdataAccessRepository is an autogenerated mock type for the dataAccessRepository type
func NewMockdataAccessRepository ¶
func NewMockdataAccessRepository(t interface { mock.TestingT Cleanup(func()) }) *MockdataAccessRepository
NewMockdataAccessRepository creates a new instance of MockdataAccessRepository. 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 (*MockdataAccessRepository) AttachGroupToManagedPolicy ¶
func (_m *MockdataAccessRepository) AttachGroupToManagedPolicy(ctx context.Context, policyArn string, groupNames []string) error
AttachGroupToManagedPolicy provides a mock function with given fields: ctx, policyArn, groupNames
func (*MockdataAccessRepository) AttachRoleToManagedPolicy ¶
func (_m *MockdataAccessRepository) AttachRoleToManagedPolicy(ctx context.Context, policyArn string, roleNames []string) error
AttachRoleToManagedPolicy provides a mock function with given fields: ctx, policyArn, roleNames
func (*MockdataAccessRepository) AttachUserToManagedPolicy ¶
func (_m *MockdataAccessRepository) AttachUserToManagedPolicy(ctx context.Context, policyArn string, userNames []string) error
AttachUserToManagedPolicy provides a mock function with given fields: ctx, policyArn, userNames
func (*MockdataAccessRepository) ClearCache ¶ added in v0.0.4
func (_m *MockdataAccessRepository) ClearCache()
ClearCache provides a mock function with given fields:
func (*MockdataAccessRepository) CreateAccessPoint ¶
func (_m *MockdataAccessRepository) CreateAccessPoint(ctx context.Context, name string, bucket string, region string, statements []*awspolicy.Statement) (string, error)
CreateAccessPoint provides a mock function with given fields: ctx, name, bucket, region, statements
func (*MockdataAccessRepository) CreateManagedPolicy ¶
func (_m *MockdataAccessRepository) CreateManagedPolicy(ctx context.Context, policyName string, statements []*awspolicy.Statement) (*types.Policy, error)
CreateManagedPolicy provides a mock function with given fields: ctx, policyName, statements
func (*MockdataAccessRepository) CreateRole ¶
func (_m *MockdataAccessRepository) CreateRole(ctx context.Context, name string, description string, userNames []string) (bool, error)
CreateRole provides a mock function with given fields: ctx, name, description, userNames
func (*MockdataAccessRepository) CreateRoleInlinePolicy ¶
func (_m *MockdataAccessRepository) CreateRoleInlinePolicy(ctx context.Context, roleName string, policyName string, statements []*awspolicy.Statement) error
CreateRoleInlinePolicy provides a mock function with given fields: ctx, roleName, policyName, statements
func (*MockdataAccessRepository) DeleteAccessPoint ¶
func (_m *MockdataAccessRepository) DeleteAccessPoint(ctx context.Context, name string, region string) error
DeleteAccessPoint provides a mock function with given fields: ctx, name, region
func (*MockdataAccessRepository) DeleteInlinePolicy ¶
func (_m *MockdataAccessRepository) DeleteInlinePolicy(ctx context.Context, policyName string, resourceName string, resourceType string) error
DeleteInlinePolicy provides a mock function with given fields: ctx, policyName, resourceName, resourceType
func (*MockdataAccessRepository) DeleteManagedPolicy ¶
func (_m *MockdataAccessRepository) DeleteManagedPolicy(ctx context.Context, policyName string, awsManaged bool) error
DeleteManagedPolicy provides a mock function with given fields: ctx, policyName, awsManaged
func (*MockdataAccessRepository) DeleteRole ¶
func (_m *MockdataAccessRepository) DeleteRole(ctx context.Context, name string) error
DeleteRole provides a mock function with given fields: ctx, name
func (*MockdataAccessRepository) DeleteRoleInlinePolicies ¶
func (_m *MockdataAccessRepository) DeleteRoleInlinePolicies(ctx context.Context, roleName string) error
DeleteRoleInlinePolicies provides a mock function with given fields: ctx, roleName
func (*MockdataAccessRepository) DetachGroupFromManagedPolicy ¶
func (_m *MockdataAccessRepository) DetachGroupFromManagedPolicy(ctx context.Context, policyArn string, groupNames []string) error
DetachGroupFromManagedPolicy provides a mock function with given fields: ctx, policyArn, groupNames
func (*MockdataAccessRepository) DetachRoleFromManagedPolicy ¶
func (_m *MockdataAccessRepository) DetachRoleFromManagedPolicy(ctx context.Context, policyArn string, roleNames []string) error
DetachRoleFromManagedPolicy provides a mock function with given fields: ctx, policyArn, roleNames
func (*MockdataAccessRepository) DetachUserFromManagedPolicy ¶
func (_m *MockdataAccessRepository) DetachUserFromManagedPolicy(ctx context.Context, policyArn string, userNames []string) error
DetachUserFromManagedPolicy provides a mock function with given fields: ctx, policyArn, userNames
func (*MockdataAccessRepository) EXPECT ¶
func (_m *MockdataAccessRepository) EXPECT() *MockdataAccessRepository_Expecter
func (*MockdataAccessRepository) GetGroups ¶
func (_m *MockdataAccessRepository) GetGroups(ctx context.Context) ([]model.GroupEntity, error)
GetGroups provides a mock function with given fields: ctx
func (*MockdataAccessRepository) GetInlinePoliciesForEntities ¶
func (_m *MockdataAccessRepository) GetInlinePoliciesForEntities(ctx context.Context, entityNames []string, entityType string) (map[string][]model.PolicyEntity, error)
GetInlinePoliciesForEntities provides a mock function with given fields: ctx, entityNames, entityType
func (*MockdataAccessRepository) GetManagedPolicies ¶
func (_m *MockdataAccessRepository) GetManagedPolicies(ctx context.Context) ([]model.PolicyEntity, error)
GetManagedPolicies provides a mock function with given fields: ctx
func (*MockdataAccessRepository) GetPolicyArn ¶
func (_m *MockdataAccessRepository) GetPolicyArn(policyName string, awsManaged bool, configMap *config.ConfigMap) string
GetPolicyArn provides a mock function with given fields: policyName, awsManaged, configMap
func (*MockdataAccessRepository) GetRoles ¶
func (_m *MockdataAccessRepository) GetRoles(ctx context.Context, excludedRoles []string) ([]model.RoleEntity, error)
GetRoles provides a mock function with given fields: ctx, excludedRoles
func (*MockdataAccessRepository) GetSsoRoleWithPrefix ¶
func (_m *MockdataAccessRepository) GetSsoRoleWithPrefix(ctx context.Context, prefixName string, excludedRoles []string) (*model.RoleEntity, error)
GetSsoRoleWithPrefix provides a mock function with given fields: ctx, prefixName, excludedRoles
func (*MockdataAccessRepository) GetUsers ¶
func (_m *MockdataAccessRepository) GetUsers(ctx context.Context, withDetails bool) ([]model.UserEntity, error)
GetUsers provides a mock function with given fields: ctx, withDetails
func (*MockdataAccessRepository) ListAccessPoints ¶
func (_m *MockdataAccessRepository) ListAccessPoints(ctx context.Context, region string) ([]model.AwsS3AccessPoint, error)
ListAccessPoints provides a mock function with given fields: ctx, region
func (*MockdataAccessRepository) UpdateAccessPoint ¶
func (_m *MockdataAccessRepository) UpdateAccessPoint(ctx context.Context, name string, region string, statements []*awspolicy.Statement) error
UpdateAccessPoint provides a mock function with given fields: ctx, name, region, statements
func (*MockdataAccessRepository) UpdateAssumeEntities ¶
func (_m *MockdataAccessRepository) UpdateAssumeEntities(ctx context.Context, roleName string, userNames []string) error
UpdateAssumeEntities provides a mock function with given fields: ctx, roleName, userNames
func (*MockdataAccessRepository) UpdateInlinePolicy ¶
func (_m *MockdataAccessRepository) UpdateInlinePolicy(ctx context.Context, policyName string, resourceName string, resourceType string, statements []*awspolicy.Statement) error
UpdateInlinePolicy provides a mock function with given fields: ctx, policyName, resourceName, resourceType, statements
func (*MockdataAccessRepository) UpdateManagedPolicy ¶
func (_m *MockdataAccessRepository) UpdateManagedPolicy(ctx context.Context, policyName string, awsManaged bool, statements []*awspolicy.Statement) error
UpdateManagedPolicy provides a mock function with given fields: ctx, policyName, awsManaged, statements
type MockdataAccessRepository_AttachGroupToManagedPolicy_Call ¶
MockdataAccessRepository_AttachGroupToManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachGroupToManagedPolicy'
func (*MockdataAccessRepository_AttachGroupToManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_AttachGroupToManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, groupNames []string)) *MockdataAccessRepository_AttachGroupToManagedPolicy_Call
func (*MockdataAccessRepository_AttachGroupToManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_AttachGroupToManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_AttachGroupToManagedPolicy_Call
type MockdataAccessRepository_AttachRoleToManagedPolicy_Call ¶
MockdataAccessRepository_AttachRoleToManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachRoleToManagedPolicy'
func (*MockdataAccessRepository_AttachRoleToManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_AttachRoleToManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, roleNames []string)) *MockdataAccessRepository_AttachRoleToManagedPolicy_Call
func (*MockdataAccessRepository_AttachRoleToManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_AttachRoleToManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_AttachRoleToManagedPolicy_Call
type MockdataAccessRepository_AttachUserToManagedPolicy_Call ¶
MockdataAccessRepository_AttachUserToManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachUserToManagedPolicy'
func (*MockdataAccessRepository_AttachUserToManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_AttachUserToManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, userNames []string)) *MockdataAccessRepository_AttachUserToManagedPolicy_Call
func (*MockdataAccessRepository_AttachUserToManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_AttachUserToManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_AttachUserToManagedPolicy_Call
type MockdataAccessRepository_ClearCache_Call ¶ added in v0.0.4
MockdataAccessRepository_ClearCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearCache'
func (*MockdataAccessRepository_ClearCache_Call) Return ¶ added in v0.0.4
func (_c *MockdataAccessRepository_ClearCache_Call) Return() *MockdataAccessRepository_ClearCache_Call
func (*MockdataAccessRepository_ClearCache_Call) Run ¶ added in v0.0.4
func (_c *MockdataAccessRepository_ClearCache_Call) Run(run func()) *MockdataAccessRepository_ClearCache_Call
func (*MockdataAccessRepository_ClearCache_Call) RunAndReturn ¶ added in v0.0.4
func (_c *MockdataAccessRepository_ClearCache_Call) RunAndReturn(run func()) *MockdataAccessRepository_ClearCache_Call
type MockdataAccessRepository_CreateAccessPoint_Call ¶
MockdataAccessRepository_CreateAccessPoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAccessPoint'
func (*MockdataAccessRepository_CreateAccessPoint_Call) Return ¶
func (_c *MockdataAccessRepository_CreateAccessPoint_Call) Return(_a0 string, _a1 error) *MockdataAccessRepository_CreateAccessPoint_Call
func (*MockdataAccessRepository_CreateAccessPoint_Call) Run ¶
func (_c *MockdataAccessRepository_CreateAccessPoint_Call) Run(run func(ctx context.Context, name string, bucket string, region string, statements []*awspolicy.Statement)) *MockdataAccessRepository_CreateAccessPoint_Call
func (*MockdataAccessRepository_CreateAccessPoint_Call) RunAndReturn ¶
type MockdataAccessRepository_CreateManagedPolicy_Call ¶
MockdataAccessRepository_CreateManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateManagedPolicy'
func (*MockdataAccessRepository_CreateManagedPolicy_Call) Return ¶
func (_c *MockdataAccessRepository_CreateManagedPolicy_Call) Return(_a0 *types.Policy, _a1 error) *MockdataAccessRepository_CreateManagedPolicy_Call
func (*MockdataAccessRepository_CreateManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_CreateManagedPolicy_Call) Run(run func(ctx context.Context, policyName string, statements []*awspolicy.Statement)) *MockdataAccessRepository_CreateManagedPolicy_Call
func (*MockdataAccessRepository_CreateManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_CreateManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []*awspolicy.Statement) (*types.Policy, error)) *MockdataAccessRepository_CreateManagedPolicy_Call
type MockdataAccessRepository_CreateRoleInlinePolicy_Call ¶
MockdataAccessRepository_CreateRoleInlinePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRoleInlinePolicy'
func (*MockdataAccessRepository_CreateRoleInlinePolicy_Call) Run ¶
func (_c *MockdataAccessRepository_CreateRoleInlinePolicy_Call) Run(run func(ctx context.Context, roleName string, policyName string, statements []*awspolicy.Statement)) *MockdataAccessRepository_CreateRoleInlinePolicy_Call
func (*MockdataAccessRepository_CreateRoleInlinePolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_CreateRoleInlinePolicy_Call) RunAndReturn(run func(context.Context, string, string, []*awspolicy.Statement) error) *MockdataAccessRepository_CreateRoleInlinePolicy_Call
type MockdataAccessRepository_CreateRole_Call ¶
MockdataAccessRepository_CreateRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRole'
func (*MockdataAccessRepository_CreateRole_Call) Return ¶
func (_c *MockdataAccessRepository_CreateRole_Call) Return(_a0 bool, _a1 error) *MockdataAccessRepository_CreateRole_Call
func (*MockdataAccessRepository_CreateRole_Call) Run ¶
func (_c *MockdataAccessRepository_CreateRole_Call) Run(run func(ctx context.Context, name string, description string, userNames []string)) *MockdataAccessRepository_CreateRole_Call
func (*MockdataAccessRepository_CreateRole_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_CreateRole_Call) RunAndReturn(run func(context.Context, string, string, []string) (bool, error)) *MockdataAccessRepository_CreateRole_Call
type MockdataAccessRepository_DeleteAccessPoint_Call ¶
MockdataAccessRepository_DeleteAccessPoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAccessPoint'
func (*MockdataAccessRepository_DeleteAccessPoint_Call) Return ¶
func (_c *MockdataAccessRepository_DeleteAccessPoint_Call) Return(_a0 error) *MockdataAccessRepository_DeleteAccessPoint_Call
func (*MockdataAccessRepository_DeleteAccessPoint_Call) Run ¶
func (_c *MockdataAccessRepository_DeleteAccessPoint_Call) Run(run func(ctx context.Context, name string, region string)) *MockdataAccessRepository_DeleteAccessPoint_Call
func (*MockdataAccessRepository_DeleteAccessPoint_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_DeleteAccessPoint_Call) RunAndReturn(run func(context.Context, string, string) error) *MockdataAccessRepository_DeleteAccessPoint_Call
type MockdataAccessRepository_DeleteInlinePolicy_Call ¶
MockdataAccessRepository_DeleteInlinePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteInlinePolicy'
func (*MockdataAccessRepository_DeleteInlinePolicy_Call) Return ¶
func (_c *MockdataAccessRepository_DeleteInlinePolicy_Call) Return(_a0 error) *MockdataAccessRepository_DeleteInlinePolicy_Call
func (*MockdataAccessRepository_DeleteInlinePolicy_Call) Run ¶
func (_c *MockdataAccessRepository_DeleteInlinePolicy_Call) Run(run func(ctx context.Context, policyName string, resourceName string, resourceType string)) *MockdataAccessRepository_DeleteInlinePolicy_Call
func (*MockdataAccessRepository_DeleteInlinePolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_DeleteInlinePolicy_Call) RunAndReturn(run func(context.Context, string, string, string) error) *MockdataAccessRepository_DeleteInlinePolicy_Call
type MockdataAccessRepository_DeleteManagedPolicy_Call ¶
MockdataAccessRepository_DeleteManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteManagedPolicy'
func (*MockdataAccessRepository_DeleteManagedPolicy_Call) Return ¶
func (_c *MockdataAccessRepository_DeleteManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_DeleteManagedPolicy_Call
func (*MockdataAccessRepository_DeleteManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_DeleteManagedPolicy_Call) Run(run func(ctx context.Context, policyName string, awsManaged bool)) *MockdataAccessRepository_DeleteManagedPolicy_Call
func (*MockdataAccessRepository_DeleteManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_DeleteManagedPolicy_Call) RunAndReturn(run func(context.Context, string, bool) error) *MockdataAccessRepository_DeleteManagedPolicy_Call
type MockdataAccessRepository_DeleteRoleInlinePolicies_Call ¶
MockdataAccessRepository_DeleteRoleInlinePolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRoleInlinePolicies'
func (*MockdataAccessRepository_DeleteRoleInlinePolicies_Call) Run ¶
func (_c *MockdataAccessRepository_DeleteRoleInlinePolicies_Call) Run(run func(ctx context.Context, roleName string)) *MockdataAccessRepository_DeleteRoleInlinePolicies_Call
func (*MockdataAccessRepository_DeleteRoleInlinePolicies_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_DeleteRoleInlinePolicies_Call) RunAndReturn(run func(context.Context, string) error) *MockdataAccessRepository_DeleteRoleInlinePolicies_Call
type MockdataAccessRepository_DeleteRole_Call ¶
MockdataAccessRepository_DeleteRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRole'
func (*MockdataAccessRepository_DeleteRole_Call) Return ¶
func (_c *MockdataAccessRepository_DeleteRole_Call) Return(_a0 error) *MockdataAccessRepository_DeleteRole_Call
func (*MockdataAccessRepository_DeleteRole_Call) Run ¶
func (_c *MockdataAccessRepository_DeleteRole_Call) Run(run func(ctx context.Context, name string)) *MockdataAccessRepository_DeleteRole_Call
func (*MockdataAccessRepository_DeleteRole_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_DeleteRole_Call) RunAndReturn(run func(context.Context, string) error) *MockdataAccessRepository_DeleteRole_Call
type MockdataAccessRepository_DetachGroupFromManagedPolicy_Call ¶
MockdataAccessRepository_DetachGroupFromManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachGroupFromManagedPolicy'
func (*MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, groupNames []string)) *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call
func (*MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call
type MockdataAccessRepository_DetachRoleFromManagedPolicy_Call ¶
MockdataAccessRepository_DetachRoleFromManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachRoleFromManagedPolicy'
func (*MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, roleNames []string)) *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call
func (*MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call
type MockdataAccessRepository_DetachUserFromManagedPolicy_Call ¶
MockdataAccessRepository_DetachUserFromManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachUserFromManagedPolicy'
func (*MockdataAccessRepository_DetachUserFromManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_DetachUserFromManagedPolicy_Call) Run(run func(ctx context.Context, policyArn string, userNames []string)) *MockdataAccessRepository_DetachUserFromManagedPolicy_Call
func (*MockdataAccessRepository_DetachUserFromManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_DetachUserFromManagedPolicy_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_DetachUserFromManagedPolicy_Call
type MockdataAccessRepository_Expecter ¶
type MockdataAccessRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockdataAccessRepository_Expecter) AttachGroupToManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) AttachGroupToManagedPolicy(ctx interface{}, policyArn interface{}, groupNames interface{}) *MockdataAccessRepository_AttachGroupToManagedPolicy_Call
AttachGroupToManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyArn string
- groupNames []string
func (*MockdataAccessRepository_Expecter) AttachRoleToManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) AttachRoleToManagedPolicy(ctx interface{}, policyArn interface{}, roleNames interface{}) *MockdataAccessRepository_AttachRoleToManagedPolicy_Call
AttachRoleToManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyArn string
- roleNames []string
func (*MockdataAccessRepository_Expecter) AttachUserToManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) AttachUserToManagedPolicy(ctx interface{}, policyArn interface{}, userNames interface{}) *MockdataAccessRepository_AttachUserToManagedPolicy_Call
AttachUserToManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyArn string
- userNames []string
func (*MockdataAccessRepository_Expecter) ClearCache ¶ added in v0.0.4
func (_e *MockdataAccessRepository_Expecter) ClearCache() *MockdataAccessRepository_ClearCache_Call
ClearCache is a helper method to define mock.On call
func (*MockdataAccessRepository_Expecter) CreateAccessPoint ¶
func (_e *MockdataAccessRepository_Expecter) CreateAccessPoint(ctx interface{}, name interface{}, bucket interface{}, region interface{}, statements interface{}) *MockdataAccessRepository_CreateAccessPoint_Call
CreateAccessPoint is a helper method to define mock.On call
- ctx context.Context
- name string
- bucket string
- region string
- statements []*awspolicy.Statement
func (*MockdataAccessRepository_Expecter) CreateManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) CreateManagedPolicy(ctx interface{}, policyName interface{}, statements interface{}) *MockdataAccessRepository_CreateManagedPolicy_Call
CreateManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyName string
- statements []*awspolicy.Statement
func (*MockdataAccessRepository_Expecter) CreateRole ¶
func (_e *MockdataAccessRepository_Expecter) CreateRole(ctx interface{}, name interface{}, description interface{}, userNames interface{}) *MockdataAccessRepository_CreateRole_Call
CreateRole is a helper method to define mock.On call
- ctx context.Context
- name string
- description string
- userNames []string
func (*MockdataAccessRepository_Expecter) CreateRoleInlinePolicy ¶
func (_e *MockdataAccessRepository_Expecter) CreateRoleInlinePolicy(ctx interface{}, roleName interface{}, policyName interface{}, statements interface{}) *MockdataAccessRepository_CreateRoleInlinePolicy_Call
CreateRoleInlinePolicy is a helper method to define mock.On call
- ctx context.Context
- roleName string
- policyName string
- statements []*awspolicy.Statement
func (*MockdataAccessRepository_Expecter) DeleteAccessPoint ¶
func (_e *MockdataAccessRepository_Expecter) DeleteAccessPoint(ctx interface{}, name interface{}, region interface{}) *MockdataAccessRepository_DeleteAccessPoint_Call
DeleteAccessPoint is a helper method to define mock.On call
- ctx context.Context
- name string
- region string
func (*MockdataAccessRepository_Expecter) DeleteInlinePolicy ¶
func (_e *MockdataAccessRepository_Expecter) DeleteInlinePolicy(ctx interface{}, policyName interface{}, resourceName interface{}, resourceType interface{}) *MockdataAccessRepository_DeleteInlinePolicy_Call
DeleteInlinePolicy is a helper method to define mock.On call
- ctx context.Context
- policyName string
- resourceName string
- resourceType string
func (*MockdataAccessRepository_Expecter) DeleteManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) DeleteManagedPolicy(ctx interface{}, policyName interface{}, awsManaged interface{}) *MockdataAccessRepository_DeleteManagedPolicy_Call
DeleteManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyName string
- awsManaged bool
func (*MockdataAccessRepository_Expecter) DeleteRole ¶
func (_e *MockdataAccessRepository_Expecter) DeleteRole(ctx interface{}, name interface{}) *MockdataAccessRepository_DeleteRole_Call
DeleteRole is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockdataAccessRepository_Expecter) DeleteRoleInlinePolicies ¶
func (_e *MockdataAccessRepository_Expecter) DeleteRoleInlinePolicies(ctx interface{}, roleName interface{}) *MockdataAccessRepository_DeleteRoleInlinePolicies_Call
DeleteRoleInlinePolicies is a helper method to define mock.On call
- ctx context.Context
- roleName string
func (*MockdataAccessRepository_Expecter) DetachGroupFromManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) DetachGroupFromManagedPolicy(ctx interface{}, policyArn interface{}, groupNames interface{}) *MockdataAccessRepository_DetachGroupFromManagedPolicy_Call
DetachGroupFromManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyArn string
- groupNames []string
func (*MockdataAccessRepository_Expecter) DetachRoleFromManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) DetachRoleFromManagedPolicy(ctx interface{}, policyArn interface{}, roleNames interface{}) *MockdataAccessRepository_DetachRoleFromManagedPolicy_Call
DetachRoleFromManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyArn string
- roleNames []string
func (*MockdataAccessRepository_Expecter) DetachUserFromManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) DetachUserFromManagedPolicy(ctx interface{}, policyArn interface{}, userNames interface{}) *MockdataAccessRepository_DetachUserFromManagedPolicy_Call
DetachUserFromManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyArn string
- userNames []string
func (*MockdataAccessRepository_Expecter) GetGroups ¶
func (_e *MockdataAccessRepository_Expecter) GetGroups(ctx interface{}) *MockdataAccessRepository_GetGroups_Call
GetGroups is a helper method to define mock.On call
- ctx context.Context
func (*MockdataAccessRepository_Expecter) GetInlinePoliciesForEntities ¶
func (_e *MockdataAccessRepository_Expecter) GetInlinePoliciesForEntities(ctx interface{}, entityNames interface{}, entityType interface{}) *MockdataAccessRepository_GetInlinePoliciesForEntities_Call
GetInlinePoliciesForEntities is a helper method to define mock.On call
- ctx context.Context
- entityNames []string
- entityType string
func (*MockdataAccessRepository_Expecter) GetManagedPolicies ¶
func (_e *MockdataAccessRepository_Expecter) GetManagedPolicies(ctx interface{}) *MockdataAccessRepository_GetManagedPolicies_Call
GetManagedPolicies is a helper method to define mock.On call
- ctx context.Context
func (*MockdataAccessRepository_Expecter) GetPolicyArn ¶
func (_e *MockdataAccessRepository_Expecter) GetPolicyArn(policyName interface{}, awsManaged interface{}, configMap interface{}) *MockdataAccessRepository_GetPolicyArn_Call
GetPolicyArn is a helper method to define mock.On call
- policyName string
- awsManaged bool
- configMap *config.ConfigMap
func (*MockdataAccessRepository_Expecter) GetRoles ¶
func (_e *MockdataAccessRepository_Expecter) GetRoles(ctx interface{}, excludedRoles interface{}) *MockdataAccessRepository_GetRoles_Call
GetRoles is a helper method to define mock.On call
- ctx context.Context
- excludedRoles []string
func (*MockdataAccessRepository_Expecter) GetSsoRoleWithPrefix ¶
func (_e *MockdataAccessRepository_Expecter) GetSsoRoleWithPrefix(ctx interface{}, prefixName interface{}, excludedRoles interface{}) *MockdataAccessRepository_GetSsoRoleWithPrefix_Call
GetSsoRoleWithPrefix is a helper method to define mock.On call
- ctx context.Context
- prefixName string
- excludedRoles []string
func (*MockdataAccessRepository_Expecter) GetUsers ¶
func (_e *MockdataAccessRepository_Expecter) GetUsers(ctx interface{}, withDetails interface{}) *MockdataAccessRepository_GetUsers_Call
GetUsers is a helper method to define mock.On call
- ctx context.Context
- withDetails bool
func (*MockdataAccessRepository_Expecter) ListAccessPoints ¶
func (_e *MockdataAccessRepository_Expecter) ListAccessPoints(ctx interface{}, region interface{}) *MockdataAccessRepository_ListAccessPoints_Call
ListAccessPoints is a helper method to define mock.On call
- ctx context.Context
- region string
func (*MockdataAccessRepository_Expecter) UpdateAccessPoint ¶
func (_e *MockdataAccessRepository_Expecter) UpdateAccessPoint(ctx interface{}, name interface{}, region interface{}, statements interface{}) *MockdataAccessRepository_UpdateAccessPoint_Call
UpdateAccessPoint is a helper method to define mock.On call
- ctx context.Context
- name string
- region string
- statements []*awspolicy.Statement
func (*MockdataAccessRepository_Expecter) UpdateAssumeEntities ¶
func (_e *MockdataAccessRepository_Expecter) UpdateAssumeEntities(ctx interface{}, roleName interface{}, userNames interface{}) *MockdataAccessRepository_UpdateAssumeEntities_Call
UpdateAssumeEntities is a helper method to define mock.On call
- ctx context.Context
- roleName string
- userNames []string
func (*MockdataAccessRepository_Expecter) UpdateInlinePolicy ¶
func (_e *MockdataAccessRepository_Expecter) UpdateInlinePolicy(ctx interface{}, policyName interface{}, resourceName interface{}, resourceType interface{}, statements interface{}) *MockdataAccessRepository_UpdateInlinePolicy_Call
UpdateInlinePolicy is a helper method to define mock.On call
- ctx context.Context
- policyName string
- resourceName string
- resourceType string
- statements []*awspolicy.Statement
func (*MockdataAccessRepository_Expecter) UpdateManagedPolicy ¶
func (_e *MockdataAccessRepository_Expecter) UpdateManagedPolicy(ctx interface{}, policyName interface{}, awsManaged interface{}, statements interface{}) *MockdataAccessRepository_UpdateManagedPolicy_Call
UpdateManagedPolicy is a helper method to define mock.On call
- ctx context.Context
- policyName string
- awsManaged bool
- statements []*awspolicy.Statement
type MockdataAccessRepository_GetGroups_Call ¶
MockdataAccessRepository_GetGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGroups'
func (*MockdataAccessRepository_GetGroups_Call) Return ¶
func (_c *MockdataAccessRepository_GetGroups_Call) Return(_a0 []model.GroupEntity, _a1 error) *MockdataAccessRepository_GetGroups_Call
func (*MockdataAccessRepository_GetGroups_Call) Run ¶
func (_c *MockdataAccessRepository_GetGroups_Call) Run(run func(ctx context.Context)) *MockdataAccessRepository_GetGroups_Call
func (*MockdataAccessRepository_GetGroups_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_GetGroups_Call) RunAndReturn(run func(context.Context) ([]model.GroupEntity, error)) *MockdataAccessRepository_GetGroups_Call
type MockdataAccessRepository_GetInlinePoliciesForEntities_Call ¶
MockdataAccessRepository_GetInlinePoliciesForEntities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInlinePoliciesForEntities'
func (*MockdataAccessRepository_GetInlinePoliciesForEntities_Call) Return ¶
func (_c *MockdataAccessRepository_GetInlinePoliciesForEntities_Call) Return(_a0 map[string][]model.PolicyEntity, _a1 error) *MockdataAccessRepository_GetInlinePoliciesForEntities_Call
func (*MockdataAccessRepository_GetInlinePoliciesForEntities_Call) Run ¶
func (_c *MockdataAccessRepository_GetInlinePoliciesForEntities_Call) Run(run func(ctx context.Context, entityNames []string, entityType string)) *MockdataAccessRepository_GetInlinePoliciesForEntities_Call
func (*MockdataAccessRepository_GetInlinePoliciesForEntities_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_GetInlinePoliciesForEntities_Call) RunAndReturn(run func(context.Context, []string, string) (map[string][]model.PolicyEntity, error)) *MockdataAccessRepository_GetInlinePoliciesForEntities_Call
type MockdataAccessRepository_GetManagedPolicies_Call ¶
MockdataAccessRepository_GetManagedPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetManagedPolicies'
func (*MockdataAccessRepository_GetManagedPolicies_Call) Return ¶
func (_c *MockdataAccessRepository_GetManagedPolicies_Call) Return(_a0 []model.PolicyEntity, _a1 error) *MockdataAccessRepository_GetManagedPolicies_Call
func (*MockdataAccessRepository_GetManagedPolicies_Call) Run ¶
func (_c *MockdataAccessRepository_GetManagedPolicies_Call) Run(run func(ctx context.Context)) *MockdataAccessRepository_GetManagedPolicies_Call
func (*MockdataAccessRepository_GetManagedPolicies_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_GetManagedPolicies_Call) RunAndReturn(run func(context.Context) ([]model.PolicyEntity, error)) *MockdataAccessRepository_GetManagedPolicies_Call
type MockdataAccessRepository_GetPolicyArn_Call ¶
MockdataAccessRepository_GetPolicyArn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicyArn'
func (*MockdataAccessRepository_GetPolicyArn_Call) Return ¶
func (_c *MockdataAccessRepository_GetPolicyArn_Call) Return(_a0 string) *MockdataAccessRepository_GetPolicyArn_Call
func (*MockdataAccessRepository_GetPolicyArn_Call) Run ¶
func (_c *MockdataAccessRepository_GetPolicyArn_Call) Run(run func(policyName string, awsManaged bool, configMap *config.ConfigMap)) *MockdataAccessRepository_GetPolicyArn_Call
func (*MockdataAccessRepository_GetPolicyArn_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_GetPolicyArn_Call) RunAndReturn(run func(string, bool, *config.ConfigMap) string) *MockdataAccessRepository_GetPolicyArn_Call
type MockdataAccessRepository_GetRoles_Call ¶
MockdataAccessRepository_GetRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRoles'
func (*MockdataAccessRepository_GetRoles_Call) Return ¶
func (_c *MockdataAccessRepository_GetRoles_Call) Return(_a0 []model.RoleEntity, _a1 error) *MockdataAccessRepository_GetRoles_Call
func (*MockdataAccessRepository_GetRoles_Call) Run ¶
func (_c *MockdataAccessRepository_GetRoles_Call) Run(run func(ctx context.Context, excludedRoles []string)) *MockdataAccessRepository_GetRoles_Call
func (*MockdataAccessRepository_GetRoles_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_GetRoles_Call) RunAndReturn(run func(context.Context, []string) ([]model.RoleEntity, error)) *MockdataAccessRepository_GetRoles_Call
type MockdataAccessRepository_GetSsoRoleWithPrefix_Call ¶
MockdataAccessRepository_GetSsoRoleWithPrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSsoRoleWithPrefix'
func (*MockdataAccessRepository_GetSsoRoleWithPrefix_Call) Return ¶
func (_c *MockdataAccessRepository_GetSsoRoleWithPrefix_Call) Return(_a0 *model.RoleEntity, _a1 error) *MockdataAccessRepository_GetSsoRoleWithPrefix_Call
func (*MockdataAccessRepository_GetSsoRoleWithPrefix_Call) Run ¶
func (_c *MockdataAccessRepository_GetSsoRoleWithPrefix_Call) Run(run func(ctx context.Context, prefixName string, excludedRoles []string)) *MockdataAccessRepository_GetSsoRoleWithPrefix_Call
func (*MockdataAccessRepository_GetSsoRoleWithPrefix_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_GetSsoRoleWithPrefix_Call) RunAndReturn(run func(context.Context, string, []string) (*model.RoleEntity, error)) *MockdataAccessRepository_GetSsoRoleWithPrefix_Call
type MockdataAccessRepository_GetUsers_Call ¶
MockdataAccessRepository_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*MockdataAccessRepository_GetUsers_Call) Return ¶
func (_c *MockdataAccessRepository_GetUsers_Call) Return(_a0 []model.UserEntity, _a1 error) *MockdataAccessRepository_GetUsers_Call
func (*MockdataAccessRepository_GetUsers_Call) Run ¶
func (_c *MockdataAccessRepository_GetUsers_Call) Run(run func(ctx context.Context, withDetails bool)) *MockdataAccessRepository_GetUsers_Call
func (*MockdataAccessRepository_GetUsers_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_GetUsers_Call) RunAndReturn(run func(context.Context, bool) ([]model.UserEntity, error)) *MockdataAccessRepository_GetUsers_Call
type MockdataAccessRepository_ListAccessPoints_Call ¶
MockdataAccessRepository_ListAccessPoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAccessPoints'
func (*MockdataAccessRepository_ListAccessPoints_Call) Return ¶
func (_c *MockdataAccessRepository_ListAccessPoints_Call) Return(_a0 []model.AwsS3AccessPoint, _a1 error) *MockdataAccessRepository_ListAccessPoints_Call
func (*MockdataAccessRepository_ListAccessPoints_Call) Run ¶
func (_c *MockdataAccessRepository_ListAccessPoints_Call) Run(run func(ctx context.Context, region string)) *MockdataAccessRepository_ListAccessPoints_Call
func (*MockdataAccessRepository_ListAccessPoints_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_ListAccessPoints_Call) RunAndReturn(run func(context.Context, string) ([]model.AwsS3AccessPoint, error)) *MockdataAccessRepository_ListAccessPoints_Call
type MockdataAccessRepository_UpdateAccessPoint_Call ¶
MockdataAccessRepository_UpdateAccessPoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAccessPoint'
func (*MockdataAccessRepository_UpdateAccessPoint_Call) Return ¶
func (_c *MockdataAccessRepository_UpdateAccessPoint_Call) Return(_a0 error) *MockdataAccessRepository_UpdateAccessPoint_Call
func (*MockdataAccessRepository_UpdateAccessPoint_Call) Run ¶
func (_c *MockdataAccessRepository_UpdateAccessPoint_Call) Run(run func(ctx context.Context, name string, region string, statements []*awspolicy.Statement)) *MockdataAccessRepository_UpdateAccessPoint_Call
func (*MockdataAccessRepository_UpdateAccessPoint_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_UpdateAccessPoint_Call) RunAndReturn(run func(context.Context, string, string, []*awspolicy.Statement) error) *MockdataAccessRepository_UpdateAccessPoint_Call
type MockdataAccessRepository_UpdateAssumeEntities_Call ¶
MockdataAccessRepository_UpdateAssumeEntities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAssumeEntities'
func (*MockdataAccessRepository_UpdateAssumeEntities_Call) Run ¶
func (_c *MockdataAccessRepository_UpdateAssumeEntities_Call) Run(run func(ctx context.Context, roleName string, userNames []string)) *MockdataAccessRepository_UpdateAssumeEntities_Call
func (*MockdataAccessRepository_UpdateAssumeEntities_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_UpdateAssumeEntities_Call) RunAndReturn(run func(context.Context, string, []string) error) *MockdataAccessRepository_UpdateAssumeEntities_Call
type MockdataAccessRepository_UpdateInlinePolicy_Call ¶
MockdataAccessRepository_UpdateInlinePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateInlinePolicy'
func (*MockdataAccessRepository_UpdateInlinePolicy_Call) Return ¶
func (_c *MockdataAccessRepository_UpdateInlinePolicy_Call) Return(_a0 error) *MockdataAccessRepository_UpdateInlinePolicy_Call
func (*MockdataAccessRepository_UpdateInlinePolicy_Call) Run ¶
func (_c *MockdataAccessRepository_UpdateInlinePolicy_Call) Run(run func(ctx context.Context, policyName string, resourceName string, resourceType string, statements []*awspolicy.Statement)) *MockdataAccessRepository_UpdateInlinePolicy_Call
func (*MockdataAccessRepository_UpdateInlinePolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_UpdateInlinePolicy_Call) RunAndReturn(run func(context.Context, string, string, string, []*awspolicy.Statement) error) *MockdataAccessRepository_UpdateInlinePolicy_Call
type MockdataAccessRepository_UpdateManagedPolicy_Call ¶
MockdataAccessRepository_UpdateManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateManagedPolicy'
func (*MockdataAccessRepository_UpdateManagedPolicy_Call) Return ¶
func (_c *MockdataAccessRepository_UpdateManagedPolicy_Call) Return(_a0 error) *MockdataAccessRepository_UpdateManagedPolicy_Call
func (*MockdataAccessRepository_UpdateManagedPolicy_Call) Run ¶
func (_c *MockdataAccessRepository_UpdateManagedPolicy_Call) Run(run func(ctx context.Context, policyName string, awsManaged bool, statements []*awspolicy.Statement)) *MockdataAccessRepository_UpdateManagedPolicy_Call
func (*MockdataAccessRepository_UpdateManagedPolicy_Call) RunAndReturn ¶
func (_c *MockdataAccessRepository_UpdateManagedPolicy_Call) RunAndReturn(run func(context.Context, string, bool, []*awspolicy.Statement) error) *MockdataAccessRepository_UpdateManagedPolicy_Call
type MockdataAccessSsoRepository ¶
MockdataAccessSsoRepository is an autogenerated mock type for the dataAccessSsoRepository type
func NewMockdataAccessSsoRepository ¶
func NewMockdataAccessSsoRepository(t interface { mock.TestingT Cleanup(func()) }) *MockdataAccessSsoRepository
NewMockdataAccessSsoRepository creates a new instance of MockdataAccessSsoRepository. 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 (*MockdataAccessSsoRepository) AssignPermissionSet ¶
func (_m *MockdataAccessSsoRepository) AssignPermissionSet(ctx context.Context, permissionSetArn string, principalType types.PrincipalType, principal string) error
AssignPermissionSet provides a mock function with given fields: ctx, permissionSetArn, principalType, principal
func (*MockdataAccessSsoRepository) AttachAwsManagedPolicyToPermissionSet ¶
func (_m *MockdataAccessSsoRepository) AttachAwsManagedPolicyToPermissionSet(ctx context.Context, permissionSetArn string, policyArn string) error
AttachAwsManagedPolicyToPermissionSet provides a mock function with given fields: ctx, permissionSetArn, policyArn
func (*MockdataAccessSsoRepository) AttachCustomerManagedPolicyToPermissionSet ¶
func (_m *MockdataAccessSsoRepository) AttachCustomerManagedPolicyToPermissionSet(ctx context.Context, permissionSetArn string, name string, path *string) error
AttachCustomerManagedPolicyToPermissionSet provides a mock function with given fields: ctx, permissionSetArn, name, path
func (*MockdataAccessSsoRepository) CreateSsoRole ¶
func (_m *MockdataAccessSsoRepository) CreateSsoRole(ctx context.Context, name string, description string) (string, error)
CreateSsoRole provides a mock function with given fields: ctx, name, description
func (*MockdataAccessSsoRepository) DeleteSsoRole ¶
func (_m *MockdataAccessSsoRepository) DeleteSsoRole(ctx context.Context, permissionSetArn string) error
DeleteSsoRole provides a mock function with given fields: ctx, permissionSetArn
func (*MockdataAccessSsoRepository) DetachAwsManagedPolicyFromPermissionSet ¶
func (_m *MockdataAccessSsoRepository) DetachAwsManagedPolicyFromPermissionSet(ctx context.Context, permissionSetArn string, policyArn string) error
DetachAwsManagedPolicyFromPermissionSet provides a mock function with given fields: ctx, permissionSetArn, policyArn
func (*MockdataAccessSsoRepository) DetachCustomerManagedPolicyFromPermissionSet ¶
func (_m *MockdataAccessSsoRepository) DetachCustomerManagedPolicyFromPermissionSet(ctx context.Context, permissionSetArn string, name string, path *string) error
DetachCustomerManagedPolicyFromPermissionSet provides a mock function with given fields: ctx, permissionSetArn, name, path
func (*MockdataAccessSsoRepository) EXPECT ¶
func (_m *MockdataAccessSsoRepository) EXPECT() *MockdataAccessSsoRepository_Expecter
func (*MockdataAccessSsoRepository) GetGroups ¶
func (_m *MockdataAccessSsoRepository) GetGroups(ctx context.Context) (bimap.Bimap[string, string], error)
GetGroups provides a mock function with given fields: ctx
func (*MockdataAccessSsoRepository) GetSsoRole ¶
func (_m *MockdataAccessSsoRepository) GetSsoRole(ctx context.Context, permissionSetArn string) (*types.PermissionSet, error)
GetSsoRole provides a mock function with given fields: ctx, permissionSetArn
func (*MockdataAccessSsoRepository) GetUsers ¶
func (_m *MockdataAccessSsoRepository) GetUsers(ctx context.Context) (bimap.Bimap[string, string], error)
GetUsers provides a mock function with given fields: ctx
func (*MockdataAccessSsoRepository) HasRaitoCreatedTag ¶
func (_m *MockdataAccessSsoRepository) HasRaitoCreatedTag(ctx context.Context, permissionSetArn string) (bool, error)
HasRaitoCreatedTag provides a mock function with given fields: ctx, permissionSetArn
func (*MockdataAccessSsoRepository) ListAwsManagedPolicyFromPermissionSet ¶
func (_m *MockdataAccessSsoRepository) ListAwsManagedPolicyFromPermissionSet(ctx context.Context, permissionSetArn string) (set.Set[string], error)
ListAwsManagedPolicyFromPermissionSet provides a mock function with given fields: ctx, permissionSetArn
func (*MockdataAccessSsoRepository) ListCustomerManagedPolicyFromPermissionSet ¶
func (_m *MockdataAccessSsoRepository) ListCustomerManagedPolicyFromPermissionSet(ctx context.Context, permissionSetArn string) (set.Set[string], error)
ListCustomerManagedPolicyFromPermissionSet provides a mock function with given fields: ctx, permissionSetArn
func (*MockdataAccessSsoRepository) ListPermissionSetAssignment ¶
func (_m *MockdataAccessSsoRepository) ListPermissionSetAssignment(ctx context.Context, permissionSetArn string) ([]types.AccountAssignment, error)
ListPermissionSetAssignment provides a mock function with given fields: ctx, permissionSetArn
func (*MockdataAccessSsoRepository) ListSsoRole ¶
func (_m *MockdataAccessSsoRepository) ListSsoRole(ctx context.Context) ([]string, error)
ListSsoRole provides a mock function with given fields: ctx
func (*MockdataAccessSsoRepository) ProvisionPermissionSet ¶
func (_m *MockdataAccessSsoRepository) ProvisionPermissionSet(ctx context.Context, permissionSetArn string) (*types.PermissionSetProvisioningStatus, error)
ProvisionPermissionSet provides a mock function with given fields: ctx, permissionSetArn
func (*MockdataAccessSsoRepository) UnassignPermissionSet ¶
func (_m *MockdataAccessSsoRepository) UnassignPermissionSet(ctx context.Context, permissionSetArn string, principalType types.PrincipalType, principal string) error
UnassignPermissionSet provides a mock function with given fields: ctx, permissionSetArn, principalType, principal
func (*MockdataAccessSsoRepository) UpdateInlinePolicyToPermissionSet ¶
func (_m *MockdataAccessSsoRepository) UpdateInlinePolicyToPermissionSet(ctx context.Context, permissionSetArn string, statements []*awspolicy.Statement) error
UpdateInlinePolicyToPermissionSet provides a mock function with given fields: ctx, permissionSetArn, statements
func (*MockdataAccessSsoRepository) UpdateSsoRole ¶
func (_m *MockdataAccessSsoRepository) UpdateSsoRole(ctx context.Context, arn string, description string) error
UpdateSsoRole provides a mock function with given fields: ctx, arn, description
type MockdataAccessSsoRepository_AssignPermissionSet_Call ¶
MockdataAccessSsoRepository_AssignPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssignPermissionSet'
func (*MockdataAccessSsoRepository_AssignPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_AssignPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, principalType types.PrincipalType, principal string)) *MockdataAccessSsoRepository_AssignPermissionSet_Call
func (*MockdataAccessSsoRepository_AssignPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_AssignPermissionSet_Call) RunAndReturn(run func(context.Context, string, types.PrincipalType, string) error) *MockdataAccessSsoRepository_AssignPermissionSet_Call
type MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call ¶
MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachAwsManagedPolicyToPermissionSet'
func (*MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, policyArn string)) *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call
func (*MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) RunAndReturn(run func(context.Context, string, string) error) *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call
type MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call ¶
type MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call struct {
*mock.Call
}
MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachCustomerManagedPolicyToPermissionSet'
func (*MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, name string, path *string)) *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call
func (*MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) RunAndReturn(run func(context.Context, string, string, *string) error) *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call
type MockdataAccessSsoRepository_CreateSsoRole_Call ¶
MockdataAccessSsoRepository_CreateSsoRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSsoRole'
func (*MockdataAccessSsoRepository_CreateSsoRole_Call) Return ¶
func (_c *MockdataAccessSsoRepository_CreateSsoRole_Call) Return(arn string, err error) *MockdataAccessSsoRepository_CreateSsoRole_Call
func (*MockdataAccessSsoRepository_CreateSsoRole_Call) Run ¶
func (_c *MockdataAccessSsoRepository_CreateSsoRole_Call) Run(run func(ctx context.Context, name string, description string)) *MockdataAccessSsoRepository_CreateSsoRole_Call
func (*MockdataAccessSsoRepository_CreateSsoRole_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_CreateSsoRole_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *MockdataAccessSsoRepository_CreateSsoRole_Call
type MockdataAccessSsoRepository_DeleteSsoRole_Call ¶
MockdataAccessSsoRepository_DeleteSsoRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSsoRole'
func (*MockdataAccessSsoRepository_DeleteSsoRole_Call) Return ¶
func (_c *MockdataAccessSsoRepository_DeleteSsoRole_Call) Return(_a0 error) *MockdataAccessSsoRepository_DeleteSsoRole_Call
func (*MockdataAccessSsoRepository_DeleteSsoRole_Call) Run ¶
func (_c *MockdataAccessSsoRepository_DeleteSsoRole_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_DeleteSsoRole_Call
func (*MockdataAccessSsoRepository_DeleteSsoRole_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_DeleteSsoRole_Call) RunAndReturn(run func(context.Context, string) error) *MockdataAccessSsoRepository_DeleteSsoRole_Call
type MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call ¶
MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachAwsManagedPolicyFromPermissionSet'
func (*MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, policyArn string)) *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call
func (*MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) RunAndReturn(run func(context.Context, string, string) error) *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call
type MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call ¶
type MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call struct {
*mock.Call
}
MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachCustomerManagedPolicyFromPermissionSet'
func (*MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, name string, path *string)) *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call
func (*MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call) RunAndReturn ¶
type MockdataAccessSsoRepository_Expecter ¶
type MockdataAccessSsoRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockdataAccessSsoRepository_Expecter) AssignPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) AssignPermissionSet(ctx interface{}, permissionSetArn interface{}, principalType interface{}, principal interface{}) *MockdataAccessSsoRepository_AssignPermissionSet_Call
AssignPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
- principalType types.PrincipalType
- principal string
func (*MockdataAccessSsoRepository_Expecter) AttachAwsManagedPolicyToPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) AttachAwsManagedPolicyToPermissionSet(ctx interface{}, permissionSetArn interface{}, policyArn interface{}) *MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call
AttachAwsManagedPolicyToPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
- policyArn string
func (*MockdataAccessSsoRepository_Expecter) AttachCustomerManagedPolicyToPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) AttachCustomerManagedPolicyToPermissionSet(ctx interface{}, permissionSetArn interface{}, name interface{}, path interface{}) *MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call
AttachCustomerManagedPolicyToPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
- name string
- path *string
func (*MockdataAccessSsoRepository_Expecter) CreateSsoRole ¶
func (_e *MockdataAccessSsoRepository_Expecter) CreateSsoRole(ctx interface{}, name interface{}, description interface{}) *MockdataAccessSsoRepository_CreateSsoRole_Call
CreateSsoRole is a helper method to define mock.On call
- ctx context.Context
- name string
- description string
func (*MockdataAccessSsoRepository_Expecter) DeleteSsoRole ¶
func (_e *MockdataAccessSsoRepository_Expecter) DeleteSsoRole(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_DeleteSsoRole_Call
DeleteSsoRole is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
func (*MockdataAccessSsoRepository_Expecter) DetachAwsManagedPolicyFromPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) DetachAwsManagedPolicyFromPermissionSet(ctx interface{}, permissionSetArn interface{}, policyArn interface{}) *MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call
DetachAwsManagedPolicyFromPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
- policyArn string
func (*MockdataAccessSsoRepository_Expecter) DetachCustomerManagedPolicyFromPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) DetachCustomerManagedPolicyFromPermissionSet(ctx interface{}, permissionSetArn interface{}, name interface{}, path interface{}) *MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call
DetachCustomerManagedPolicyFromPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
- name string
- path *string
func (*MockdataAccessSsoRepository_Expecter) GetGroups ¶
func (_e *MockdataAccessSsoRepository_Expecter) GetGroups(ctx interface{}) *MockdataAccessSsoRepository_GetGroups_Call
GetGroups is a helper method to define mock.On call
- ctx context.Context
func (*MockdataAccessSsoRepository_Expecter) GetSsoRole ¶
func (_e *MockdataAccessSsoRepository_Expecter) GetSsoRole(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_GetSsoRole_Call
GetSsoRole is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
func (*MockdataAccessSsoRepository_Expecter) GetUsers ¶
func (_e *MockdataAccessSsoRepository_Expecter) GetUsers(ctx interface{}) *MockdataAccessSsoRepository_GetUsers_Call
GetUsers is a helper method to define mock.On call
- ctx context.Context
func (*MockdataAccessSsoRepository_Expecter) HasRaitoCreatedTag ¶
func (_e *MockdataAccessSsoRepository_Expecter) HasRaitoCreatedTag(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
HasRaitoCreatedTag is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
func (*MockdataAccessSsoRepository_Expecter) ListAwsManagedPolicyFromPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) ListAwsManagedPolicyFromPermissionSet(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call
ListAwsManagedPolicyFromPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
func (*MockdataAccessSsoRepository_Expecter) ListCustomerManagedPolicyFromPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) ListCustomerManagedPolicyFromPermissionSet(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call
ListCustomerManagedPolicyFromPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
func (*MockdataAccessSsoRepository_Expecter) ListPermissionSetAssignment ¶
func (_e *MockdataAccessSsoRepository_Expecter) ListPermissionSetAssignment(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call
ListPermissionSetAssignment is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
func (*MockdataAccessSsoRepository_Expecter) ListSsoRole ¶
func (_e *MockdataAccessSsoRepository_Expecter) ListSsoRole(ctx interface{}) *MockdataAccessSsoRepository_ListSsoRole_Call
ListSsoRole is a helper method to define mock.On call
- ctx context.Context
func (*MockdataAccessSsoRepository_Expecter) ProvisionPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) ProvisionPermissionSet(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ProvisionPermissionSet_Call
ProvisionPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
func (*MockdataAccessSsoRepository_Expecter) UnassignPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) UnassignPermissionSet(ctx interface{}, permissionSetArn interface{}, principalType interface{}, principal interface{}) *MockdataAccessSsoRepository_UnassignPermissionSet_Call
UnassignPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
- principalType types.PrincipalType
- principal string
func (*MockdataAccessSsoRepository_Expecter) UpdateInlinePolicyToPermissionSet ¶
func (_e *MockdataAccessSsoRepository_Expecter) UpdateInlinePolicyToPermissionSet(ctx interface{}, permissionSetArn interface{}, statements interface{}) *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call
UpdateInlinePolicyToPermissionSet is a helper method to define mock.On call
- ctx context.Context
- permissionSetArn string
- statements []*awspolicy.Statement
func (*MockdataAccessSsoRepository_Expecter) UpdateSsoRole ¶
func (_e *MockdataAccessSsoRepository_Expecter) UpdateSsoRole(ctx interface{}, arn interface{}, description interface{}) *MockdataAccessSsoRepository_UpdateSsoRole_Call
UpdateSsoRole is a helper method to define mock.On call
- ctx context.Context
- arn string
- description string
type MockdataAccessSsoRepository_GetGroups_Call ¶
MockdataAccessSsoRepository_GetGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGroups'
func (*MockdataAccessSsoRepository_GetGroups_Call) Return ¶
func (_c *MockdataAccessSsoRepository_GetGroups_Call) Return(_a0 bimap.Bimap[string, string], _a1 error) *MockdataAccessSsoRepository_GetGroups_Call
func (*MockdataAccessSsoRepository_GetGroups_Call) Run ¶
func (_c *MockdataAccessSsoRepository_GetGroups_Call) Run(run func(ctx context.Context)) *MockdataAccessSsoRepository_GetGroups_Call
func (*MockdataAccessSsoRepository_GetGroups_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_GetGroups_Call) RunAndReturn(run func(context.Context) (bimap.Bimap[string, string], error)) *MockdataAccessSsoRepository_GetGroups_Call
type MockdataAccessSsoRepository_GetSsoRole_Call ¶
MockdataAccessSsoRepository_GetSsoRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSsoRole'
func (*MockdataAccessSsoRepository_GetSsoRole_Call) Return ¶
func (_c *MockdataAccessSsoRepository_GetSsoRole_Call) Return(_a0 *types.PermissionSet, _a1 error) *MockdataAccessSsoRepository_GetSsoRole_Call
func (*MockdataAccessSsoRepository_GetSsoRole_Call) Run ¶
func (_c *MockdataAccessSsoRepository_GetSsoRole_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_GetSsoRole_Call
func (*MockdataAccessSsoRepository_GetSsoRole_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_GetSsoRole_Call) RunAndReturn(run func(context.Context, string) (*types.PermissionSet, error)) *MockdataAccessSsoRepository_GetSsoRole_Call
type MockdataAccessSsoRepository_GetUsers_Call ¶
MockdataAccessSsoRepository_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*MockdataAccessSsoRepository_GetUsers_Call) Return ¶
func (_c *MockdataAccessSsoRepository_GetUsers_Call) Return(_a0 bimap.Bimap[string, string], _a1 error) *MockdataAccessSsoRepository_GetUsers_Call
func (*MockdataAccessSsoRepository_GetUsers_Call) Run ¶
func (_c *MockdataAccessSsoRepository_GetUsers_Call) Run(run func(ctx context.Context)) *MockdataAccessSsoRepository_GetUsers_Call
func (*MockdataAccessSsoRepository_GetUsers_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_GetUsers_Call) RunAndReturn(run func(context.Context) (bimap.Bimap[string, string], error)) *MockdataAccessSsoRepository_GetUsers_Call
type MockdataAccessSsoRepository_HasRaitoCreatedTag_Call ¶
MockdataAccessSsoRepository_HasRaitoCreatedTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasRaitoCreatedTag'
func (*MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) Return ¶
func (_c *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) Return(_a0 bool, _a1 error) *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
func (*MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) Run ¶
func (_c *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
func (*MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockdataAccessSsoRepository_HasRaitoCreatedTag_Call
type MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call ¶
MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAwsManagedPolicyFromPermissionSet'
func (*MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call
func (*MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) RunAndReturn(run func(context.Context, string) (set.Set[string], error)) *MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call
type MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call ¶
type MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call struct {
*mock.Call
}
MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCustomerManagedPolicyFromPermissionSet'
func (*MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call
func (*MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) RunAndReturn(run func(context.Context, string) (set.Set[string], error)) *MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call
type MockdataAccessSsoRepository_ListPermissionSetAssignment_Call ¶
MockdataAccessSsoRepository_ListPermissionSetAssignment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPermissionSetAssignment'
func (*MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) Run ¶
func (_c *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call
func (*MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) RunAndReturn(run func(context.Context, string) ([]types.AccountAssignment, error)) *MockdataAccessSsoRepository_ListPermissionSetAssignment_Call
type MockdataAccessSsoRepository_ListSsoRole_Call ¶
MockdataAccessSsoRepository_ListSsoRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSsoRole'
func (*MockdataAccessSsoRepository_ListSsoRole_Call) Return ¶
func (_c *MockdataAccessSsoRepository_ListSsoRole_Call) Return(_a0 []string, _a1 error) *MockdataAccessSsoRepository_ListSsoRole_Call
func (*MockdataAccessSsoRepository_ListSsoRole_Call) Run ¶
func (_c *MockdataAccessSsoRepository_ListSsoRole_Call) Run(run func(ctx context.Context)) *MockdataAccessSsoRepository_ListSsoRole_Call
func (*MockdataAccessSsoRepository_ListSsoRole_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_ListSsoRole_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockdataAccessSsoRepository_ListSsoRole_Call
type MockdataAccessSsoRepository_ProvisionPermissionSet_Call ¶
MockdataAccessSsoRepository_ProvisionPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProvisionPermissionSet'
func (*MockdataAccessSsoRepository_ProvisionPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_ProvisionPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string)) *MockdataAccessSsoRepository_ProvisionPermissionSet_Call
func (*MockdataAccessSsoRepository_ProvisionPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_ProvisionPermissionSet_Call) RunAndReturn(run func(context.Context, string) (*types.PermissionSetProvisioningStatus, error)) *MockdataAccessSsoRepository_ProvisionPermissionSet_Call
type MockdataAccessSsoRepository_UnassignPermissionSet_Call ¶
MockdataAccessSsoRepository_UnassignPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnassignPermissionSet'
func (*MockdataAccessSsoRepository_UnassignPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_UnassignPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, principalType types.PrincipalType, principal string)) *MockdataAccessSsoRepository_UnassignPermissionSet_Call
func (*MockdataAccessSsoRepository_UnassignPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_UnassignPermissionSet_Call) RunAndReturn(run func(context.Context, string, types.PrincipalType, string) error) *MockdataAccessSsoRepository_UnassignPermissionSet_Call
type MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call ¶
MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateInlinePolicyToPermissionSet'
func (*MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) Run ¶
func (_c *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) Run(run func(ctx context.Context, permissionSetArn string, statements []*awspolicy.Statement)) *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call
func (*MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) RunAndReturn(run func(context.Context, string, []*awspolicy.Statement) error) *MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call
type MockdataAccessSsoRepository_UpdateSsoRole_Call ¶
MockdataAccessSsoRepository_UpdateSsoRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSsoRole'
func (*MockdataAccessSsoRepository_UpdateSsoRole_Call) Return ¶
func (_c *MockdataAccessSsoRepository_UpdateSsoRole_Call) Return(_a0 error) *MockdataAccessSsoRepository_UpdateSsoRole_Call
func (*MockdataAccessSsoRepository_UpdateSsoRole_Call) Run ¶
func (_c *MockdataAccessSsoRepository_UpdateSsoRole_Call) Run(run func(ctx context.Context, arn string, description string)) *MockdataAccessSsoRepository_UpdateSsoRole_Call
func (*MockdataAccessSsoRepository_UpdateSsoRole_Call) RunAndReturn ¶
func (_c *MockdataAccessSsoRepository_UpdateSsoRole_Call) RunAndReturn(run func(context.Context, string, string) error) *MockdataAccessSsoRepository_UpdateSsoRole_Call
type NameGenerator ¶
type NameGenerator struct {
// contains filtered or unexported fields
}
func NewNameGenerator ¶
func NewNameGenerator(accountId string) (*NameGenerator, error)
func (*NameGenerator) GenerateName ¶
func (ng *NameGenerator) GenerateName(ap *sync_to_target.AccessProvider, apType model.AccessProviderType) (string, error)