Documentation ¶
Index ¶
- Constants
- func BuildCleanPath(base string, subpath string, abs bool) string
- func CheckExecutable(file string) error
- func CreateGenerateReferenceCmd(theRootCmd *cobra.Command) *cobra.Command
- func FindExecutablesOnPath(progname string) []string
- func GetPosixFullyPortableFilename(filename string) string
- func Hash(r io.Reader) (string, error)
- func HashFile(fileName string) (string, error)
- func IsFileExist(file string) bool
- func SanitizeFileNode(f *service.FileNode, base string, pathSub []*service.PathSubstitution, ...) error
- func SetRelativePath(node *service.FileNode, buildPath string, pathSub []*service.PathSubstitution) error
Constants ¶
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
const ContainerBuildDir = "/buildroot"
ContainerBuildDir is where the source code gets mounted in the qmstr-master container
const ContainerCcacheDir = "/ccache"
ContainerCcacheDir is where the cccache dir gets mountet to
const ContainerGraphExportDir = "/var/qmstr/export"
const ContainerGraphImportPath = "/var/qmstr/qmstr.import.tar"
const ContainerPushFilesDirName = "QMSTR_pushedfiles"
ContainerPushFilesDirName is the name of the directory where pushed files will be stored
const ContainerQmstrHomeDir = "/home/qmstruser"
ContainerQmstrHomeDir is the HOME dir of the user running a client container
Variables ¶
This section is empty.
Functions ¶
func CheckExecutable ¶
CheckExecutable checks the given file to be no directory and executable flagged
func CreateGenerateReferenceCmd ¶
CreateGenerateReferenceCmd creates the command to create the command line reference
func FindExecutablesOnPath ¶
FindExecutablesOnPath finds and returns all reachable executables for the given progname
func IsFileExist ¶
IsFileExist checks if file IsFileExist and is not a directory
func SanitizeFileNode ¶
func SetRelativePath ¶
Types ¶
This section is empty.