cli

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecatedFlagRunImage

func DeprecatedFlagRunImage(deprecatedRunImage *string)

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 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 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 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()

	// 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