env

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// DefaultVtDataRoot is the default value for VTROOT environment variable
	DefaultVtDataRoot = "/vt"
	// DefaultVtRoot is only required for hooks
	DefaultVtRoot = "/usr/local/vitess"
)

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. If it is not set, look for mysqld in the path.

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