Documentation
¶
Index ¶
Constants ¶
View Source
const Filename = "dagger.json"
Filename is the name of the module config file.
Variables ¶
This section is empty.
Functions ¶
func NormalizeConfigPath ¶
NormalizeConfigPath appends /dagger.json to the given path if it is not already present.
Types ¶
type Config ¶
type Config struct { // The name of the module. Name string `json:"name"` // The root directory of the module's project, which may be above the module // source code. Root string `json:"root,omitempty"` // Either the name of a built-in SDK ('go', 'python', etc.) OR a module reference pointing to the SDK's module implementation. SDK string `json:"sdk,omitempty"` // Include only these file globs when loading the module root. Include []string `json:"include,omitempty"` // Exclude these file globs when loading the module root. Exclude []string `json:"exclude,omitempty"` // Modules that this module depends on. Dependencies []string `json:"dependencies,omitempty"` }
Config is the module config loaded from dagger.json.
func (*Config) RootAndSubpath ¶
type Ref ¶
type Ref struct { Path string // Path is the provided path for the module. Version string // Version is the provided version for the module, if any. Local bool // Local indicates that the module's Path is just a local path. Git *GitRef // Git is the resolved Git information. SubPath string // Subdir is the subdirectory within the fetched source. }
Ref contains all of the information we're able to learn about a provided module ref.
func ResolveModuleDependency ¶
func ResolveMovingRef ¶
func ResolveStableRef ¶
TODO dedup with ResolveMovingRef
func (*Ref) LocalSourcePath ¶
Click to show internal directories.
Click to hide internal directories.