Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverData ¶
DriverData includes data on the storage driver of the image.
type ImageData ¶
type ImageData struct {
ID string `json:"Id"`
Digest digest.Digest `json:"Digest"`
RepoTags []string `json:"RepoTags"`
RepoDigests []string `json:"RepoDigests"`
Parent string `json:"Parent"`
Comment string `json:"Comment"`
Created *time.Time `json:"Created"`
Config *ociv1.ImageConfig `json:"Config"`
Version string `json:"Version"`
Author string `json:"Author"`
Architecture string `json:"Architecture"`
Os string `json:"Os"`
Size int64 `json:"Size"`
VirtualSize int64 `json:"VirtualSize"`
GraphDriver *DriverData `json:"GraphDriver"`
RootFS *RootFS `json:"RootFS"`
Labels map[string]string `json:"Labels"`
Annotations map[string]string `json:"Annotations"`
ManifestType string `json:"ManifestType"`
User string `json:"User"`
History []ociv1.History `json:"History"`
NamesHistory []string `json:"NamesHistory"`
HealthCheck *manifest.Schema2HealthConfig `json:"Healthcheck,omitempty"`
}
ImageData contains the inspected data of an image.
type ImageHistory ¶
type ImageHistory struct {
ID string `json:"id"`
Created *time.Time `json:"created"`
CreatedBy string `json:"createdBy"`
Size int64 `json:"size"`
Comment string `json:"comment"`
Tags []string `json:"tags"`
}
ImageHistory contains the history information of an image.
type PullPolicy ¶
type PullPolicy int
PullPolicy determines how and which images are being pulled from a container registry (i.e., docker transport only).
Supported string values are: * "always" <-> PullPolicyAlways * "missing" <-> PullPolicyMissing * "newer" <-> PullPolicyNewer * "never" <-> PullPolicyNever
const ( // This default value forces callers to setup a custom default policy. // Some tools use different policies (e.g., buildah-bud versus // podman-build). PullPolicyUnsupported PullPolicy = iota // Always pull the image. PullPolicyAlways // Pull the image only if it could not be found in the local containers // storage. PullPolicyMissing // Pull if the image on the registry is new than the one in the local // containers storage. An image is considered to be newer when the // digests are different. Comparing the time stamps is prone to // errors. PullPolicyNewer // Never pull the image but use the one from the local containers // storage. PullPolicyNever )
func ParsePullPolicy ¶
func ParsePullPolicy(s string) (PullPolicy, error)
ParsePullPolicy parses the string into a pull policy.
Supported string values are: * "always" <-> PullPolicyAlways * "missing" <-> PullPolicyMissing * "newer" <-> PullPolicyNewer (also "ifnewer") * "never" <-> PullPolicyNever
func (PullPolicy) String ¶
func (p PullPolicy) String() string
String converts a PullPolicy into a string.
Supported string values are: * "always" <-> PullPolicyAlways * "missing" <-> PullPolicyMissing * "newer" <-> PullPolicyNewer * "never" <-> PullPolicyNever
func (PullPolicy) Validate ¶
func (p PullPolicy) Validate() error
Validate returns if the pull policy is not supported.