Documentation ¶
Index ¶
- Variables
- func ComputeSha256(reader io.Reader) string
- func CreateCheckpointImage(ctx context.Context, checkpointPath string, containerName string, ...) (string, string, error)
- func CreateOCIImage(fromPath string, containerName string, checkpointName string) error
- func GenerateImageConfig(diffId string) ([]byte, error)
- func GenerateImageManifest(imageConfigDigest string, imageConfigSize int, layerDigest string, ...) ([]byte, error)
- func GenerateIndex(imageManifestDigest string, imageManifestSize int) ([]byte, error)
- func GenerateOCILayout() string
- func Gzip(reader io.Reader, target io.Writer) error
- func ImportImage(path string) error
- func ReadStats(checkpointTar string) []byte
- type BlobReference
- type Config
- type HistoryEntry
- type ImageConfig
- type ImageManifest
- type Index
- type RootFs
Constants ¶
This section is empty.
Variables ¶
View Source
var IMG_SERVICE_MAGIC uint32 = 0x55105940
View Source
var STATS_MAGIC uint32 = 0x57093306
Functions ¶
func ComputeSha256 ¶
func CreateCheckpointImage ¶
func CreateOCIImage ¶
func GenerateImageConfig ¶
func GenerateImageManifest ¶
func GenerateIndex ¶
func GenerateOCILayout ¶
func GenerateOCILayout() string
func ImportImage ¶
Types ¶
type BlobReference ¶
type HistoryEntry ¶
type ImageConfig ¶
type ImageManifest ¶
type ImageManifest struct { SchemaVersion int `json:"schemaVersion"` MediaType string `json:"mediaType"` Config BlobReference `json:"config"` Layers []BlobReference `json:"layers"` Annotations map[string]string `json:"annotations"` }
type Index ¶
type Index struct { SchemaVersion int `json:"schemaVersion"` Manifests []BlobReference `json:"manifests"` }
Click to show internal directories.
Click to hide internal directories.