Back to godoc.org

Package bootstrap

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package bootstrap handles Butler-side bootstrapping functionality.

Index

type Environment

type Environment struct {
	// CoordinatorHost is the coordinator host name, or empty string if we are
	// not outputting to a Coordinator.
	//
	// HACK: If this starts with file:// clients will treat it as a local
	// filesystem prefix instead of trying to construct an https URL. If this
	// starts with file://, Project and Prefix should be empty.
	CoordinatorHost string

	// Project is the project name. If not empty, this will be exported to
	// subprocesses.
	Project string
	// Prefix is the prefix name. If not empty, this will be exported to
	// subprocesses.
	Prefix string
	// StreamServerURI is the streamserver URI. If not empty, this will be
	// exported to subprocesses.
	StreamServerURI string
}

Environment is the set of configuration parameters for the bootstrap.

NOTE: This is an awful encapsulation violation. We should change the butler protocol so that opening a new stream has the butler immediately reply with the externally-visible URL to the stream and stop exporting these envvars (with the exception of StreamServerURI) entirely.

NOTE: This should use LUCI_CONTEXT instead of bare envvars.

func (*Environment) Augment

func (e *Environment) Augment(base environ.Env)

Augment augments the supplied base environment with LogDog Butler bootstrap parameters.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier