env

package
Version: v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultVtDataRoot = "/vt"
)

Variables

This section is empty.

Functions

func VtDataRoot

func VtDataRoot() string

VtDataRoot returns $VTDATAROOT or the default if $VTDATAROOT is not set. VtDataRoot does not check if the directory exists and is writable.

func VtMysqlRoot

func VtMysqlRoot() (string, error)

VtMysqlRoot returns the root for the mysql distribution, which contains bin/mysql CLI for instance.

func VtRoot

func VtRoot() (root string, err error)

VtRoot returns $VTROOT or tries to guess its value if it's not set. This is the root for the 'vt' distribution, which contains bin/vttablet for instance.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL