role_based

package
v0.50.0-dev0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessProviderRoleSync

func AccessProviderRoleSync(syncer AccessProviderRoleSyncer, namingConstraints naming_hint.NamingConstraints, configOpt ...func(config *access_provider.AccessSyncConfig)) *wrappers.DataAccessSyncFunction

Types

type AccessProviderRoleSyncer

type AccessProviderRoleSyncer interface {
	SyncAccessProvidersFromTarget(ctx context.Context, accessProviderHandler wrappers.AccessProviderHandler, configMap *config.ConfigMap) error

	SyncAccessProviderRolesToTarget(ctx context.Context, rolesToRemove []string, access map[string]*sync_to_target.AccessProvider, feedbackHandler wrappers.AccessProviderFeedbackHandler, configMap *config.ConfigMap) error
	SyncAccessProviderMasksToTarget(ctx context.Context, masksToRemove []string, access []*sync_to_target.AccessProvider, feedbackHandler wrappers.AccessProviderFeedbackHandler, configMap *config.ConfigMap) error

	SyncAccessAsCodeToTarget(ctx context.Context, accesses map[string]*sync_to_target.AccessProvider, prefix string, configMap *config.ConfigMap) error
}

type MockAccessProviderRoleSyncer

type MockAccessProviderRoleSyncer struct {
	mock.Mock
}

MockAccessProviderRoleSyncer is an autogenerated mock type for the AccessProviderRoleSyncer type

func NewMockAccessProviderRoleSyncer

func NewMockAccessProviderRoleSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAccessProviderRoleSyncer

NewMockAccessProviderRoleSyncer creates a new instance of MockAccessProviderRoleSyncer. 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 (*MockAccessProviderRoleSyncer) EXPECT

func (*MockAccessProviderRoleSyncer) SyncAccessAsCodeToTarget

func (_m *MockAccessProviderRoleSyncer) SyncAccessAsCodeToTarget(ctx context.Context, accesses map[string]*sync_to_target.AccessProvider, prefix string, configMap *config.ConfigMap) error

SyncAccessAsCodeToTarget provides a mock function with given fields: ctx, accesses, prefix, configMap

func (*MockAccessProviderRoleSyncer) SyncAccessProviderMasksToTarget added in v0.49.2

func (_m *MockAccessProviderRoleSyncer) SyncAccessProviderMasksToTarget(ctx context.Context, masksToRemove []string, access []*sync_to_target.AccessProvider, feedbackHandler wrappers.AccessProviderFeedbackHandler, configMap *config.ConfigMap) error

SyncAccessProviderMasksToTarget provides a mock function with given fields: ctx, masksToRemove, access, feedbackHandler, configMap

func (*MockAccessProviderRoleSyncer) SyncAccessProviderRolesToTarget added in v0.49.2

func (_m *MockAccessProviderRoleSyncer) SyncAccessProviderRolesToTarget(ctx context.Context, rolesToRemove []string, access map[string]*sync_to_target.AccessProvider, feedbackHandler wrappers.AccessProviderFeedbackHandler, configMap *config.ConfigMap) error

SyncAccessProviderRolesToTarget provides a mock function with given fields: ctx, rolesToRemove, access, feedbackHandler, configMap

func (*MockAccessProviderRoleSyncer) SyncAccessProvidersFromTarget

func (_m *MockAccessProviderRoleSyncer) SyncAccessProvidersFromTarget(ctx context.Context, accessProviderHandler wrappers.AccessProviderHandler, configMap *config.ConfigMap) error

SyncAccessProvidersFromTarget provides a mock function with given fields: ctx, accessProviderHandler, configMap

type MockAccessProviderRoleSyncer_Expecter

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

func (*MockAccessProviderRoleSyncer_Expecter) SyncAccessAsCodeToTarget

func (_e *MockAccessProviderRoleSyncer_Expecter) SyncAccessAsCodeToTarget(ctx interface{}, accesses interface{}, prefix interface{}, configMap interface{}) *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call

SyncAccessAsCodeToTarget is a helper method to define mock.On call

  • ctx context.Context
  • accesses map[string]*sync_to_target.AccessProvider
  • prefix string
  • configMap *config.ConfigMap

func (*MockAccessProviderRoleSyncer_Expecter) SyncAccessProviderMasksToTarget added in v0.49.2

func (_e *MockAccessProviderRoleSyncer_Expecter) SyncAccessProviderMasksToTarget(ctx interface{}, masksToRemove interface{}, access interface{}, feedbackHandler interface{}, configMap interface{}) *MockAccessProviderRoleSyncer_SyncAccessProviderMasksToTarget_Call

SyncAccessProviderMasksToTarget is a helper method to define mock.On call

  • ctx context.Context
  • masksToRemove []string
  • access []*sync_to_target.AccessProvider
  • feedbackHandler wrappers.AccessProviderFeedbackHandler
  • configMap *config.ConfigMap

func (*MockAccessProviderRoleSyncer_Expecter) SyncAccessProviderRolesToTarget added in v0.49.2

func (_e *MockAccessProviderRoleSyncer_Expecter) SyncAccessProviderRolesToTarget(ctx interface{}, rolesToRemove interface{}, access interface{}, feedbackHandler interface{}, configMap interface{}) *MockAccessProviderRoleSyncer_SyncAccessProviderRolesToTarget_Call

SyncAccessProviderRolesToTarget is a helper method to define mock.On call

  • ctx context.Context
  • rolesToRemove []string
  • access map[string]*sync_to_target.AccessProvider
  • feedbackHandler wrappers.AccessProviderFeedbackHandler
  • configMap *config.ConfigMap

func (*MockAccessProviderRoleSyncer_Expecter) SyncAccessProvidersFromTarget

func (_e *MockAccessProviderRoleSyncer_Expecter) SyncAccessProvidersFromTarget(ctx interface{}, accessProviderHandler interface{}, configMap interface{}) *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call

SyncAccessProvidersFromTarget is a helper method to define mock.On call

  • ctx context.Context
  • accessProviderHandler wrappers.AccessProviderHandler
  • configMap *config.ConfigMap

type MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call

type MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call struct {
	*mock.Call
}

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

func (*MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) Return

func (*MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) Run

func (*MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) RunAndReturn added in v0.32.0

type MockAccessProviderRoleSyncer_SyncAccessProviderMasksToTarget_Call added in v0.49.2

type MockAccessProviderRoleSyncer_SyncAccessProviderMasksToTarget_Call struct {
	*mock.Call
}

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

func (*MockAccessProviderRoleSyncer_SyncAccessProviderMasksToTarget_Call) Return added in v0.49.2

func (*MockAccessProviderRoleSyncer_SyncAccessProviderMasksToTarget_Call) Run added in v0.49.2

type MockAccessProviderRoleSyncer_SyncAccessProviderRolesToTarget_Call added in v0.49.2

type MockAccessProviderRoleSyncer_SyncAccessProviderRolesToTarget_Call struct {
	*mock.Call
}

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

func (*MockAccessProviderRoleSyncer_SyncAccessProviderRolesToTarget_Call) Return added in v0.49.2

func (*MockAccessProviderRoleSyncer_SyncAccessProviderRolesToTarget_Call) Run added in v0.49.2

type MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call

type MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call struct {
	*mock.Call
}

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

func (*MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) Return

func (*MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) Run

func (*MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) RunAndReturn added in v0.32.0

Jump to

Keyboard shortcuts

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