fetcher

package
v0.0.0-...-77e6df5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logs

func Logs(ctx context.Context, opts GetOptions) (io.ReadCloser, error)

Logs returns a ReadCloser with the logs or log metadata requested via HTTP to a cedar service.

Types

type GetOptions

type GetOptions struct {
	// The cedar service's base HTTP URL for the request.
	BaseURL string
	// The user cookie for cedar authorization. Optional.
	Cookie *http.Cookie
	// User API key and name for request header.
	UserKey  string
	UserName string
	// Request information. See cedar's REST documentation for more
	// information:
	// `https://github.com/evergreen-ci/cedar/wiki/Rest-V1-Usage`.
	ID            string
	TaskID        string
	TestName      string
	GroupID       string
	Start         time.Time
	End           time.Time
	Execution     int
	ProcessName   string
	Tags          []string
	PrintTime     bool
	PrintPriority bool
	Tail          int
	Limit         int
	Meta          bool
}

GetOptions specify the required and optional information to create the buildlogger HTTP GET request to cedar.

Jump to

Keyboard shortcuts

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