Documentation
¶
Index ¶
- func ApplyPreset(cfg *config.Config, name string) error
- func ApplyPresets(cfg *config.Config, names []string) error
- func ComputeTargets(cfg *config.Config, artifactType string) ([]string, error)
- func ParsePresetList(raw string) []string
- func Place(cfg *config.Config, srcPath, artifactType, mode string) ([]string, error)
- func PresetNames() []string
- func Presets() map[string]Preset
- type Preset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeTargets ¶
ComputeTargets returns absolute destination directories for an artifact type according to the placement.mapping rules in config.
func ParsePresetList ¶ added in v0.7.0
func Place ¶
Place copies/symlinks/hardlinks a file into the mapped directories. mode: "symlink" | "hardlink" | "copy" If artifactType is empty, it will be detected.
func PresetNames ¶ added in v0.7.0
func PresetNames() []string
Types ¶
type Preset ¶ added in v0.7.0
type Preset struct {
Name string
Description string
Apps map[string]config.AppPlacement
Mapping []config.MappingRule
}
Click to show internal directories.
Click to hide internal directories.