Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Providers ¶
func Providers() []string
Providers lists all registered deployment provider names.
func RegisterProvider ¶
func RegisterProvider(name string, constructor ProviderConstructor) error
RegisterProvider adds a deployment provider constructor.
Types ¶
type Provider ¶
type Provider interface {
// Query returns deployments matching the given filters. Providers decide how to map
// DeploymentQuery to upstream APIs (GitHub, GitLab, Bamboo, Argo, Jenkins, etc.).
Query(ctx context.Context, query schema.DeploymentQuery) ([]schema.Deployment, error)
// Get returns a single deployment by its normalized ID.
Get(ctx context.Context, id string) (schema.Deployment, error)
}
Provider defines the capability surface a deployment adapter must satisfy. Query-only in the initial iteration.
type ProviderConstructor ¶
ProviderConstructor builds a Provider instance from decrypted config.
func LookupProvider ¶
func LookupProvider(name string) (ProviderConstructor, bool)
LookupProvider returns a named provider constructor if registered.
Click to show internal directories.
Click to hide internal directories.