Documentation
¶
Index ¶
- Constants
- Variables
- func AllContainerSubCommands() []*cobra.Command
- func AllImageSubCommands() []*cobra.Command
- func AllSubCommands() []*cobra.Command
- func FormatReferenceWithTransportName(tr string, ref string) string
- func GetCurrentUserFromKubeConfig(filename string) (userid string, err error)
- func PreloadIfTarFile(images []string, transport string) ([]string, error)
- func RegisterGlobalFlags(fs *pflag.FlagSet) error
- func RegisterPostRun(fn func() error)
- func RegisterRootCommand(cmd *cobra.Command)
- func SetRequireBuildahAnnotation(cmds ...*cobra.Command)
- func Tail(a []string) []string
- func TrySetupWithDefaults(setters ...Setter) error
- func UsageTemplate() string
- func ValidateTransport(s string) error
- type DiffType
- type FlagSetter
- type InspectOutput
- type Interface
- type JSONContainer
- type Runtime
- type Setter
Constants ¶
View Source
const ( OCIArchive string = "oci-archive" OCIManifestDir string = "oci-dir" DockerArchive string = "docker-archive" DockerManifestDir string = "docker-dir" )
View Source
const ( PullIfMissing = define.PullIfMissing PullAlways = define.PullAlways PullIfNewer = define.PullIfNewer PullNever = define.PullNever )
View Source
const (
DisableAutoRootless = "DISABLE_AUTO_ROOTLESS"
)
Variables ¶
View Source
var ( TransportDir = directory.Transport.Name() TransportDocker = docker.Transport.Name() TransportDockerArchive = archive.Transport.Name() TransportOCIArchive = ociarchive.Transport.Name() TransportOCI = layout.Transport.Name() TransportAtomic = openshift.Transport.Name() TransportSif = sif.Transport.Name() TransportTarball = tarball.Transport.Name() TransportContainersStorage = storage.Transport.Name() )
View Source
var ( DefaultConfigFile string DefaultSignaturePolicyPath = config.DefaultSignaturePolicyPath DefaultRootlessSignaturePolicyPath = "containers/policy.json" DefaultGraphRoot = "/var/lib/containers/storage" DefaultRegistriesFilePath = "/etc/containers/registries.conf" DefaultRootlessRegistriesFilePath = "containers/registries.conf" )
View Source
var DefaultTransport = OCIArchive
View Source
var (
IsRootless = wrapunshare.IsRootless
)
Functions ¶
func AllContainerSubCommands ¶
func AllImageSubCommands ¶
func AllSubCommands ¶
func RegisterGlobalFlags ¶
func RegisterPostRun ¶
func RegisterPostRun(fn func() error)
func RegisterRootCommand ¶
func SetRequireBuildahAnnotation ¶
SetRequireBuildahAnnotation explicit call this function on commands that require buildah module dependency
func Tail ¶
Tail returns a string slice after the first element unless there are not enough elements, then it returns an empty slice. This is to replace the urfavecli Tail method for args
func TrySetupWithDefaults ¶
func UsageTemplate ¶
func UsageTemplate() string
UsageTemplate returns the usage template for podman commands This blocks the displaying of the global options. The main podman command should not use this.
func ValidateTransport ¶
Types ¶
type FlagSetter ¶
func WithPlatformOption ¶
func WithPlatformOption(pf v1.Platform) FlagSetter
func WithPullPolicyOption ¶
func WithPullPolicyOption(policy string) FlagSetter
type InspectOutput ¶
type Interface ¶
type Interface interface { Pull(imageNames []string, opts ...FlagSetter) error Load(input string, ociType string) (string, error) InspectImage(name string, opts ...string) (*InspectOutput, error) Create(name string, image string, opts ...FlagSetter) (buildah.BuilderInfo, error) Delete(name string) error InspectContainer(name string) (buildah.BuilderInfo, error) ListContainers() ([]JSONContainer, error) Runtime() *Runtime }
type JSONContainer ¶
type Runtime ¶
func (*Runtime) PullOrLoadImages ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.