project

package
v0.0.0-...-4ba0521 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

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 CheckBaseDockerfile(dockerfilePath string) error

func DetectName

func DetectName(path string) (string, error)

func FillCtx

func FillCtx(ctx *context.Ctx) error

func GetAppEntrypointPath

func GetAppEntrypointPath(ctx *context.Ctx) string

func GetBuildImageDockerfileTemplate

func GetBuildImageDockerfileTemplate(ctx *context.Ctx) (*templates.FileTemplate, error)

func GetInstanceConsoleSock

func GetInstanceConsoleSock(ctx *context.Ctx, instanceName string) string

func GetInstanceID

func GetInstanceID(ctx *context.Ctx, instanceName string) string

func GetInstanceLogFile

func GetInstanceLogFile(ctx *context.Ctx, instanceName string) string

func GetInstanceNotifySockPath

func GetInstanceNotifySockPath(ctx *context.Ctx, instanceName string) string

func GetInstancePidFile

func GetInstancePidFile(ctx *context.Ctx, instanceName string) string

func GetInstanceWorkDir

func GetInstanceWorkDir(ctx *context.Ctx, instanceName string) string

func GetRuntimeImageDockerfileTemplate

func GetRuntimeImageDockerfileTemplate(ctx *context.Ctx) (*templates.FileTemplate, error)

func GetStateboardConsoleSock

func GetStateboardConsoleSock(ctx *context.Ctx) string

func GetStateboardEntrypointPath

func GetStateboardEntrypointPath(ctx *context.Ctx) string

func GetStateboardLogFile

func GetStateboardLogFile(ctx *context.Ctx) string

func GetStateboardName

func GetStateboardName(ctx *context.Ctx) string

func GetStateboardNotifySockPath

func GetStateboardNotifySockPath(ctx *context.Ctx) string

func GetStateboardPidFile

func GetStateboardPidFile(ctx *context.Ctx) string

func GetStateboardWorkDir

func GetStateboardWorkDir(ctx *context.Ctx) string

func InternalError

func InternalError(format string, a ...interface{}) error

func RemoveTmpPath

func RemoveTmpPath(path string, debug bool)

RemoveTmpPath removes specified path if debug flag isn't set If path deletion fails, it warns

func SetLocalRunningPaths

func SetLocalRunningPaths(ctx *context.Ctx) error

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 SetProjectPath(ctx *context.Ctx) error

func SetSystemRunningPaths

func SetSystemRunningPaths(ctx *context.Ctx) error

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

type FlagOpts

type FlagOpts struct {
	SpecifiedFlag   bool
	ConfSectionName string
	DefaultFlag     bool
	FlagIsSet       bool
}

type PathOpts

type PathOpts struct {
	SpecifiedPath   string
	ConfSectionName string
	DefaultPath     string
	GetAbs          bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL