flag

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 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"

	DefaultLogstream       = true
	DefaultLogstreamUpload = true
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Global

type Global struct {
	DockerfilePath             string
	EnableProfiler             bool
	InstallationName           string
	ConfigPath                 string
	GitUsernameOverride        string
	GitPasswordOverride        string
	GitBranchOverride          string
	ExecStatsSummary           string
	SSHAuthSock                string
	Verbose                    bool
	Debug                      bool
	DisplayExecStats           bool
	CloudHTTPAddr              string
	CloudGRPCAddr              string
	CloudGRPCInsecure          bool
	SatelliteAddress           string
	AuthToken                  string
	AuthJWT                    string
	DisableAnalytics           bool
	FeatureFlagOverrides       string
	EnvFile                    string
	ArgFile                    string
	SecretFile                 string
	NoBuildkitUpdate           bool
	Logstream                  bool
	LogstreamUpload            bool
	LogstreamDebugFile         string
	LogstreamDebugManifestFile string
	LogstreamAddressOverride   string
	RequestID                  string
	BuildID                    string
	ServerConnTimeout          time.Duration
	BuildkitHost               string
	BuildkitdImage             string
	ContainerName              string
	GitLFSPullInclude          string
	BuildkitdSettings          buildkitd.Settings
	InteractiveDebugging       bool
	BootstrapNoBuildkit        bool
	ConversionParallelism      int
	LocalRegistryHost          string
	ContainerFrontend          containerutil.ContainerFrontend
	SatelliteName              string
	NoSatellite                bool
	ProjectName                string
	OrgName                    string
	CloudName                  string
	EarthlyCIRunner            bool
	ArtifactMode               bool
	ImageMode                  bool
	Pull                       bool
	Push                       bool
	CI                         bool
	Output                     bool
	NoOutput                   bool
	NoCache                    bool
	SkipBuildkit               bool
	AllowPrivileged            bool
	MaxRemoteCache             bool
	SaveInlineCache            bool
	UseInlineCache             bool
	NoFakeDep                  bool
	Strict                     bool
	GlobalWaitEnd              bool
	RemoteCache                string
	LocalSkipDB                string
	DisableRemoteRegistryProxy bool
	NoAutoSkip                 bool
	GithubAnnotations          bool
}

Put 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