Documentation ¶
Index ¶
- func HasPermissionForHook(config *config.IntegrationConfig, hook *config.IntegrationHook) bool
- type Manager
- func (m *Manager) HandleConfigAuth(ctx context.Context, resource, op string, claims map[string]interface{}, ...) config.IntegrationAuthResponse
- func (m *Manager) InvokeHook(ctx context.Context, params model.RequestParams) config.IntegrationAuthResponse
- func (m *Manager) SetConfig(integrations config.Integrations, integrationHooks config.IntegrationHooks) error
- func (m *Manager) SetIntegrationHooks(integrationHooks config.IntegrationHooks)
- func (m *Manager) SetIntegrations(integrations config.Integrations) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasPermissionForHook ¶
func HasPermissionForHook(config *config.IntegrationConfig, hook *config.IntegrationHook) bool
HasPermissionForHook checks if a hook has the permission to hijack call
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is responsible for handling all integration related tasks
func New ¶
func New(adminMan adminManager) *Manager
New creates a new instance of the integration module
func (*Manager) HandleConfigAuth ¶
func (m *Manager) HandleConfigAuth(ctx context.Context, resource, op string, claims map[string]interface{}, attr map[string]string) config.IntegrationAuthResponse
HandleConfigAuth handles the authentication of the config requests
func (*Manager) InvokeHook ¶
func (m *Manager) InvokeHook(ctx context.Context, params model.RequestParams) config.IntegrationAuthResponse
InvokeHook invokes all the hooks registered for the given request
func (*Manager) SetConfig ¶
func (m *Manager) SetConfig(integrations config.Integrations, integrationHooks config.IntegrationHooks) error
SetConfig sets the config of the integration manager
func (*Manager) SetIntegrationHooks ¶
func (m *Manager) SetIntegrationHooks(integrationHooks config.IntegrationHooks)
SetIntegrationHooks set integration hooks
func (*Manager) SetIntegrations ¶
func (m *Manager) SetIntegrations(integrations config.Integrations) error
SetIntegrations sets integtaion config
Click to show internal directories.
Click to hide internal directories.