data_access

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const ReservedSSOPrefix = "AWSReservedSSO_"

Variables

This section is empty.

Functions

This section is empty.

Types

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 AccessToTargetSyncer added in v0.0.10

type AccessToTargetSyncer struct {
	Roles          []*sync_to_target.AccessProvider
	Policies       []*sync_to_target.AccessProvider
	AccessPoints   []*sync_to_target.AccessProvider
	PermissionSets []*sync_to_target.AccessProvider
	// contains filtered or unexported fields
}

func NewAccessToTargetSyncer added in v0.0.10

func NewAccessToTargetSyncer(a *AccessSyncer) *AccessToTargetSyncer

type Assignee

type Assignee struct {
	User  *string
	Group *string
}

type MockdataAccessIamRepository added in v0.0.2

type MockdataAccessIamRepository struct {
	mock.Mock
}

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 (*MockdataAccessIamRepository) GetGroups added in v0.0.2

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

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

type MockdataAccessIamRepository_GetGroups_Call struct {
	*mock.Call
}

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 (*MockdataAccessIamRepository_GetGroups_Call) Run added in v0.0.2

func (*MockdataAccessIamRepository_GetGroups_Call) RunAndReturn added in v0.0.2

type MockdataAccessIamRepository_GetUsers_Call added in v0.0.2

type MockdataAccessIamRepository_GetUsers_Call struct {
	*mock.Call
}

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 (*MockdataAccessIamRepository_GetUsers_Call) Run added in v0.0.2

func (*MockdataAccessIamRepository_GetUsers_Call) RunAndReturn added in v0.0.2

type MockdataAccessRepository

type MockdataAccessRepository struct {
	mock.Mock
}

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 no fields

func (*MockdataAccessRepository) CreateAccessPoint

func (_m *MockdataAccessRepository) CreateAccessPoint(ctx context.Context, name string, bucket string, region string, statements []*policy.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 []*policy.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 []*policy.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 (*MockdataAccessRepository) GetAccessPointByNameAndRegion added in v0.0.10

func (_m *MockdataAccessRepository) GetAccessPointByNameAndRegion(ctx context.Context, name string, region string) (*model.AwsS3AccessPoint, error)

GetAccessPointByNameAndRegion provides a mock function with given fields: ctx, name, region

func (*MockdataAccessRepository) GetGroups

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) GetManagedPolicyByName added in v0.0.10

func (_m *MockdataAccessRepository) GetManagedPolicyByName(ctx context.Context, name string) (*model.PolicyEntity, error)

GetManagedPolicyByName provides a mock function with given fields: ctx, name

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) GetRoleByName added in v0.0.10

func (_m *MockdataAccessRepository) GetRoleByName(ctx context.Context, roleName string) (*model.RoleEntity, error)

GetRoleByName provides a mock function with given fields: ctx, roleName

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 []*policy.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 []*policy.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 []*policy.Statement) error

UpdateManagedPolicy provides a mock function with given fields: ctx, policyName, awsManaged, statements

type MockdataAccessRepository_AttachGroupToManagedPolicy_Call

type MockdataAccessRepository_AttachGroupToManagedPolicy_Call struct {
	*mock.Call
}

MockdataAccessRepository_AttachGroupToManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachGroupToManagedPolicy'

func (*MockdataAccessRepository_AttachGroupToManagedPolicy_Call) Return

func (*MockdataAccessRepository_AttachGroupToManagedPolicy_Call) Run

func (*MockdataAccessRepository_AttachGroupToManagedPolicy_Call) RunAndReturn

type MockdataAccessRepository_AttachRoleToManagedPolicy_Call

type MockdataAccessRepository_AttachRoleToManagedPolicy_Call struct {
	*mock.Call
}

MockdataAccessRepository_AttachRoleToManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachRoleToManagedPolicy'

func (*MockdataAccessRepository_AttachRoleToManagedPolicy_Call) Return

func (*MockdataAccessRepository_AttachRoleToManagedPolicy_Call) Run

func (*MockdataAccessRepository_AttachRoleToManagedPolicy_Call) RunAndReturn

type MockdataAccessRepository_AttachUserToManagedPolicy_Call

type MockdataAccessRepository_AttachUserToManagedPolicy_Call struct {
	*mock.Call
}

MockdataAccessRepository_AttachUserToManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachUserToManagedPolicy'

func (*MockdataAccessRepository_AttachUserToManagedPolicy_Call) Return

func (*MockdataAccessRepository_AttachUserToManagedPolicy_Call) Run

