env

package
v3.0.0-rc.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: Apache-2.0 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 VtMysqlBaseDir

func VtMysqlBaseDir() (string, error)

VtMysqlBaseDir returns the Mysql base directory, which contains the fill_help_tables.sql script for instance

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.

Jump to

Keyboard shortcuts

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