Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command *cli.Command = &cli.Command{ Name: "build", Aliases: []string{"b"}, Usage: "Build the project", Flags: []cli.Flag{ &cli.StringFlag{ Name: "project-file", Aliases: []string{"f"}, Usage: "The project file to use", Required: true, EnvVars: []string{"3LV_PROJECT_FILE"}, }, &cli.StringFlag{ Name: "system-name", Aliases: []string{"s"}, Usage: "The system name to use", Required: true, EnvVars: []string{"3LV_SYSTEM_NAME"}, }, &cli.StringFlag{ Name: "build-context", Aliases: []string{"c"}, Usage: "The build context to use", EnvVars: []string{"3LV_BUILD_CONTEXT"}, }, &cli.StringFlag{ Name: "registry", Aliases: []string{"r"}, Usage: "The registry to use. Image name will be prefixed with this value.", Value: "containerregistryelvia.azurecr.io", EnvVars: []string{"3LV_REGISTRY"}, }, &cli.StringFlag{ Name: "go-main-package-directory", Usage: "The main package directory to use when building a Go application", EnvVars: []string{"3LV_GO_MAIN_PACKAGE_DIRECTORY"}, }, &cli.StringFlag{ Name: "cache-tag", Usage: "The cache tag to use", Value: "latest-cache", EnvVars: []string{"3LV_CACHE_TAG"}, }, &cli.StringFlag{ Name: "severity", Aliases: []string{"S"}, Usage: "The severity to use when scanning the image: can be any combination of CRITICAL, HIGH, MEDIUM, LOW, or UNKNOWN separated by commas", Value: "CRITICAL,HIGH", EnvVars: []string{"3LV_SEVERITY"}, }, &cli.StringSliceFlag{ Name: "additional-tags", Aliases: []string{"t"}, Usage: "The additional tags to use", EnvVars: []string{"3LV_ADDITIONAL_TAGS"}, }, &cli.StringSliceFlag{ Name: "include-files", Aliases: []string{"i"}, Usage: "The files to include in the build context", EnvVars: []string{"3LV_INCLUDE_FILES"}, }, &cli.StringSliceFlag{ Name: "include-directories", Aliases: []string{"I"}, Usage: "The directories to include in the build context", EnvVars: []string{"3LV_INCLUDE_DIRECTORIES"}, }, &cli.BoolFlag{ Name: "push", Aliases: []string{"p"}, Usage: "Push the image to the registry", Value: false, EnvVars: []string{"3LV_PUSH"}, }, &cli.BoolFlag{ Name: "generate-only", Aliases: []string{"G"}, Usage: "Generates a Dockerfile, but does not build the image", Value: false, EnvVars: []string{"3LV_GENERATE_ONLY"}, }, }, Action: Build, }
Functions ¶
Types ¶
type CSharpProjectFile ¶
type CSharpProjectFile struct {
XMLName xml.Name `xml:"Project"`
SDK string `xml:"Sdk,attr"`
PropertyGroup PropertyGroup
}
type DockerfileVariablesGo ¶ added in v0.4.1
type PropertyGroup ¶
type ScanImageOptions ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.