Help us shape the future of Go! Take the 2026 Go Developer Survey

providers

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeWebhook

func DecodeWebhook(provider, secret string, headers http.Header, payload []byte) (forge.Event, error)

func RegisterPrivate

func RegisterPrivate(service *connections.Service, connector *privateconnector.Connector, runners *runner.Service)

Types

type Factory

type Factory struct{ Development bool }

func (Factory) Catalog

func (Factory) Forge

func (f Factory) Forge(ctx context.Context, r connections.Resolved, checks ...func(context.Context) error) (forge.Provider, error)

func (Factory) Model

func (Factory) Probe

func (Factory) Register

func (f Factory) Register(service *connections.Service)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(db *store.Store, connections *connections.Service, private *privateconnector.Connector, runners *runner.Service, development bool) *Service

func (Service) ForExecution

func (s Service) ForExecution() *Service

func (Service) ForProtection

func (s Service) ForProtection(id string, publishers map[string]string) Client

func (*Service) Read

func (s *Service) Read(ctx context.Context, orgID, connectionID string, op privateconnector.Operation, authorize func(context.Context, pgx.Tx, connections.Connection) error) (privateconnector.Result, error)

func (*Service) SourceReader

func (s *Service) SourceReader(org, connection string, authorize func(context.Context, pgx.Tx, connections.Connection) error) source.Reader

Jump to

Keyboard shortcuts

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