Documentation
¶
Index ¶
- Constants
- func Base(source state.Source, context string) string
- func Discover(base string) ([]string, error)
- func ModeFromFile(path string) (string, error)
- func NormalizeMode(raw string) (string, error)
- func NormalizeModeFlag(raw string, base string) (string, error)
- func SaveConfig(packageRoot string, config PackageConfig) error
- type Deploy
- type Entry
- type ErrPackage
- type FileConfig
- type Identity
- type ListOptions
- type Listing
- type PackageConfig
- type Resolved
- type ShowOptions
- type Tree
- type TreeEntry
- type TreePackage
Constants ¶
View Source
const ( ContextHome = domain.ContextHome ContextRoot = domain.ContextRoot )
Variables ¶
This section is empty.
Functions ¶
func ModeFromFile ¶
func NormalizeMode ¶
func SaveConfig ¶
func SaveConfig(packageRoot string, config PackageConfig) error
Types ¶
type Entry ¶
func ApplyConfig ¶
func ApplyConfig(entries []Entry, config PackageConfig) []Entry
func Directories ¶
type ErrPackage ¶
type ErrPackage string
const ( ErrConfigInvalid ErrPackage = "package manifest invalid" ErrConfigWrite ErrPackage = "package manifest write" )
const ErrPackageNotFound ErrPackage = "package not found"
func (ErrPackage) Error ¶
func (e ErrPackage) Error() string
type FileConfig ¶
type FileConfig struct {
Path string `json:"path"`
Deploy Deploy `json:"deploy"`
Mode string `json:"mode,omitempty"`
}
func ConfiguredFile ¶
func ConfiguredFile(config PackageConfig, rel string) (FileConfig, bool)
type Identity ¶
func ResolveIdentity ¶
type ListOptions ¶
type PackageConfig ¶
type PackageConfig struct {
ManifestPath string `json:"manifestPath,omitempty"`
Files []FileConfig `json:"files"`
}
func LoadConfig ¶
func LoadConfig(packageRoot string, entries []Entry) (PackageConfig, error)
func RemoveFileConfig ¶
func RemoveFileConfig(config PackageConfig, rel string) PackageConfig
func SetFileConfig ¶
func SetFileConfig(config PackageConfig, file FileConfig) PackageConfig
type ShowOptions ¶
type Tree ¶
type Tree struct {
Command string `json:"-"`
Context string `json:"-"`
Source string `json:"-"`
Package TreePackage `json:"package"`
}
func Show ¶
func Show(options ShowOptions) (Tree, error)
type TreePackage ¶
Click to show internal directories.
Click to hide internal directories.