Documentation ¶
Index ¶
Constants ¶
View Source
const ( StackYAMLFile = "stack.yaml" StackYAMLTemplate = `# The metadata information of the stack. name: %s` KCLModFile = "kcl.mod" KCLModFileTemplate = `` /* 210-byte string literal not displayed */ MainKCLFile = "main.k" MainKCLFileTemplate = `` /* 421-byte string literal not displayed */ )
Variables ¶
View Source
var ( ErrStackNameEmpty = errors.New("the stack name must not be empty") ErrStackNameTooLong = errors.New("the stack name must be less than 100 characters") ErrStackNameInvalid = errors.New("the stack name can only contain alphanumeric, hyphens, underscores, and periods") ErrNotEmptyDir = errors.New("not empty existing target directory for stack creation") )
Functions ¶
func CreateWithRefStack ¶
CreateWithRefStack creates a new stack with referenced stack if specified.
func ValidateProjectDir ¶
ValidateProjectDir returns whether the target project directory is valid or not.
func ValidateRefStackDir ¶
ValidateRefStackDir returns whether the referenced stack directory is valid or not.
func ValidateStackDir ¶
ValidateStackDir returns whether the target stack directory is valid or not.
func ValidateStackName ¶
ValidateStackName returns whether the stack name is valid or not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.