package image
import ocispec "github.com/opencontainers/image-spec/specs-go/v1"
type RegistryPullOptions struct {
Reference string
PlainHTTP bool
Username string
Password string
}
type PublishBootIndexOptions struct {
RootfsImageName string `json:"rootfs_image_name"`
KernelPath string `json:"kernel_path"`
InitrdPath string `json:"initrd_path"`
}
type PublishBootIndexResult struct {
BootIndexDigest string `json:"boot_index_digest"`
Target ocispec.Descriptor `json:"-"`
}
type PulledBootIndex struct {
Info BootIndexInfo
SourceImageName string
Target ocispec.Descriptor `json:"-"`
}
type BootIndexInfo struct {
BootIndexDigest string `json:"boot_index_digest"`
RootfsDescriptor ocispec.Descriptor `json:"rootfs_descriptor"`
MemDescriptor ocispec.Descriptor `json:"mem_descriptor,omitempty"`
SandboxDescriptor ocispec.Descriptor `json:"sandbox_descriptor"`
Resume bool `json:"resume"`
VMMName string `json:"vmm_name,omitempty"`
MemorySizeMB int64 `json:"memory_size_mb,omitempty"`
}
type PublishCheckpointBootIndexOptions struct {
SourceBootIndexDigest string `json:"source_boot_index_digest"`
MemRoot string `json:"mem_root"`
VMMName string `json:"vmm_name"`
MemorySizeMB int64 `json:"memory_size_mb"`
}
type PublishCheckpointBootIndexResult struct {
BootIndexDigest string `json:"boot_index_digest"`
Target ocispec.Descriptor `json:"-"`
}
type PushBootIndexOptions struct {
BootIndexDigest string `json:"boot_index_digest"`
RemoteReference string `json:"remote_reference"`
PlainHTTP bool `json:"plain_http,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
}