Documentation ¶
Index ¶
- Variables
- func VolumeJoin(op trace.Operation, handle *exec.Handle, volume *volume.Volume, ...) (*exec.Handle, error)
- type VolumeStore
- func (v *VolumeStore) Export(op trace.Operation, id, ancestor string, spec *archive.FilterSpec, data bool) (io.ReadCloser, error)
- func (v *VolumeStore) Import(op trace.Operation, id string, spec *archive.FilterSpec, ...) error
- func (v *VolumeStore) NewDataSink(op trace.Operation, id string) (storage.DataSink, error)
- func (v *VolumeStore) NewDataSource(op trace.Operation, id string) (storage.DataSource, error)
- func (v *VolumeStore) URL(op trace.Operation, id string) (*url.URL, error)
- func (v *VolumeStore) VolumeCreate(op trace.Operation, ID string, store *url.URL, capacityKB uint64, ...) (*volume.Volume, error)
- func (v *VolumeStore) VolumeDestroy(op trace.Operation, vol *volume.Volume) error
- func (v *VolumeStore) VolumeGet(op trace.Operation, ID string) (*volume.Volume, error)
- func (v *VolumeStore) VolumesList(op trace.Operation) ([]*volume.Volume, error)
Constants ¶
This section is empty.
Variables ¶
var ( // Set to false for unit tests DetachAll = true )
Functions ¶
Types ¶
type VolumeStore ¶
VolumeStore caches Volume references to volumes in the system.
func NewVolumeStore ¶
func (*VolumeStore) Export ¶
func (v *VolumeStore) Export(op trace.Operation, id, ancestor string, spec *archive.FilterSpec, data bool) (io.ReadCloser, error)
Export reads the delta between child and parent volume layers, returning the difference as a tar archive.
store - the volume store containing the two layers id - must inherit from ancestor if ancestor is specified ancestor - the volume layer up the chain against which to diff spec - describes filters on paths found in the data (include, exclude, strip) data - set to true to include file data in the tar archive, false to include headers only
func (*VolumeStore) Import ¶
func (v *VolumeStore) Import(op trace.Operation, id string, spec *archive.FilterSpec, tarstream io.ReadCloser) error
func (*VolumeStore) NewDataSink ¶
NewDataSource creates and returns an DataSource associated with container storage
func (*VolumeStore) NewDataSource ¶
func (v *VolumeStore) NewDataSource(op trace.Operation, id string) (storage.DataSource, error)
NewDataSource creates and returns an DataSource associated with container storage