integrations

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationContext

type IntegrationContext interface {
	// GetOpenShiftIngressDomain returns the OpenShift ingress domain for the cluster.
	// Returns an error if the cluster is not OpenShift or the domain cannot be determined.
	GetOpenShiftIngressDomain(ctx context.Context) (string, error)
	// GetProductNamespace returns the namespace for the named product from installer config.
	// Returns an error if the product is not found.
	GetProductNamespace(productName string) (string, error)
}

IntegrationContext provides cluster and installer configuration to a URLProvider without exposing internal types. Implementations are supplied by the framework when calling the provider.

type URLProvider

type URLProvider interface {
	GetCallbackURL(ctx context.Context, ic IntegrationContext) (string, error)
	GetHomepageURL(ctx context.Context, ic IntegrationContext) (string, error)
	GetWebhookURL(ctx context.Context, ic IntegrationContext) (string, error)
}

URLProvider supplies URLs (callback for authentication, homepage, webhook). Used with framework.WithURLProvider. Implementations receive an IntegrationContext to derive URLs from cluster/config without importing internal.

Jump to

Keyboard shortcuts

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