Documentation
¶
Index ¶
- Constants
- func AliasFlags(_ *pflag.FlagSet, name string) pflag.NormalizedName
- func DecryptConfig(decryptionKeys []string) (*encconfig.DecryptConfig, error)
- func DefaultFormat() string
- func DefaultHistory() bool
- func DefaultIsolation() string
- func EncryptConfig(encryptionKeys []string, encryptLayers []int) (*encconfig.EncryptConfig, *[]int, error)
- func GenBuildOptions(c *cobra.Command, inputArgs []string, iopts BuildOptions) (define.BuildOptions, []string, []string, error)
- func GetBudFlags(flags *BudResults) pflag.FlagSet
- func GetBudFlagsCompletions() commonComp.FlagCompletions
- func GetFormat(format string) (string, error)
- func GetFromAndBudFlags(flags *FromAndBudResults, usernsResults *UserNSResults, ...) (pflag.FlagSet, error)
- func GetFromAndBudFlagsCompletions() commonComp.FlagCompletions
- func GetLayerFlags(flags *LayerResults) pflag.FlagSet
- func GetNameSpaceFlags(flags *NameSpaceResults) pflag.FlagSet
- func GetNameSpaceFlagsCompletions() commonComp.FlagCompletions
- func GetUserNSFlags(flags *UserNSResults) pflag.FlagSet
- func GetUserNSFlagsCompletions() commonComp.FlagCompletions
- func LookupEnvVarReferences(specs, environ []string) []string
- func UseLayers() bool
- func VerifyFlagsArgsOrder(args []string) error
- type BudResults
- type BuildOptions
- type FromAndBudResults
- type LayerResults
- type NameSpaceResults
- type UserNSResults
Constants ¶
const ( MaxPullPushRetries = 3 PullPushRetryDelay = 2 * time.Second )
const ( // ExecErrorCodeGeneric is the default error code to return from an exec session if libpod failed // prior to calling the runtime ExecErrorCodeGeneric = 125 // ExecErrorCodeCannotInvoke is the error code to return when the runtime fails to invoke a command // an example of this can be found by trying to execute a directory: // `podman exec -l /etc` ExecErrorCodeCannotInvoke = 126 // ExecErrorCodeNotFound is the error code to return when a command cannot be found ExecErrorCodeNotFound = 127 )
Variables ¶
This section is empty.
Functions ¶
func AliasFlags ¶ added in v1.16.0
func AliasFlags(_ *pflag.FlagSet, name string) pflag.NormalizedName
AliasFlags is a function to handle backwards compatibility with old flags
func DecryptConfig ¶ added in v1.31.0
func DecryptConfig(decryptionKeys []string) (*encconfig.DecryptConfig, error)
DecryptConfig translates decryptionKeys into a DescriptionConfig structure
func DefaultHistory ¶
func DefaultHistory() bool
DefaultHistory returns the default add-history setting
func DefaultIsolation ¶
func DefaultIsolation() string
DefaultIsolation returns the default image format
func EncryptConfig ¶ added in v1.31.0
func EncryptConfig(encryptionKeys []string, encryptLayers []int) (*encconfig.EncryptConfig, *[]int, error)
EncryptConfig translates encryptionKeys into a EncriptionsConfig structure
func GenBuildOptions ¶ added in v1.26.10
func GenBuildOptions(c *cobra.Command, inputArgs []string, iopts BuildOptions) (define.BuildOptions, []string, []string, error)
GenBuildOptions translates command line flags into a BuildOptions structure
func GetBudFlags ¶
func GetBudFlags(flags *BudResults) pflag.FlagSet
GetBudFlags returns common build flags
func GetBudFlagsCompletions ¶ added in v1.17.0
func GetBudFlagsCompletions() commonComp.FlagCompletions
GetBudFlagsCompletions returns the FlagCompletions for the common build flags
func GetFormat ¶ added in v1.31.0
GetFormat translates format string into either docker or OCI format constant
func GetFromAndBudFlags ¶
func GetFromAndBudFlags(flags *FromAndBudResults, usernsResults *UserNSResults, namespaceResults *NameSpaceResults) (pflag.FlagSet, error)
GetFromAndBudFlags returns from and build flags
func GetFromAndBudFlagsCompletions ¶ added in v1.17.0
func GetFromAndBudFlagsCompletions() commonComp.FlagCompletions
GetFromAndBudFlagsCompletions returns the FlagCompletions for the from and build flags
func GetLayerFlags ¶
func GetLayerFlags(flags *LayerResults) pflag.FlagSet
GetLayerFlags returns the common flags for layers
func GetNameSpaceFlags ¶
func GetNameSpaceFlags(flags *NameSpaceResults) pflag.FlagSet
GetNameSpaceFlags returns the common flags for a namespace menu
func GetNameSpaceFlagsCompletions ¶ added in v1.17.0
func GetNameSpaceFlagsCompletions() commonComp.FlagCompletions
GetNameSpaceFlagsCompletions returns the FlagCompletions for the namespace flags
func GetUserNSFlags ¶
func GetUserNSFlags(flags *UserNSResults) pflag.FlagSet
GetUserNSFlags returns the common flags for usernamespace
func GetUserNSFlagsCompletions ¶ added in v1.17.0
func GetUserNSFlagsCompletions() commonComp.FlagCompletions
GetUserNSFlagsCompletions returns the FlagCompletions for the userns flags
func LookupEnvVarReferences ¶ added in v1.30.0
LookupEnvVarReferences returns a copy of specs with keys and values resolved from environ. Strings are in "key=value" form, the same as os.Environ.
When a string in specs lacks "=", it is treated as a key and the value is retrieved from environ. When the key is missing from environ, neither the key nor value are returned.
When a string in specs lacks "=" and ends with "*", it is treated as a key prefix and any keys with the same prefix in environ are returned.
When a string in specs is exactly "*", all keys and values in environ are returned.
func UseLayers ¶
func UseLayers() bool
UseLayers returns true if BUILDAH_LAYERS is set to "1" or "true" otherwise it returns false
func VerifyFlagsArgsOrder ¶
Types ¶
type BudResults ¶
type BudResults struct {
AllPlatforms bool
Annotation []string
Authfile string
BuildArg []string
BuildArgFile []string
BuildContext []string
CacheFrom []string
CacheTo []string
CacheTTL string
CertDir string
Compress bool
Creds string
CPPFlags []string
DisableCompression bool
DisableContentTrust bool
IgnoreFile string
File []string
Format string
From string
Iidfile string
InheritLabels bool
InheritAnnotations bool
Label []string
LayerLabel []string
Logfile string
LogSplitByPlatform bool
Manifest string
NoHostname bool
NoHosts bool
NoCache bool
Timestamp int64
OmitHistory bool
OCIHooksDir []string
Pull string
PullAlways bool
PullNever bool
Quiet bool
IdentityLabel bool
Rm bool
Runtime string
RuntimeFlags []string
SbomPreset string
SbomScannerImage string
SbomScannerCommand []string
SbomMergeStrategy string
SbomOutput string
SbomImgOutput string
SbomPurlOutput string
SbomImgPurlOutput string
Secrets []string
SSH []string
SignaturePolicy string
SignBy string
Squash bool
SkipUnusedStages bool
Stdin bool
Tag []string
BuildOutputs []string
Target string
TLSVerify bool
Jobs int
LogRusage bool
RusageLogFile string
UnsetEnvs []string
UnsetLabels []string
UnsetAnnotations []string
Envs []string
OSFeatures []string
OSVersion string
CWOptions string
SBOMOptions []string
CompatVolumes bool
SourceDateEpoch string
RewriteTimestamp bool
CreatedAnnotation bool
}
BudResults represents the results for Build flags
type BuildOptions ¶ added in v1.26.10
type BuildOptions struct {
*LayerResults
*BudResults
*UserNSResults
*FromAndBudResults
*NameSpaceResults
Logwriter *os.File
}
type FromAndBudResults ¶
type FromAndBudResults struct {
AddHost []string
BlobCache string
CapAdd []string
CapDrop []string
CDIConfigDir string
CgroupParent string
CPUPeriod uint64
CPUQuota int64
CPUSetCPUs string
CPUSetMems string
DecryptionKeys []string
Devices []string
DNSSearch []string
DNSServers []string
DNSOptions []string
HTTPProxy bool
Isolation string
Memory string
MemorySwap string
Retry int
RetryDelay string
SecurityOpt []string
ShmSize string
Ulimit []string
Volumes []string
}
FromAndBugResults represents the results for common flags in build and from
type LayerResults ¶
LayerResults represents the results of the layer flags