Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
PullStrategy PullStrategy
}
Engine handles image pulling
func (*Engine) HandleImage ¶
HandleImage handles image pulling based on strategy
func (*Engine) ImageExists ¶
ImageExists checks if an image exists locally. Returns false if the image is not found (exit code 125) or if podman encounters an unexpected error. Non-125 errors are logged as warnings since they may indicate a podman installation problem.
type Grafter ¶
Grafter post-processes quadlet files to handle compose fields that podlet does not support or supports with known flaws.
func (*Grafter) Process ¶
func (g *Grafter) Process( files map[string]string, services map[string]preprocess.ServiceImageSpec, buildSpecs map[string]*preprocess.ServiceBuildSpec, secretDefs map[string]preprocess.SecretDef, serviceSecretRefs preprocess.ServiceSecretRefs, ) map[string]string
Process post-processes quadlet file contents generated by the cooker.
type ImageResult ¶
type ImageResult struct {
Service string
Image string
Action string // "pulled", "found", "skipped"
Error error
}
ImageResult represents the outcome of handling an image
type PullStrategy ¶
type PullStrategy string
PullStrategy defines how images should be pulled
const ( // PullAlways always pulls images PullAlways PullStrategy = "always" // PullMissing pulls only if image not found locally PullMissing PullStrategy = "missing" // PullNever never pulls images PullNever PullStrategy = "never" )
func ParsePullStrategy ¶
func ParsePullStrategy(s string) (PullStrategy, error)
ParsePullStrategy converts a string to PullStrategy