azuredevops

package
v0.0.0-...-4e27ce1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsUnexpectedResponse

func IsUnexpectedResponse(err error) bool

IsUnexpectedResponse asserts unexpectedResponseError.

Types

type Config

type Config struct {
	// Settings.
	ADVOUser  string
	AZDOToken string
}

Config represents the configuration used to create a new azdvo service.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a azdvo service.

type Service

type Service struct {
	// Settings.
	ADVOUser  string
	AZDOToken string
}

Service represents a azdvo service.

func New

func New(config Config) (*Service, error)

New creates a new configured azdvo service.

func (*Service) RunPipeline

func (s *Service) RunPipeline(ctx context.Context, organization string, project string, params string) error

runPipeline will trigger Azure Devops pipeline.

Jump to

Keyboard shortcuts

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