Documentation
¶
Index ¶
- type IntegrationName
- type Manager
- func (m *Manager) ConfiguredIntegrations(ctx context.Context, cfg *config.Config) ([]string, error)
- func (m *Manager) GetModules() []api.IntegrationModule
- func (m *Manager) Integration(name IntegrationName) *integration.Integration
- func (m *Manager) IntegrationNames() []string
- func (m *Manager) LoadModules(appName string, runCtx *runcontext.RunContext, modules []api.IntegrationModule) error
- func (m *Manager) Register(mod api.IntegrationModule, i *integration.Integration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntegrationName ¶
type IntegrationName string
IntegrationName name of a integration.
const ( ACS IntegrationName = "acs" Artifactory IntegrationName = "artifactory" Azure IntegrationName = "azure" BitBucket IntegrationName = "bitbucket" GitHub IntegrationName = "github" GitLab IntegrationName = "gitlab" Jenkins IntegrationName = "jenkins" Nexus IntegrationName = "nexus" Quay IntegrationName = "quay" TrustedArtifactSigner IntegrationName = "tas" Trustification IntegrationName = "trustification" TrustificationAuth IntegrationName = "trustificationauth" )
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager represents the actor responsible for all integrations. It centralizes the management of integration instances, keeping a consistent set of integration names.
func (*Manager) ConfiguredIntegrations ¶
func (m *Manager) ConfiguredIntegrations( ctx context.Context, cfg *config.Config, ) ([]string, error)
ConfiguredIntegrations returns a slice of integration names configured in the cluster, it uses the "Exists" method in the integration instance to assert it's secret is present in the cluster.
func (*Manager) GetModules ¶
func (m *Manager) GetModules() []api.IntegrationModule
GetModules returns the list of registered integration modules.
func (*Manager) Integration ¶
func (m *Manager) Integration(name IntegrationName) *integration.Integration
Integration returns the integration instance by name.
func (*Manager) IntegrationNames ¶
IntegrationNames returns a list of all integration names.
func (*Manager) LoadModules ¶
func (m *Manager) LoadModules( appName string, runCtx *runcontext.RunContext, modules []api.IntegrationModule, ) error
LoadModules initializes and registers the provided integration modules.
func (*Manager) Register ¶
func (m *Manager) Register(mod api.IntegrationModule, i *integration.Integration)
Register adds a integration instance to the manager.