Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProjectFileName = "project.yaml" TargetDirName = "target" RepositoryRoleRelease = "release" RepositoryRoleDependency = "dependency" )
Variables ¶
View Source
var FindProject = internalFindProject
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
Classifier string `yaml:"classifier"`
Targets []Target `yaml:"targets"`
Archive string `yaml:"archive"`
Resources []string `yaml:"resources"`
Environment map[string]string `yaml:"env"`
}
func (*Artifact) ArtifactFile ¶
type Project ¶
type Project struct {
FilePath string `yaml:",omitempty"`
Name string `yaml:"name"`
Version string `yaml:"version"`
Artifacts []Artifact `yaml:"artifacts"`
Repositories map[string]Repository `yaml:"repositories"`
Resources []string `yaml:"resources"`
}
func LoadProject ¶
func (*Project) ProjectPath ¶
func (*Project) TargetPath ¶
type Repository ¶
type Repository struct {
URL string `yaml:"url"`
Group string `yaml:"group"`
Artifact string `yaml:"artifact"`
File string `yaml:"file"`
Type string `yaml:"type"`
Roles []string `yaml:"roles"`
}
func (*Repository) HasRole ¶ added in v0.10.0
func (r *Repository) HasRole(role string) bool
Click to show internal directories.
Click to hide internal directories.