Documentation
¶
Index ¶
- func FormatSize(size int64) string
- func Images(stdout io.Writer) error
- func MetadataExists(ref *Reference) bool
- func Prune(stdout io.Writer) error
- func Pull(input string) error
- func Remove(input string) error
- func RemoveRepoTag(ref *Reference, manifestDigest string) error
- func WriteMetadata(ref *Reference, img *ImageManifest) error
- type ImageConfig
- type ImageManifest
- type ImageMetadata
- type LayerDescriptor
- type PruneResult
- type Reference
- type SingleManifest
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSize ¶
func MetadataExists ¶
func RemoveRepoTag ¶
func WriteMetadata ¶
func WriteMetadata(ref *Reference, img *ImageManifest) error
Types ¶
type ImageConfig ¶
type ImageConfig struct {
Architecture string `json:"architecture"`
OS string `json:"os"`
Config struct {
Cmd []string `json:"Cmd"`
Env []string `json:"Env"`
WorkingDir string `json:"WorkingDir"`
User string `json:"User"`
Entrypoint []string `json:"Entrypoint"`
} `json:"config"`
}
func ReadImageConfig ¶
func ReadImageConfig(digest string) (*ImageConfig, error)
type ImageManifest ¶
type ImageManifest struct {
ManifestDigest string
ConfigDigest string
Layers []LayerDescriptor
OS string
Architecture string
}
type ImageMetadata ¶
type ImageMetadata struct {
ID string `json:"id"`
Repo string `json:"repo"`
RepoTags []string `json:"repoTags"`
ManifestDigest string `json:"manifestDigest"`
ConfigDigest string `json:"configDigest"`
Layers []string `json:"layers"`
OS string `json:"os"`
Architecture string `json:"architecture"`
Size int64 `json:"size"`
Created time.Time `json:"created"`
}
func ReadMetadata ¶
func ReadMetadata(ref *Reference) (*ImageMetadata, error)
type LayerDescriptor ¶
type PruneResult ¶
type Reference ¶
func ParseReference ¶
type SingleManifest ¶
Click to show internal directories.
Click to hide internal directories.