Documentation
¶
Index ¶
- func CleanPath(path string) string
- type Blob
- type DockerHubResponse
- type Env
- type Image
- type Manifest
- type Repo
- func (r *Repo) Fabricate(specSheet repointerface.SpecSheet, dstDir string) (prefabPath string, blueprintPath string, err error)
- func (r *Repo) FabricateDepend(item *prefab.Prefab, existVersions []string, dstDir string) (prefabPaths []string, blueprintPaths []string, err error)
- func (r *Repo) GenerateSpecSheet(name string, specifier string) (specSheet repointerface.SpecSheet, err error)
- func (r *Repo) GetEnvs(specSheet repointerface.SpecSheet) (envs []string, err error)
- func (r *Repo) GetVersions(specSheet repointerface.SpecSheet) (versions []string, err error)
- func (r *Repo) Init(ctx *dcontext.DeployContext) (err error)
- type SpecSheet
- func (s *SpecSheet) Environment() string
- func (s *SpecSheet) Name() string
- func (s *SpecSheet) SelectEnv(envs []string) (err error)
- func (s *SpecSheet) SelectVersion(versions []string) (err error)
- func (s *SpecSheet) Type() string
- func (s *SpecSheet) Version() string
- func (s *SpecSheet) VersionSpecifier() string
- type Tag
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).
Types ¶
type DockerHubResponse ¶
type Env ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
TODO: Add Cache
func (*Repo) FabricateDepend ¶
func (*Repo) GenerateSpecSheet ¶
func (*Repo) GetEnvs ¶
func (r *Repo) GetEnvs(specSheet repointerface.SpecSheet) (envs []string, err error)
func (*Repo) GetVersions ¶
func (r *Repo) GetVersions(specSheet repointerface.SpecSheet) (versions []string, err error)
type SpecSheet ¶
type SpecSheet struct {
SpecType string `json:"specType"`
Name_s string `json:"name"`
Version_s string `json:"version"`
Environment_s string `json:"environment"`
Tag string `json:"tag"`
Arch string `json:"arch"`
}
func (*SpecSheet) Environment ¶
func (*SpecSheet) SelectEnv ¶
select one environment and fill it into [environmet] Warning! no matched environment is not an error, should leave [environment] empty and return nil