Documentation
¶
Index ¶
Constants ¶
View Source
const ( TAG_BLUEPRINT = "BLUEPRINT" TAG_TYPE = "TYPE" TAG_NAME = "NAME" TAG_VERSION = "VERSION" TAG_ENVIRONMENT = "ENVIRONMENT" TAG_USER = "USER" TAG_WORKDIR = "WORKDIR" TAG_TARGERDIR = "TARGETDIR" TAG_ENVVAR = "ENVVAR" TAG_ENTRYPOINT = "ENTRYPOINT" TAG_CMD = "CMD" TAG_DEPEND = "DEPEND" TAG_CONTEXT = "CONTEXT" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blueprint ¶
type Blueprint struct {
Protocol int
Type string
Name string
Version string
Environment string
// 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"
EntryPoint []string
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.