common

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// QMSTRADDRENV is the name of the environment variable that holds connection string to access qmstr-master server
	QMSTRADDRENV = "QMSTR_MASTER"
	// QMSTRDEBUGENV is the name of the environment variable that defines if qmstr runs in debug mode
	QMSTRDEBUGENV = "QMSTR_DEBUG"
	// CCACHEDIRENV is the name of the environment variable that stores the path to the ccache cache directory
	CCACHEDIRENV = "CCACHE_DIR"
	// QMSTRGCC is the name of the environment variable that defines if gcc wrapper is running
	// It is used to skip as, or ld commands when wrapping gcc builder
	QMSTRWRAPGCC = "QMSTR_WRAPPING_GCC"
)

Environment variable names

View Source
const ContainerBuildDir = "/buildroot"

ContainerBuildDir is where the source code gets mounted in the qmstr-master container

View Source
const ContainerCcacheDir = "/ccache"

ContainerCcacheDir is where the cccache dir gets mountet to

View Source
const ContainerGraphExportDir = "/var/qmstr/export"
View Source
const ContainerGraphImportPath = "/var/qmstr/qmstr.import.tar"
View Source
const ContainerPushFilesDirName = "QMSTR_pushedfiles"

ContainerPushFilesDirName is the name of the directory where pushed files will be stored

View Source
const ContainerQmstrHomeDir = "/home/qmstruser"

ContainerQmstrHomeDir is the HOME dir of the user running a client container

Variables

This section is empty.

Functions

func BuildCleanPath

func BuildCleanPath(base string, subpath string, abs bool) string

func CheckExecutable

func CheckExecutable(file string) error

CheckExecutable checks the given file to be no directory and executable flagged

func CreateGenerateReferenceCmd

func CreateGenerateReferenceCmd(theRootCmd *cobra.Command) *cobra.Command

CreateGenerateReferenceCmd creates the command to create the command line reference

func FindExecutablesOnPath

func FindExecutablesOnPath(progname string) []string

FindExecutablesOnPath finds and returns all reachable executables for the given progname

func GetPosixFullyPortableFilename

func GetPosixFullyPortableFilename(filename string) string

func Hash

func Hash(r io.Reader) (string, error)

func HashFile

func HashFile(fileName string) (string, error)

func IsFileExist

func IsFileExist(file string) bool

IsFileExist checks if file IsFileExist and is not a directory

func SanitizeFileNode

func SanitizeFileNode(f *service.FileNode, base string, pathSub []*service.PathSubstitution, db *database.DataBase, parentPath string) error

func SetRelativePath

func SetRelativePath(node *service.FileNode, buildPath string, pathSub []*service.PathSubstitution) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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