go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/env Index | Files

package env

import "gopkg.in/src-d/go-vitess.v1/vt/env"

Index

Package Files

env.go

Constants

const (
    // DefaultVtDataRoot is the default value for VTROOT environment variable
    DefaultVtDataRoot = "/vt"
)

func VtDataRoot Uses

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 Uses

func VtMysqlBaseDir() (string, error)

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

func VtMysqlRoot Uses

func VtMysqlRoot() (string, error)

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

func VtRoot Uses

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.

Package env imports 5 packages (graph) and is imported by 6 packages. Updated 2019-06-13. Refresh now. Tools for package owners.