...

Package computestorage

import "github.com/Microsoft/hcsshim/computestorage"
Overview
Index

Overview ▾

Package computestorage is a wrapper around the HCS storage APIs. These are new storage APIs introduced separate from the original graphdriver calls intended to give more freedom around creating and managing container layers and scratch spaces.

type ExportLayerOptions

ExportLayerOptions are the set of options that are used with the `computestorage.HcsExportLayer` syscall.

type ExportLayerOptions struct {
    IsWritableLayer bool `json:"IsWritableLayer,omitempty"`
}

type Layer

type Layer = hcsschema.Layer

type LayerData

LayerData is the data used to describe parent layer information.

type LayerData struct {
    SchemaVersion Version `json:"SchemaVersion,omitempty"`
    Layers        []Layer `json:"Layers,omitempty"`
}

type OsLayerOptions

OsLayerOptions are the set of options that are used with the `SetupBaseOSLayer` and `SetupBaseOSVolume` calls.

type OsLayerOptions struct {
    Type                       OsLayerType `json:"Type,omitempty"`
    DisableCiCacheOptimization bool        `json:"DisableCiCacheOptimization,omitempty"`
    SkipUpdateBcdForBoot       bool        `json:"SkipUpdateBcdForBoot,omitempty"`
}

type OsLayerType

OsLayerType is the type of layer being operated on.

type OsLayerType string
const (
    // OsLayerTypeContainer is a container layer.
    OsLayerTypeContainer OsLayerType = "Container"
    // OsLayerTypeVM is a virtual machine layer.
    OsLayerTypeVM OsLayerType = "Vm"
)

type Version

type Version = hcsschema.Version