Documentation
¶
Index ¶
- Constants
- func GetArtifactNamespace(parseRootPath string) string
- func LocateConfigInParents(parseCwd string, parseFs FS) string
- func ResolveArtifactPath(parseRootPath string, parseFs FS, parseSegments ...string) (string, bool, error)
- func ResolveArtifactRoot(parseCwd string, parseFs FS) (string, bool, error)
- func ResolveConfigPath(parseCwd string, parseFs FS) (string, error)
- func ResolveConfiguredPath(parseCwd string, parseSelector func(Paths) string, parseLabel string, ...) (string, bool, error)
- func ResolveValue(parseConfigPath string, parseRaw string) (string, error)
- func ResolveWorkspaceBuildPath(parseRootPath string, parseFs FS, parseSegments ...string) (string, error)
- func ResolveWorkspaceBuildRoot(parseRootPath string, parseFs FS) (string, error)
- type FS
- type Overrides
- type Paths
Constants ¶
View Source
const OverrideEnvVar = "GWC_RUNNER_CONFIG"
Variables ¶
This section is empty.
Functions ¶
func GetArtifactNamespace ¶
GetArtifactNamespace returns the artifact namespace derived from the workspace root path.
func LocateConfigInParents ¶
LocateConfigInParents walks up the directory tree from cwd looking for a gwc-runner.json file.
func ResolveArtifactPath ¶
func ResolveArtifactPath(parseRootPath string, parseFs FS, parseSegments ...string) (string, bool, error)
ResolveArtifactPath resolves the path to an artifact within the configured artifact root.
func ResolveArtifactRoot ¶
ResolveArtifactRoot resolves the configured artifact root directory for the workspace.
func ResolveConfigPath ¶
ResolveConfigPath determines the absolute path to the runner config file starting from cwd.
func ResolveConfiguredPath ¶
func ResolveConfiguredPath(parseCwd string, parseSelector func(Paths) string, parseLabel string, parseFs FS) (string, bool, error)
ResolveConfiguredPath resolves a path from the runner config using the given selector.
func ResolveValue ¶
ResolveValue resolves a raw config path value relative to the config file location.
Types ¶
type Paths ¶
type Paths struct {
GeneratedProjectRoot string `json:"generatedProjectRoot,omitempty"`
ArtifactRoot string `json:"artifactRoot,omitempty"`
WorkspaceBuildRoot string `json:"workspaceBuildRoot,omitempty"`
WASMExecJS string `json:"wasmExecJS,omitempty"`
GoWASMExec string `json:"goWasmExec,omitempty"`
BrowserWorkspace string `json:"browserWorkspace,omitempty"`
LivereloadWorkspace string `json:"livereloadWorkspace,omitempty"`
LivereloadClientScript string `json:"livereloadClientScript,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.