Documentation ¶
Index ¶
- func AccessProviderRoleSync(syncer AccessProviderRoleSyncer, ...) *wrappers.DataAccessSyncFunction
- type AccessProviderRoleSyncer
- type MockAccessProviderRoleSyncer
- func (_m *MockAccessProviderRoleSyncer) EXPECT() *MockAccessProviderRoleSyncer_Expecter
- func (_m *MockAccessProviderRoleSyncer) SyncAccessAsCodeToTarget(ctx context.Context, accesses map[string]*sync_to_target.AccessProvider, ...) error
- func (_m *MockAccessProviderRoleSyncer) SyncAccessProvidersFromTarget(ctx context.Context, accessProviderHandler wrappers.AccessProviderHandler, ...) error
- func (_m *MockAccessProviderRoleSyncer) SyncAccessProvidersToTarget(ctx context.Context, rolesToRemove []string, ...) error
- type MockAccessProviderRoleSyncer_Expecter
- func (_e *MockAccessProviderRoleSyncer_Expecter) SyncAccessAsCodeToTarget(ctx interface{}, accesses interface{}, prefix interface{}, ...) *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call
- func (_e *MockAccessProviderRoleSyncer_Expecter) SyncAccessProvidersFromTarget(ctx interface{}, accessProviderHandler interface{}, configMap interface{}) *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call
- func (_e *MockAccessProviderRoleSyncer_Expecter) SyncAccessProvidersToTarget(ctx interface{}, rolesToRemove interface{}, access interface{}, ...) *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call
- type MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) Return(_a0 error) *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) Run(...) *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) RunAndReturn(...) *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call
- type MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) Return(_a0 error) *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) Run(...) *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) RunAndReturn(...) *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call
- type MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) Return(_a0 error) *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) Run(run func(ctx context.Context, rolesToRemove []string, ...)) *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call
- func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) RunAndReturn(...) *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call
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 SyncAccessProvidersToTarget(ctx context.Context, rolesToRemove []string, access map[string]*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 ¶
MockAccessProviderRoleSyncer is an autogenerated mock type for the AccessProviderRoleSyncer type
func NewMockAccessProviderRoleSyncer ¶
func NewMockAccessProviderRoleSyncer(t mockConstructorTestingTNewMockAccessProviderRoleSyncer) *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.
func (*MockAccessProviderRoleSyncer) EXPECT ¶
func (_m *MockAccessProviderRoleSyncer) EXPECT() *MockAccessProviderRoleSyncer_Expecter
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) 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
func (*MockAccessProviderRoleSyncer) SyncAccessProvidersToTarget ¶
func (_m *MockAccessProviderRoleSyncer) SyncAccessProvidersToTarget(ctx context.Context, rolesToRemove []string, access map[string]*sync_to_target.AccessProvider, feedbackHandler wrappers.AccessProviderFeedbackHandler, configMap *config.ConfigMap) error
SyncAccessProvidersToTarget provides a mock function with given fields: ctx, rolesToRemove, access, feedbackHandler, 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) 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
func (*MockAccessProviderRoleSyncer_Expecter) SyncAccessProvidersToTarget ¶
func (_e *MockAccessProviderRoleSyncer_Expecter) SyncAccessProvidersToTarget(ctx interface{}, rolesToRemove interface{}, access interface{}, feedbackHandler interface{}, configMap interface{}) *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call
SyncAccessProvidersToTarget 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
type MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call ¶
MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncAccessAsCodeToTarget'
func (*MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) Run ¶
func (_c *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) Run(run func(ctx context.Context, accesses map[string]*sync_to_target.AccessProvider, prefix string, configMap *config.ConfigMap)) *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call
func (*MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) RunAndReturn ¶ added in v0.32.0
func (_c *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call) RunAndReturn(run func(context.Context, map[string]*sync_to_target.AccessProvider, string, *config.ConfigMap) error) *MockAccessProviderRoleSyncer_SyncAccessAsCodeToTarget_Call
type MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call ¶
MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncAccessProvidersFromTarget'
func (*MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) Run ¶
func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) Run(run func(ctx context.Context, accessProviderHandler wrappers.AccessProviderHandler, configMap *config.ConfigMap)) *MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call
func (*MockAccessProviderRoleSyncer_SyncAccessProvidersFromTarget_Call) RunAndReturn ¶ added in v0.32.0
type MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call ¶
MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncAccessProvidersToTarget'
func (*MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) Run ¶
func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) Run(run func(ctx context.Context, rolesToRemove []string, access map[string]*sync_to_target.AccessProvider, feedbackHandler wrappers.AccessProviderFeedbackHandler, configMap *config.ConfigMap)) *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call
func (*MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) RunAndReturn ¶ added in v0.32.0
func (_c *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) RunAndReturn(run func(context.Context, []string, map[string]*sync_to_target.AccessProvider, wrappers.AccessProviderFeedbackHandler, *config.ConfigMap) error) *MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call