registry

package
v3.4.10 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NoMoveProcess used as cobra.Annotation when command doesn't need Podman to be moved to a separate cgroup
	NoMoveProcess = "NoMoveProcess"

	// ParentNSRequired used as cobra.Annotation when command requires root access
	ParentNSRequired = "ParentNSRequired"

	// UnshareNSRequired used as cobra.Annotation when command requires modified user namespace
	UnshareNSRequired = "UnshareNSRequired"

	// EngineMode used as cobra.Annotation when command supports a limited number of Engines
	EngineMode = "EngineMode"
)
View Source
const DefaultRootAPIAddress = "unix:" + DefaultRootAPIPath

DefaultRootAPIAddress is the default address of the REST socket with unix: prefix

View Source
const DefaultRootAPIPath = "/run/podman/podman.sock"

DefaultRootAPIPath is the default path of the REST socket

Variables

View Source
var (

	// ABIMode used in cobra.Annotations registry.EngineMode when command only supports ABIMode
	ABIMode = entities.ABIMode.String()
	// TunnelMode used in in cobra.Annotations registry.EngineMode when command only supports TunnelMode
	TunnelMode = entities.TunnelMode.String()
)
View Source
var (

	// Commands holds the cobra.Commands to present to the user, including
	// parent if not a child of "root"
	Commands []CliCommand
)

Functions

func ContainerEngine

func ContainerEngine() entities.ContainerEngine

func Context

func Context() context.Context

func ContextWithOptions

func ContextWithOptions(ctx context.Context) context.Context

func DefaultAPIAddress

func DefaultAPIAddress() string

func GetContext

func GetContext() context.Context

GetContext deprecated, use Context()

func GetContextWithOptions

func GetContextWithOptions() context.Context

GetContextWithOptions deprecated, use NewContextWithOptions()

func GetExitCode

func GetExitCode() int

func ImageEngine

func ImageEngine() entities.ImageEngine

func IsRemote

func IsRemote() bool

IsRemote returns true if podman was built to run remote or --remote flag given on CLI Use in init() functions as an initialization check

func JSONLibrary

func JSONLibrary() jsoniter.API

JSONLibrary provides a "encoding/json" compatible API

func NewContainerEngine

func NewContainerEngine(cmd *cobra.Command, args []string) (entities.ContainerEngine, error)

NewContainerEngine is a wrapper for building an ContainerEngine to be used for PreRunE functions

func NewImageEngine

func NewImageEngine(cmd *cobra.Command, args []string) (entities.ImageEngine, error)

NewImageEngine is a wrapper for building an ImageEngine to be used for PreRunE functions

func PodmanConfig

func PodmanConfig() *entities.PodmanConfig

PodmanConfig returns an entities.PodmanConfig built up from environment and CLI

func SetExitCode

func SetExitCode(code int)

Types

type CliCommand

type CliCommand struct {
	Command *cobra.Command
	Parent  *cobra.Command
}

type PodmanOptionsKey

type PodmanOptionsKey struct{}

Jump to

Keyboard shortcuts

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