integration

package
v0.0.0-...-260b785 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

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