trigger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHost = "gitlab.com"
)

Variables

View Source
var (
	ErrNoServerResponse = errors.New("no response from server")
)

Functions

This section is empty.

Types

type Schema

type Schema uint8
const (
	HTTPS Schema = iota + 1
	HTTP
)

type Trigger

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

func New

func New(tlsInsecureSkipVerify bool, schema Schema, host, privateToken, token, ref string, projectID int, variables []string) *Trigger

func (Trigger) PollForCompletion

func (p Trigger) PollForCompletion(pipelineID int64) (*models.PipelineStatus, error)

func (Trigger) RunPipeline

func (p Trigger) RunPipeline() (*models.CreatePipeline, error)

Jump to

Keyboard shortcuts

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