role_based

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 10 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
	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

type MockAccessProviderRoleSyncer struct {
	mock.Mock
}

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 (*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

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_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

type MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call

type MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call struct {
	*mock.Call
}

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

func (*MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) Return

func (*MockAccessProviderRoleSyncer_SyncAccessProvidersToTarget_Call) Run

Jump to

Keyboard shortcuts

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