Documentation ¶
Index ¶
- Constants
- func CheckBaseDockerfile(dockerfilePath string) error
- func DetectName(path string) (string, error)
- func FillCtx(ctx *context.Ctx) error
- func GetAppEntrypointPath(ctx *context.Ctx) string
- func GetBuildImageDockerfileTemplate(ctx *context.Ctx) (*templates.FileTemplate, error)
- func GetInstanceConsoleSock(ctx *context.Ctx, instanceName string) string
- func GetInstanceID(ctx *context.Ctx, instanceName string) string
- func GetInstanceLogFile(ctx *context.Ctx, instanceName string) string
- func GetInstanceNotifySockPath(ctx *context.Ctx, instanceName string) string
- func GetInstancePidFile(ctx *context.Ctx, instanceName string) string
- func GetInstanceWorkDir(ctx *context.Ctx, instanceName string) string
- func GetRuntimeImageDockerfileTemplate(ctx *context.Ctx) (*templates.FileTemplate, error)
- func GetStateboardConsoleSock(ctx *context.Ctx) string
- func GetStateboardEntrypointPath(ctx *context.Ctx) string
- func GetStateboardLogFile(ctx *context.Ctx) string
- func GetStateboardName(ctx *context.Ctx) string
- func GetStateboardNotifySockPath(ctx *context.Ctx) string
- func GetStateboardPidFile(ctx *context.Ctx) string
- func GetStateboardWorkDir(ctx *context.Ctx) string
- func InternalError(format string, a ...interface{}) error
- func RemoveTmpPath(path string, debug bool)
- func SetLocalRunningPaths(ctx *context.Ctx) error
- func SetProjectPath(ctx *context.Ctx) error
- func SetSystemRunningPaths(ctx *context.Ctx) error
- type FlagOpts
- type PathOpts
Constants ¶
View Source
const ( DefaultBaseBuildDockerfile = "Dockerfile.build.cartridge" DefaultBaseRuntimeDockerfile = "Dockerfile.cartridge" )
View Source
const ( PreInstScriptContent = `` /* 527-byte string literal not displayed */ PostInstScriptContent = `` /* 271-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func CheckBaseDockerfile ¶
func DetectName ¶
func GetAppEntrypointPath ¶
func GetBuildImageDockerfileTemplate ¶
func GetBuildImageDockerfileTemplate(ctx *context.Ctx) (*templates.FileTemplate, error)
func GetInstanceConsoleSock ¶
func GetRuntimeImageDockerfileTemplate ¶
func GetRuntimeImageDockerfileTemplate(ctx *context.Ctx) (*templates.FileTemplate, error)
func GetStateboardLogFile ¶
func GetStateboardName ¶
func GetStateboardPidFile ¶
func GetStateboardWorkDir ¶
func InternalError ¶
func RemoveTmpPath ¶
RemoveTmpPath removes specified path if debug flag isn't set If path deletion fails, it warns
func SetLocalRunningPaths ¶
SetLocalRunningPaths fills {Run,Data,Log,Conf}Dir Values are collected from specified flags and .cartridge.yml
The priority of sources is: * user-specified flags * value from .cartridge.yml * default values (defined here in const section)
func SetProjectPath ¶
func SetSystemRunningPaths ¶
SetSystemRunningPaths fills {Run,Data,Log,Conf}Dir Values are collected from specified flags
The priority of sources is: * user-specified flags * default values (defined here in const section)
Types ¶
Click to show internal directories.
Click to hide internal directories.