Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.21.22 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecatedFlagRunImage

func DeprecatedFlagRunImage(deprecatedRunImage *string)

DeprecatedFlagRunImage sets the run image

func FlagAnalyzedPath

func FlagAnalyzedPath(analyzedPath *string)

func FlagAppDir

func FlagAppDir(appDir *string)

func FlagBuildConfigDir added in v0.16.0

func FlagBuildConfigDir(buildConfigDir *string)

func FlagBuildImage

func FlagBuildImage(buildImage *string)

func FlagBuildpacksDir

func FlagBuildpacksDir(buildpacksDir *string)

func FlagCacheDir

func FlagCacheDir(cacheDir *string)

func FlagCacheImage

func FlagCacheImage(cacheImage *string)

func FlagExtendKind added in v0.17.0

func FlagExtendKind(extendKind *string)

func FlagExtendedDir added in v0.17.0

func FlagExtendedDir(extendedDir *string)

func FlagExtensionsDir

func FlagExtensionsDir(extensionsDir *string)

func FlagForceRebase added in v0.17.0

func FlagForceRebase(force *bool)

func FlagGID

func FlagGID(gid *int)

func FlagGeneratedDir

func FlagGeneratedDir(generatedDir *string)

func FlagGroupPath

func FlagGroupPath(groupPath *string)

func FlagInsecureRegistries added in v0.18.0

func FlagInsecureRegistries(insecureRegistries *str.Slice)

FlagInsecureRegistries sets insecure-registry parameter as available

func FlagKanikoCacheTTL

func FlagKanikoCacheTTL(kanikoCacheTTL *time.Duration)

func FlagLaunchCacheDir

func FlagLaunchCacheDir(launchCacheDir *string)

func FlagLauncherPath

func FlagLauncherPath(launcherPath *string)

func FlagLauncherSBOMDir added in v0.16.0

func FlagLauncherSBOMDir(launcherSBOMDir *string)

func FlagLayersDir

func FlagLayersDir(layersDir *string)

func FlagLayoutDir added in v0.17.0

func FlagLayoutDir(layoutDir *string)

func FlagLogLevel

func FlagLogLevel(logLevel *string)

func FlagNoColor

func FlagNoColor(noColor *bool)

func FlagOrderPath

func FlagOrderPath(orderPath *string)

func FlagParallelExport added in v0.19.0

func FlagParallelExport(parallelExport *bool)

FlagParallelExport parses `parallel` flag

func FlagPlanPath

func FlagPlanPath(planPath *string)

func FlagPlatformDir

func FlagPlatformDir(platformDir *string)

func FlagPreviousImage

func FlagPreviousImage(previousImage *string)

func FlagProcessType

func FlagProcessType(processType *string)

func FlagProjectMetadataPath

func FlagProjectMetadataPath(projectMetadataPath *string)

func FlagReportPath

func FlagReportPath(reportPath *string)

func FlagRunImage

func FlagRunImage(runImage *string)

func FlagRunPath added in v0.17.0

func FlagRunPath(runPath *string)

func FlagSkipLayers

func FlagSkipLayers(skipLayers *bool)

func FlagSkipRestore

func FlagSkipRestore(skipRestore *bool)

func FlagStackPath

func FlagStackPath(stackPath *string)

func FlagSystemPath added in v0.20.21

func FlagSystemPath(systemPath *string)

FlagSystemPath sets the system path flag

func FlagTags

func FlagTags(tags *str.Slice)

func FlagUID

func FlagUID(uid *int)

func FlagUseDaemon

func FlagUseDaemon(useDaemon *bool)

func FlagUseLayout added in v0.17.0

func FlagUseLayout(useLayout *bool)

func FlagVersion

func FlagVersion(showVersion *bool)

func Run

func Run(c Command, withPhaseName string, asSubcommand bool)

Types

type Command

type Command interface {
	// DefineFlags defines the flags that are considered valid and reads their values (if provided)
	DefineFlags()

	// Inputs returns the platform inputs
	Inputs() platform.LifecycleInputs

	// Args validates arguments and flags, and fills in default values
	Args(nargs int, args []string) error

	// Privileges validates the needed privileges
	Privileges() error

	// Exec executes the command
	Exec() error
}

Command defines the interface for running the lifecycle phases

Jump to

Keyboard shortcuts

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