Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProjectFileName = "project.yaml" TargetDirName = "target" )
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 GovendorFile ¶
type GovendorFile struct {
Packages []GovendorPackage `json:"package,omitempty"`
}
func LoadGovendorFile ¶
func LoadGovendorFile(project *Project) (*GovendorFile, error)
type GovendorPackage ¶
type GovendorPackage struct {
Origin string `json:"oriin,omitempty"`
Path string `json:"path,omitempty"`
Revision string `json:"revision,omitempty"`
RevisionTime string `json:"revisionTime,omitempty"`
Comment string `json:"comment,omitempty"`
}
func (*GovendorPackage) ArchiveFileName ¶
func (g *GovendorPackage) ArchiveFileName() string
type Project ¶
type Project struct {
FilePath string `yaml:",omitempty"`
Name string `yaml:"name"`
Version string `yaml:"version"`
Artifacts []Artifact `yaml:"artifacts"`
Repositories map[string]map[string]string `yaml:"repositories"`
Resources []string `yaml:"resources"`
}
func LoadProject ¶
func (*Project) ProjectPath ¶
func (*Project) TargetPath ¶
type Repository ¶
Click to show internal directories.
Click to hide internal directories.