Documentation
¶
Index ¶
- Constants
- func DecodeFileName(filename string) (name string, version string, environment string, extension string, err error)
- func EncodeBlueprintName(name string, version string, environment string) (filename string, err error)
- func EncodePrefabName(name string, version string, environment string) (filename string, err error)
- func IsPrefab(filename string) bool
- func NormalizeName(name string) string
- func Pack(srcDir string, dstDir string, blueprint Blueprint) (prefabPath string, blueprintPath string, err error)
- func Unpack(prefabPath string, dstDir string) (err error)
- type Blueprint
- type Prefab
Constants ¶
View Source
const ( TAG_BLUEPRINT = "BLUEPRINT" TAG_TYPE = "TYPE" TAG_NAME = "NAME" TAG_VERSION = "VERSION" TAG_ENVIRONMENT = "ENVIRONMENT" TAG_DEPLOYABILITY = "DEPLOYABILITY" TAG_USER = "USER" TAG_WORKDIR = "WORKDIR" TAG_TARGERDIR = "TARGETDIR" TAG_ENVVAR = "ENVVAR" TAG_CMD = "CMD" TAG_DEPEND = "DEPEND" TAG_CONTEXT = "CONTEXT" )
Variables ¶
This section is empty.
Functions ¶
func DecodeFileName ¶
func EncodeBlueprintName ¶
func EncodePrefabName ¶
func NormalizeName ¶
Types ¶
type Blueprint ¶
type Blueprint struct {
Protocol int
Type string
Name string
Version string
Environment string
Deployability *dcontext.Deployability
// the relative path where the file should be saved with respect to the root directory.
// When set to "" or "/", the file will be placed directly in the root directory.
TargetDir string
User string
WorkDir string
EnvVar []string // e.g. "PATH=/usr/local/bin:/usr/local/sbin"
Command []string // e.g. "python eaxmple.py"
Depend [][]*Prefab
Context *dcontext.DeployContext
}
func DecodeBlueprint ¶
func DecodeBlueprintFile ¶
func NewBlueprint ¶
func NewBlueprint() Blueprint
func (*Blueprint) AddDependAlternatives ¶
Click to show internal directories.
Click to hide internal directories.