Documentation ¶
Index ¶
- Constants
- func AllPaths(dir string) (map[string]bool, error)
- func AppSpec() s.LayoutSpec
- func AppSpecDir(rootDir, version string) (s.SpecDir, error)
- func AppSpecTemplate(version string) s.TemplateValues
- func Checksum(p string) (string, error)
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) (rErr error)
- func GodelDistLayout(version string, mode s.Mode) (s.SpecDir, error)
- func GodelHomePath() (string, error)
- func GodelHomeSpec() s.LayoutSpec
- func GodelHomeSpecDir(mode s.Mode) (s.SpecDir, error)
- func Move(src, dst string) error
- func SyncDir(srcDir, dstDir string, skip []string) (bool, error)
- func SyncDirAdditive(src, dst string) error
- func VerifyDirExists(dir string) error
- func WrapperSpec() s.LayoutSpec
Constants ¶
const ( AssetsDir = "assets" CacheDir = "cache" DistsDir = "dists" ConfigsDir = "configs" DownloadsDir = "downloads" PluginsDir = "plugins" )
const ( AppName = "godel" AppDir = "gödel-app" AppExecutable = "app-executable" )
const ( WrapperDir = "wrapper-dir" WrapperScriptFile = "wrapper-script" WrapperAppDir = "wrapper-app" WrapperConfigDir = "config" WrapperName = "godelw" )
Variables ¶
This section is empty.
Functions ¶
func AllPaths ¶
AllPaths returns a map that contains all of the paths in the provided directory. The paths are relative to the directory. The boolean key is true if the path is a directory, false otherwise.
func AppSpec ¶
func AppSpec() s.LayoutSpec
func AppSpecTemplate ¶
func AppSpecTemplate(version string) s.TemplateValues
func CopyDir ¶
CopyDir recursively copies the src directory to the path specified by dst. dst must not already exist and the path up to it must already exist.
func CopyFile ¶
CopyFile copies the file at src to dst. src must specify a regular file (non-directory, no special mode) that exists, and dst must specify a path that does not yet exist, but whose parent directory does exist. The copied file will have the same permissions as the original.
func GodelHomePath ¶
GodelHomePath returns the path to the gödel home directory. If $GODEL_HOME is set as an environment variable, that value is used. Otherwise, the value is "$HOME/{{defaultGodelHome}}"
func GodelHomeSpec ¶
func GodelHomeSpec() s.LayoutSpec
func Move ¶
Move the file or directory at src to dst. Conceptually, this is equivalent to executing "mv src dst". dst must not already exist and the path up to it must already exist. Uses os.Rename to execute the move, which means that there may be platform-specific restrictions such as not being able to move the directory between different volumes.
func SyncDir ¶
SyncDir syncs the contents of the provided directories such that the content of dstDir matches that of srcDir (except for files that match a name in the provided skip slice).
func SyncDirAdditive ¶
SyncDirAdditive copies all of the files and directories in src that are not in dst. Directories that are present in both are handled recursively. Basically a recursive merge with source preservation.
func VerifyDirExists ¶
func WrapperSpec ¶
func WrapperSpec() s.LayoutSpec
Types ¶
This section is empty.