func (*MockdataAccessRepository_AttachUserToManagedPolicy_Call) RunAndReturn

type MockdataAccessRepository_ClearCache_Call added in v0.0.4

type MockdataAccessRepository_ClearCache_Call struct {
	*mock.Call
}

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 (*MockdataAccessRepository_ClearCache_Call) Run added in v0.0.4

func (*MockdataAccessRepository_ClearCache_Call) RunAndReturn added in v0.0.4

type MockdataAccessRepository_CreateAccessPoint_Call

type MockdataAccessRepository_CreateAccessPoint_Call struct {
	*mock.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 (*MockdataAccessRepository_CreateAccessPoint_Call) Run

func (*MockdataAccessRepository_CreateAccessPoint_Call) RunAndReturn

type MockdataAccessRepository_CreateManagedPolicy_Call

type MockdataAccessRepository_CreateManagedPolicy_Call struct {
	*mock.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 (*MockdataAccessRepository_CreateManagedPolicy_Call) Run

func (*MockdataAccessRepository_CreateManagedPolicy_Call) RunAndReturn

type MockdataAccessRepository_CreateRoleInlinePolicy_Call

type MockdataAccessRepository_CreateRoleInlinePolicy_Call struct {
	*mock.Call
}

MockdataAccessRepository_CreateRoleInlinePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRoleInlinePolicy'

func (*MockdataAccessRepository_CreateRoleInlinePolicy_Call) Return

func (*MockdataAccessRepository_CreateRoleInlinePolicy_Call) Run

func (*MockdataAccessRepository_CreateRoleInlinePolicy_Call) RunAndReturn

type MockdataAccessRepository_CreateRole_Call

type MockdataAccessRepository_CreateRole_Call struct {
	*mock.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 (*MockdataAccessRepository_CreateRole_Call) Run

func (*MockdataAccessRepository_CreateRole_Call) RunAndReturn

type MockdataAccessRepository_DeleteAccessPoint_Call

type MockdataAccessRepository_DeleteAccessPoint_Call struct {
	*mock.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 (*MockdataAccessRepository_DeleteAccessPoint_Call) Run

func (*MockdataAccessRepository_DeleteAccessPoint_Call) RunAndReturn

type MockdataAccessRepository_DeleteInlinePolicy_Call

type MockdataAccessRepository_DeleteInlinePolicy_Call struct {
	*mock.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 (*MockdataAccessRepository_DeleteInlinePolicy_Call) Run

func (*MockdataAccessRepository_DeleteInlinePolicy_Call) RunAndReturn

type MockdataAccessRepository_DeleteManagedPolicy_Call

type MockdataAccessRepository_DeleteManagedPolicy_Call struct {
	*mock.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 (*MockdataAccessRepository_DeleteManagedPolicy_Call) Run

func (*MockdataAccessRepository_DeleteManagedPolicy_Call) RunAndReturn

type MockdataAccessRepository_DeleteRoleInlinePolicies_Call

type MockdataAccessRepository_DeleteRoleInlinePolicies_Call struct {
	*mock.Call
}

MockdataAccessRepository_DeleteRoleInlinePolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRoleInlinePolicies'

func (*MockdataAccessRepository_DeleteRoleInlinePolicies_Call) Return

func (*MockdataAccessRepository_DeleteRoleInlinePolicies_Call) Run

func (*MockdataAccessRepository_DeleteRoleInlinePolicies_Call) RunAndReturn

type MockdataAccessRepository_DeleteRole_Call

type MockdataAccessRepository_DeleteRole_Call struct {
	*mock.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 (*MockdataAccessRepository_DeleteRole_Call) Run

func (*MockdataAccessRepository_DeleteRole_Call) RunAndReturn

type MockdataAccessRepository_DetachGroupFromManagedPolicy_Call

type MockdataAccessRepository_DetachGroupFromManagedPolicy_Call struct {
	*mock.Call
}

MockdataAccessRepository_DetachGroupFromManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachGroupFromManagedPolicy'

func (*MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) Return

func (*MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) Run

func (*MockdataAccessRepository_DetachGroupFromManagedPolicy_Call) RunAndReturn

type MockdataAccessRepository_DetachRoleFromManagedPolicy_Call

type MockdataAccessRepository_DetachRoleFromManagedPolicy_Call struct {
	*mock.Call
}

MockdataAccessRepository_DetachRoleFromManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachRoleFromManagedPolicy'

func (*MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) Return

func (*MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) Run

func (*MockdataAccessRepository_DetachRoleFromManagedPolicy_Call) RunAndReturn

type MockdataAccessRepository_DetachUserFromManagedPolicy_Call

type MockdataAccessRepository_DetachUserFromManagedPolicy_Call struct {
	*mock.Call
}

MockdataAccessRepository_DetachUserFromManagedPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachUserFromManagedPolicy'

func (*MockdataAccessRepository_DetachUserFromManagedPolicy_Call) Return

func (*MockdataAccessRepository_DetachUserFromManagedPolicy_Call) Run

func (*MockdataAccessRepository_DetachUserFromManagedPolicy_Call) RunAndReturn

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

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 []*policy.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 []*policy.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 []*policy.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) GetAccessPointByNameAndRegion added in v0.0.10

func (_e *MockdataAccessRepository_Expecter) GetAccessPointByNameAndRegion(ctx interface{}, name interface{}, region interface{}) *MockdataAccessRepository_GetAccessPointByNameAndRegion_Call

GetAccessPointByNameAndRegion is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • region string

func (*MockdataAccessRepository_Expecter) GetGroups

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

GetManagedPolicies is a helper method to define mock.On call

  • ctx context.Context

func (*MockdataAccessRepository_Expecter) GetManagedPolicyByName added in v0.0.10

func (_e *MockdataAccessRepository_Expecter) GetManagedPolicyByName(ctx interface{}, name interface{}) *MockdataAccessRepository_GetManagedPolicyByName_Call

GetManagedPolicyByName is a helper method to define mock.On call

  • ctx context.Context
  • name string

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) GetRoleByName added in v0.0.10

func (_e *MockdataAccessRepository_Expecter) GetRoleByName(ctx interface{}, roleName interface{}) *MockdataAccessRepository_GetRoleByName_Call

GetRoleByName is a helper method to define mock.On call

  • ctx context.Context
  • roleName string

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 []*policy.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 []*policy.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 []*policy.Statement

type MockdataAccessRepository_GetAccessPointByNameAndRegion_Call added in v0.0.10

type MockdataAccessRepository_GetAccessPointByNameAndRegion_Call struct {
	*mock.Call
}

MockdataAccessRepository_GetAccessPointByNameAndRegion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccessPointByNameAndRegion'

func (*MockdataAccessRepository_GetAccessPointByNameAndRegion_Call) Return added in v0.0.10

func (*MockdataAccessRepository_GetAccessPointByNameAndRegion_Call) Run added in v0.0.10

func (*MockdataAccessRepository_GetAccessPointByNameAndRegion_Call) RunAndReturn added in v0.0.10

type MockdataAccessRepository_GetGroups_Call

type MockdataAccessRepository_GetGroups_Call struct {
	*mock.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 (*MockdataAccessRepository_GetGroups_Call) Run

func (*MockdataAccessRepository_GetGroups_Call) RunAndReturn

type MockdataAccessRepository_GetInlinePoliciesForEntities_Call

type MockdataAccessRepository_GetInlinePoliciesForEntities_Call struct {
	*mock.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 (*MockdataAccessRepository_GetInlinePoliciesForEntities_Call) Run

func (*MockdataAccessRepository_GetInlinePoliciesForEntities_Call) RunAndReturn

type MockdataAccessRepository_GetManagedPolicies_Call

type MockdataAccessRepository_GetManagedPolicies_Call struct {
	*mock.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 (*MockdataAccessRepository_GetManagedPolicies_Call) Run

func (*MockdataAccessRepository_GetManagedPolicies_Call) RunAndReturn

type MockdataAccessRepository_GetManagedPolicyByName_Call added in v0.0.10

type MockdataAccessRepository_GetManagedPolicyByName_Call struct {
	*mock.Call
}

MockdataAccessRepository_GetManagedPolicyByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetManagedPolicyByName'

func (*MockdataAccessRepository_GetManagedPolicyByName_Call) Return added in v0.0.10

func (*MockdataAccessRepository_GetManagedPolicyByName_Call) Run added in v0.0.10

func (*MockdataAccessRepository_GetManagedPolicyByName_Call) RunAndReturn added in v0.0.10

type MockdataAccessRepository_GetPolicyArn_Call

type MockdataAccessRepository_GetPolicyArn_Call struct {
	*mock.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 (*MockdataAccessRepository_GetPolicyArn_Call) Run

func (*MockdataAccessRepository_GetPolicyArn_Call) RunAndReturn

type MockdataAccessRepository_GetRoleByName_Call added in v0.0.10

type MockdataAccessRepository_GetRoleByName_Call struct {
	*mock.Call
}

MockdataAccessRepository_GetRoleByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRoleByName'

func (*MockdataAccessRepository_GetRoleByName_Call) Return added in v0.0.10

func (*MockdataAccessRepository_GetRoleByName_Call) Run added in v0.0.10

func (*MockdataAccessRepository_GetRoleByName_Call) RunAndReturn added in v0.0.10

type MockdataAccessRepository_GetRoles_Call

type MockdataAccessRepository_GetRoles_Call struct {
	*mock.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 (*MockdataAccessRepository_GetRoles_Call) Run

func (*MockdataAccessRepository_GetRoles_Call) RunAndReturn

type MockdataAccessRepository_GetSsoRoleWithPrefix_Call

type MockdataAccessRepository_GetSsoRoleWithPrefix_Call struct {
	*mock.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 (*MockdataAccessRepository_GetSsoRoleWithPrefix_Call) Run

func (*MockdataAccessRepository_GetSsoRoleWithPrefix_Call) RunAndReturn

type MockdataAccessRepository_GetUsers_Call

type MockdataAccessRepository_GetUsers_Call struct {
	*mock.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 (*MockdataAccessRepository_GetUsers_Call) Run

func (*MockdataAccessRepository_GetUsers_Call) RunAndReturn

type MockdataAccessRepository_ListAccessPoints_Call

type MockdataAccessRepository_ListAccessPoints_Call struct {
	*mock.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 (*MockdataAccessRepository_ListAccessPoints_Call) Run

func (*MockdataAccessRepository_ListAccessPoints_Call) RunAndReturn

type MockdataAccessRepository_UpdateAccessPoint_Call

type MockdataAccessRepository_UpdateAccessPoint_Call struct {
	*mock.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 (*MockdataAccessRepository_UpdateAccessPoint_Call) Run

func (*MockdataAccessRepository_UpdateAccessPoint_Call) RunAndReturn

type MockdataAccessRepository_UpdateAssumeEntities_Call

type MockdataAccessRepository_UpdateAssumeEntities_Call struct {
	*mock.Call
}

MockdataAccessRepository_UpdateAssumeEntities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAssumeEntities'

func (*MockdataAccessRepository_UpdateAssumeEntities_Call) Return

func (*MockdataAccessRepository_UpdateAssumeEntities_Call) Run

func (*MockdataAccessRepository_UpdateAssumeEntities_Call) RunAndReturn

type MockdataAccessRepository_UpdateInlinePolicy_Call

type MockdataAccessRepository_UpdateInlinePolicy_Call struct {
	*mock.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 (*MockdataAccessRepository_UpdateInlinePolicy_Call) Run

func (_c *MockdataAccessRepository_UpdateInlinePolicy_Call) Run(run func(ctx context.Context, policyName string, resourceName string, resourceType string, statements []*policy.Statement)) *MockdataAccessRepository_UpdateInlinePolicy_Call

func (*MockdataAccessRepository_UpdateInlinePolicy_Call) RunAndReturn

type MockdataAccessRepository_UpdateManagedPolicy_Call

type MockdataAccessRepository_UpdateManagedPolicy_Call struct {
	*mock.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 (*MockdataAccessRepository_UpdateManagedPolicy_Call) Run

func (*MockdataAccessRepository_UpdateManagedPolicy_Call) RunAndReturn

type MockdataAccessS3Repo added in v0.0.9

type MockdataAccessS3Repo struct {
	mock.Mock
}

MockdataAccessS3Repo is an autogenerated mock type for the dataAccessS3Repo type

func NewMockdataAccessS3Repo added in v0.0.9

func NewMockdataAccessS3Repo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockdataAccessS3Repo

NewMockdataAccessS3Repo creates a new instance of MockdataAccessS3Repo. 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 (*MockdataAccessS3Repo) EXPECT added in v0.0.9

func (*MockdataAccessS3Repo) ListBuckets added in v0.0.9

func (_m *MockdataAccessS3Repo) ListBuckets(ctx context.Context) ([]model.AwsS3Entity, error)

ListBuckets provides a mock function with given fields: ctx

type MockdataAccessS3Repo_Expecter added in v0.0.9

type MockdataAccessS3Repo_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockdataAccessS3Repo_Expecter) ListBuckets added in v0.0.9

func (_e *MockdataAccessS3Repo_Expecter) ListBuckets(ctx interface{}) *MockdataAccessS3Repo_ListBuckets_Call

ListBuckets is a helper method to define mock.On call

  • ctx context.Context

type MockdataAccessS3Repo_ListBuckets_Call added in v0.0.9

type MockdataAccessS3Repo_ListBuckets_Call struct {
	*mock.Call
}

MockdataAccessS3Repo_ListBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBuckets'

func (*MockdataAccessS3Repo_ListBuckets_Call) Return added in v0.0.9

func (*MockdataAccessS3Repo_ListBuckets_Call) Run added in v0.0.9

func (*MockdataAccessS3Repo_ListBuckets_Call) RunAndReturn added in v0.0.9

type MockdataAccessSsoRepository

type MockdataAccessSsoRepository struct {
	mock.Mock
}

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, tags map[string]string) (string, error)

CreateSsoRole provides a mock function with given fields: ctx, name, description, tags

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 (*MockdataAccessSsoRepository) GetGroups

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

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) ListSsoRoles added in v0.0.10

func (_m *MockdataAccessSsoRepository) ListSsoRoles(ctx context.Context) ([]string, error)

ListSsoRoles provides a mock function with given fields: ctx

func (*MockdataAccessSsoRepository) ProvisionPermissionSetAndWait added in v0.0.13

func (_m *MockdataAccessSsoRepository) ProvisionPermissionSetAndWait(ctx context.Context, permissionSetArn string) error

ProvisionPermissionSetAndWait 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 []*policy.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, tags map[string]string) error

UpdateSsoRole provides a mock function with given fields: ctx, arn, description, tags

type MockdataAccessSsoRepository_AssignPermissionSet_Call

type MockdataAccessSsoRepository_AssignPermissionSet_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_AssignPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssignPermissionSet'

func (*MockdataAccessSsoRepository_AssignPermissionSet_Call) Return

func (*MockdataAccessSsoRepository_AssignPermissionSet_Call) Run

func (*MockdataAccessSsoRepository_AssignPermissionSet_Call) RunAndReturn

type MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call

type MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachAwsManagedPolicyToPermissionSet'

func (*MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) Return

func (*MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) Run

func (*MockdataAccessSsoRepository_AttachAwsManagedPolicyToPermissionSet_Call) RunAndReturn

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) Return

func (*MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) Run

func (*MockdataAccessSsoRepository_AttachCustomerManagedPolicyToPermissionSet_Call) RunAndReturn

type MockdataAccessSsoRepository_CreateSsoRole_Call

type MockdataAccessSsoRepository_CreateSsoRole_Call struct {
	*mock.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 (*MockdataAccessSsoRepository_CreateSsoRole_Call) Run

func (*MockdataAccessSsoRepository_CreateSsoRole_Call) RunAndReturn

type MockdataAccessSsoRepository_DeleteSsoRole_Call

type MockdataAccessSsoRepository_DeleteSsoRole_Call struct {
	*mock.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 (*MockdataAccessSsoRepository_DeleteSsoRole_Call) Run

func (*MockdataAccessSsoRepository_DeleteSsoRole_Call) RunAndReturn

type MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call

type MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachAwsManagedPolicyFromPermissionSet'

func (*MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) Return

func (*MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) Run

func (*MockdataAccessSsoRepository_DetachAwsManagedPolicyFromPermissionSet_Call) RunAndReturn

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) Return

func (*MockdataAccessSsoRepository_DetachCustomerManagedPolicyFromPermissionSet_Call) Run

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{}, tags interface{}) *MockdataAccessSsoRepository_CreateSsoRole_Call

CreateSsoRole is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • description string
  • tags map[string]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

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

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) ListSsoRoles added in v0.0.10

ListSsoRoles is a helper method to define mock.On call

  • ctx context.Context

func (*MockdataAccessSsoRepository_Expecter) ProvisionPermissionSetAndWait added in v0.0.13

func (_e *MockdataAccessSsoRepository_Expecter) ProvisionPermissionSetAndWait(ctx interface{}, permissionSetArn interface{}) *MockdataAccessSsoRepository_ProvisionPermissionSetAndWait_Call

ProvisionPermissionSetAndWait 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 []*policy.Statement

func (*MockdataAccessSsoRepository_Expecter) UpdateSsoRole

func (_e *MockdataAccessSsoRepository_Expecter) UpdateSsoRole(ctx interface{}, arn interface{}, description interface{}, tags interface{}) *MockdataAccessSsoRepository_UpdateSsoRole_Call

UpdateSsoRole is a helper method to define mock.On call

  • ctx context.Context
  • arn string
  • description string
  • tags map[string]string

type MockdataAccessSsoRepository_GetGroups_Call

type MockdataAccessSsoRepository_GetGroups_Call struct {
	*mock.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 (*MockdataAccessSsoRepository_GetGroups_Call) Run

func (*MockdataAccessSsoRepository_GetGroups_Call) RunAndReturn

type MockdataAccessSsoRepository_GetSsoRole_Call

type MockdataAccessSsoRepository_GetSsoRole_Call struct {
	*mock.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 (*MockdataAccessSsoRepository_GetSsoRole_Call) Run

func (*MockdataAccessSsoRepository_GetSsoRole_Call) RunAndReturn

type MockdataAccessSsoRepository_GetUsers_Call

type MockdataAccessSsoRepository_GetUsers_Call struct {
	*mock.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 (*MockdataAccessSsoRepository_GetUsers_Call) Run

func (*MockdataAccessSsoRepository_GetUsers_Call) RunAndReturn

type MockdataAccessSsoRepository_HasRaitoCreatedTag_Call

type MockdataAccessSsoRepository_HasRaitoCreatedTag_Call struct {
	*mock.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 (*MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) Run

func (*MockdataAccessSsoRepository_HasRaitoCreatedTag_Call) RunAndReturn

type MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call

type MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAwsManagedPolicyFromPermissionSet'

func (*MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) Return

func (*MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) Run

func (*MockdataAccessSsoRepository_ListAwsManagedPolicyFromPermissionSet_Call) RunAndReturn

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) Return

func (*MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) Run

func (*MockdataAccessSsoRepository_ListCustomerManagedPolicyFromPermissionSet_Call) RunAndReturn

type MockdataAccessSsoRepository_ListPermissionSetAssignment_Call

type MockdataAccessSsoRepository_ListPermissionSetAssignment_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_ListPermissionSetAssignment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPermissionSetAssignment'

func (*MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) Return

func (*MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) Run

func (*MockdataAccessSsoRepository_ListPermissionSetAssignment_Call) RunAndReturn

type MockdataAccessSsoRepository_ListSsoRoles_Call added in v0.0.10

type MockdataAccessSsoRepository_ListSsoRoles_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_ListSsoRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSsoRoles'

func (*MockdataAccessSsoRepository_ListSsoRoles_Call) Return added in v0.0.10

func (*MockdataAccessSsoRepository_ListSsoRoles_Call) Run added in v0.0.10

func (*MockdataAccessSsoRepository_ListSsoRoles_Call) RunAndReturn added in v0.0.10

type MockdataAccessSsoRepository_ProvisionPermissionSetAndWait_Call added in v0.0.13

type MockdataAccessSsoRepository_ProvisionPermissionSetAndWait_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_ProvisionPermissionSetAndWait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProvisionPermissionSetAndWait'

func (*MockdataAccessSsoRepository_ProvisionPermissionSetAndWait_Call) Return added in v0.0.13

func (*MockdataAccessSsoRepository_ProvisionPermissionSetAndWait_Call) Run added in v0.0.13

func (*MockdataAccessSsoRepository_ProvisionPermissionSetAndWait_Call) RunAndReturn added in v0.0.13

type MockdataAccessSsoRepository_UnassignPermissionSet_Call

type MockdataAccessSsoRepository_UnassignPermissionSet_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_UnassignPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnassignPermissionSet'

func (*MockdataAccessSsoRepository_UnassignPermissionSet_Call) Return

func (*MockdataAccessSsoRepository_UnassignPermissionSet_Call) Run

func (*MockdataAccessSsoRepository_UnassignPermissionSet_Call) RunAndReturn

type MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call

type MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call struct {
	*mock.Call
}

MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateInlinePolicyToPermissionSet'

func (*MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) Return

func (*MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) Run

func (*MockdataAccessSsoRepository_UpdateInlinePolicyToPermissionSet_Call) RunAndReturn

type MockdataAccessSsoRepository_UpdateSsoRole_Call

type MockdataAccessSsoRepository_UpdateSsoRole_Call struct {
	*mock.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 (*MockdataAccessSsoRepository_UpdateSsoRole_Call) Run

func (*MockdataAccessSsoRepository_UpdateSsoRole_Call) RunAndReturn

type NameGenerator

type NameGenerator struct {
	// contains filtered or unexported fields
}

func NewNameGenerator

func NewNameGenerator(accountId string, params map[string]string) (*NameGenerator, error)

func (*NameGenerator) GenerateName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL