cli

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 13 Imported by: 29

Documentation

Index

Constants

View Source
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(f *pflag.FlagSet, name string) pflag.NormalizedName

aliasFlags is a function to handle backwards compatibility with old flags

func DefaultFormat

func DefaultFormat() string

DefaultFormat returns the default image format

func DefaultHistory

func DefaultHistory() bool

DefaultHistory returns the default add-history setting

func DefaultIsolation

func DefaultIsolation() string

DefaultIsolation returns the default image format

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

func UseLayers() bool

UseLayers returns true if BUILDAH_LAYERS is set to "1" or "true" otherwise it returns false

func VerifyFlagsArgsOrder

func VerifyFlagsArgsOrder(args []string) error

Types

type BudResults

type BudResults struct {
	Annotation          []string
	Authfile            string
	BuildArg            []string
	CacheFrom           string
	CertDir             string
	Compress            bool
	Creds               string
	DisableCompression  bool
	DisableContentTrust bool
	IgnoreFile          string
	File                []string
	Format              string
	From                string
	Iidfile             string
	Label               []string
	Logfile             string
	Manifest            string
	NoCache             bool
	Timestamp           int64
	Pull                bool
	PullAlways          bool
	PullNever           bool
	Quiet               bool
	Rm                  bool
	Runtime             string
	RuntimeFlags        []string
	Secrets             []string
	SSH                 []string
	SignaturePolicy     string
	SignBy              string
	Squash              bool
	Stdin               bool
	Tag                 []string
	Target              string
	TLSVerify           bool
	Jobs                int
	LogRusage           bool
	RusageLogFile       string
}

BudResults represents the results for Build flags

type FromAndBudResults

type FromAndBudResults struct {
	AddHost        []string
	BlobCache      string
	CapAdd         []string
	CapDrop        []string
	CgroupParent   string
	CPUPeriod      uint64
	CPUQuota       int64
	CPUSetCPUs     string
	CPUSetMems     string
	CPUShares      uint64
	DecryptionKeys []string
	Devices        []string
	DNSSearch      []string
	DNSServers     []string
	DNSOptions     []string
	HTTPProxy      bool
	Isolation      string
	Memory         string
	MemorySwap     string
	SecurityOpt    []string
	ShmSize        string
	Ulimit         []string
	Volumes        []string
}

FromAndBugResults represents the results for common flags in build and from

type LayerResults

type LayerResults struct {
	ForceRm bool
	Layers  bool
}

LayerResults represents the results of the layer flags

type NameSpaceResults

type NameSpaceResults struct {
	IPC           string
	Network       string
	CNIConfigDir  string
	CNIPlugInPath string
	PID           string
	UTS           string
}

NameSpaceResults represents the results for Namespace flags

type UserNSResults

type UserNSResults struct {
	UserNS            string
	UserNSUIDMap      []string
	UserNSGIDMap      []string
	UserNSUIDMapUser  string
	UserNSGIDMapGroup string
}

UserNSResults represents the results for the UserNS flags

Jump to

Keyboard shortcuts

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