flag

package
v0.8.17 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultBuildkitdContainerSuffix is the suffix of the buildkitd container.
	DefaultBuildkitdContainerSuffix = "-buildkitd"
	// DefaultBuildkitdVolumeSuffix is the suffix of the docker volume used for storing the cache.
	DefaultBuildkitdVolumeSuffix = "-cache"

	DefaultEnvFile = ".env"
	EnvFileFlag    = "env-file-path"

	DefaultArgFile = ".arg"
	ArgFileFlag    = "arg-file-path"

	DefaultSecretFile = ".secret"
	SecretFileFlag    = "secret-file-path"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Global

type Global struct {
	FeatureFlagOverrides       string
	InstallationName           string
	GitUsernameOverride        string
	GitPasswordOverride        string
	GitBranchOverride          string
	ExecStatsSummary           string
	SSHAuthSock                string
	ArgFile                    string
	EnvFile                    string
	LocalRegistryHost          string
	ConfigPath                 string
	DockerfilePath             string
	RemoteCache                string
	SecretFile                 string
	LocalSkipDB                string
	LogstreamDebugFile         string
	LogstreamDebugManifestFile string
	GitLFSPullInclude          string
	BuildkitHost               string
	BuildkitdImage             string
	ContainerName              string
	ContainerFrontend          containerutil.ContainerFrontend
	BuildkitdSettings          buildkitd.Settings
	ServerConnTimeout          time.Duration
	ConversionParallelism      int
	InteractiveDebugging       bool
	NoCache                    bool
	NoBuildkitUpdate           bool
	DisplayExecStats           bool
	Debug                      bool
	ArtifactMode               bool
	ImageMode                  bool
	Pull                       bool
	Push                       bool
	CI                         bool
	UseTickTockBuildkitImage   bool
	Output                     bool
	NoOutput                   bool
	BootstrapNoBuildkit        bool
	SkipBuildkit               bool
	AllowPrivileged            bool
	MaxRemoteCache             bool
	SaveInlineCache            bool
	UseInlineCache             bool
	NoFakeDep                  bool
	Strict                     bool
	GlobalWaitEnd              bool
	Verbose                    bool
	EnableProfiler             bool
	DisableRemoteRegistryProxy bool
	NoAutoSkip                 bool
	GithubAnnotations          bool
}

Global flags on Flags instead as there are other things in the CLI that are being called + set by the subcommands so I thought it made since to declare them just once there and then pass them in.

func (*Global) RootFlags

func (global *Global) RootFlags(installName string, bkImage string) []cli.Flag

Jump to

Keyboard shortcuts

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