Documentation
¶
Index ¶
- func CleanPath(path string) string
- func DecodeSpecifier(specifier string) (c repointerface.Constraint, err error)
- func NameNormalizer(name string) (normalized string)
- type Blob
- type DockerHubResponse
- type Env
- type EnvSpec
- type Image
- type Manifest
- 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 Tag
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanPath ¶
CleanPath makes a path safe for use with filepath.Join. This is done by not only cleaning the path, but also (if the path is relative) adding a leading '/' and cleaning it (then removing the leading '/'). This ensures that a path resulting from prepending another path will always resolve to lexically be a subdirectory of the prefixed path. This is all done lexically, so paths that include symlinks won't be safe as a result of using CleanPath.
This function comes from runC (libcontainer/utils/utils.go).
func DecodeSpecifier ¶ added in v0.2.2
func DecodeSpecifier(specifier string) (c repointerface.Constraint, err error)
func NameNormalizer ¶ added in v0.2.2
Types ¶
type DockerHubResponse ¶
type Env ¶
type EnvSpec ¶ added in v0.2.2
type EnvSpec struct {
Arch string `json:"arch"`
}
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)
Click to show internal directories.
Click to hide internal directories.