cli

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolEnv

func BoolEnv(k string) bool

func DefaultAnalyzedPath

func DefaultAnalyzedPath(platformAPI, layersDir string) string

func DefaultGroupPath

func DefaultGroupPath(platformAPI, layersDir string) string

func DefaultOrderPath

func DefaultOrderPath(platformAPI, layersDir string) string

func DefaultPlanPath

func DefaultPlanPath(platformAPI, layersDir string) string

func DefaultProjectMetadataPath

func DefaultProjectMetadataPath(platformAPI, layersDir string) string

func DefaultReportPath

func DefaultReportPath(platformAPI, layersDir string) string

func DeprecatedFlagRunImage

func DeprecatedFlagRunImage(image *string)

func FlagAnalyzedPath

func FlagAnalyzedPath(analyzedPath *string)

func FlagAppDir

func FlagAppDir(appDir *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 FlagExtensionsDir

func FlagExtensionsDir(extensionsDir *string)

func FlagGID

func FlagGID(gid *int)

func FlagGeneratedDir

func FlagGeneratedDir(dir *string)

func FlagGroupPath

func FlagGroupPath(groupPath *string)

func FlagKanikoCacheTTL

func FlagKanikoCacheTTL(cacheTTL *time.Duration)

func FlagLaunchCacheDir

func FlagLaunchCacheDir(launchCacheDir *string)

func FlagLauncherPath

func FlagLauncherPath(launcherPath *string)

func FlagLayersDir

func FlagLayersDir(layersDir *string)

func FlagLogLevel

func FlagLogLevel(level *string)

func FlagNoColor

func FlagNoColor(skip *bool)

func FlagOrderPath

func FlagOrderPath(orderPath *string)

func FlagPlanPath

func FlagPlanPath(planPath *string)

func FlagPlatformDir

func FlagPlatformDir(platformDir *string)

func FlagPreviousImage

func FlagPreviousImage(image *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 FlagSkipLayers

func FlagSkipLayers(skip *bool)

func FlagSkipRestore

func FlagSkipRestore(skip *bool)

func FlagStackPath

func FlagStackPath(stackPath *string)

func FlagTags

func FlagTags(tags *str.Slice)

func FlagUID

func FlagUID(uid *int)

func FlagUseDaemon

func FlagUseDaemon(use *bool)

func FlagVersion

func FlagVersion(version *bool)

func Run

func Run(c Command, 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

type StringSlice

type StringSlice interface {
	String() string
	Set(value string) error
}

Jump to

Keyboard shortcuts

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