azuredevops

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package azuredevops contains Azure DevOps specific implementations of source-related functionality.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingEnvVariable reports missing mandatory environment variables.
	ErrMissingEnvVariable = errors.New("missing environment variable")
	// ErrInvalidEnvVariable reports malformed environment variable values.
	ErrInvalidEnvVariable = errors.New("invalid environment value")
)
View Source
var (
	ErrDevOpsSource = errors.New("azure devops source")

	ErrNoAuthenticationHeaderFound        = errors.New("no authentication header found in request")
	ErrMultipleAuthenticationHeadersFound = errors.New("multiple authentication headers found in request")
	ErrInvalidAuthenticationType          = errors.New("invalid authentication type in request")
	ErrUnauthorized                       = errors.New("unauthorized request")

	ErrInvalidWebhookPayload = errors.New("invalid webhook payload")
)

Functions

This section is empty.

Types

type Source

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

Source implement both source.WebhookSource and source.SyncableSource for Azure DevOps.

func NewSource

func NewSource() (*Source, error)

NewSource creates a new Azure DevOps Source reading the needed configuration from the env variables.

func (*Source) Close

func (s *Source) Close(ctx context.Context, _ time.Duration) error

Close implement source.ClosableSource interface.

func (*Source) GetWebhook

func (s *Source) GetWebhook(ctx context.Context, typesToStream map[string]source.Extra, results chan<- source.Data) (source.Webhook, error)

GetWebhook implement source.WebhookSource interface.

func (*Source) StartSyncProcess

func (s *Source) StartSyncProcess(ctx context.Context, typesToFilter map[string]source.Extra, dataChannel chan<- source.Data) error

StartSyncProcess implement source.SyncableSource interface.

Jump to

Keyboard shortcuts

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