evergreen

package
v0.0.0-...-e563b53 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EVG_API_BASE_URI    = "https://evergreen.mongodb.com/rest/v2"
	EVG_API_HEADER_USER = "Api-User"
	EVG_API_HEADER_KEY  = "Api-Key"

	EVG_USER_ENV_VAR = "EVG_USER"
	EVG_KEY_ENV_VAR  = "EVG_KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Method string
	Path   string
	Status int
	Body   string
}

func (APIError) Error

func (e APIError) Error() string

func (APIError) String

func (e APIError) String() string

type Artifact

type Artifact struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

func GetArtifactsForTask

func GetArtifactsForTask(id string) ([]Artifact, error)

type Task

type Task struct {
	TaskID      string `json:"task_id"`
	BuildID     string `json:"build_id"`
	Variant     string `json:"build_variant"`
	Status      string `json:"status"`
	DisplayName string `json:"display_name"`
}

func GetTasksForRevision

func GetTasksForRevision(rev string) ([]Task, error)

func (Task) IsPatch

func (t Task) IsPatch() bool

Jump to

Keyboard shortcuts

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