Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeSpecifier(specifier string) (c repointerface.Constraint, err error)
- func Fabricate(path string, dstDir string) (prefabPath string, blueprintPath string, err error)
- func FabricateVirtual(name string, dstDir string) (prefabPath string, blueprintPath string, err error)
- func NameNormalizer(name string) (normalized string)
- type EnvSpec
- type Repo
- func (r *Repo) Fabricate(name string, version repointerface.Version, envs []string, dstDir string) (prefabPaths []string, blueprintPaths []string, err error)
- func (r *Repo) FilterEnv(envs []string) (selected []string)
- func (r *Repo) GetEnvSpec() repointerface.EnvSpec
- func (r *Repo) GetEnvs(name string, version repointerface.Version) (envs []string, err error)
- func (r *Repo) GetVersions(name string) (versions []repointerface.Version, err error)
- func (r *Repo) Init(ctx *dcontext.DeployContext) (err error)
- func (r *Repo) SelectEnv(envs []string, envSpec repointerface.EnvSpec) (selected string, err error)
- func (r *Repo) SelectVersion(versions []repointerface.Version) (selected repointerface.Version, err error)
- type Version
Constants ¶
View Source
const VIRTUAL_PKG_ENVIRONMENT = "all"
View Source
const VIRTUAL_PKG_VERSION = "~"
Variables ¶
View Source
var NullVersion = Version{Epoch: -1}
Functions ¶
func DecodeSpecifier ¶
func DecodeSpecifier(specifier string) (c repointerface.Constraint, err error)
func FabricateVirtual ¶
func NameNormalizer ¶ added in v0.2.2
Types ¶
type EnvSpec ¶ added in v0.2.2
type EnvSpec struct {
Arch string `json:"arch"` // e.g. "amd64"
}
func DecodeEnvSpec ¶ added in v0.2.2
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) GetEnvSpec ¶ added in v0.2.2
func (r *Repo) GetEnvSpec() repointerface.EnvSpec
func (*Repo) GetVersions ¶
func (r *Repo) GetVersions(name string) (versions []repointerface.Version, err error)
func (*Repo) SelectVersion ¶ added in v0.2.2
func (r *Repo) SelectVersion(versions []repointerface.Version) (selected repointerface.Version, err error)
type Version ¶ added in v0.2.2
func ParseVersion ¶ added in v0.2.2
parse debian package version string, the format is [epoch:]upstream_version[-debian_revision]
Click to show internal directories.
Click to hide internal directories.