save

package
v0.15.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_Microsoft_hcsshim_internal_controller_linuxcontainer_save_payload_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LayerReservation

type LayerReservation struct {

	// reservation_id is a SCSI reservation GUID; layers are SCSI-backed VHDs
	// and this is a key into the SCSI sub-controller's reservations map.
	ReservationID string `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
	// guest_path is the path inside the guest where this layer is mounted.
	GuestPath string `protobuf:"bytes,2,opt,name=guest_path,json=guestPath,proto3" json:"guest_path,omitempty"`
	// contains filtered or unexported fields
}

LayerReservation references a single SCSI-backed layer mounted into the guest.

func (*LayerReservation) Descriptor deprecated

func (*LayerReservation) Descriptor() ([]byte, []int)

Deprecated: Use LayerReservation.ProtoReflect.Descriptor instead.

func (*LayerReservation) GetGuestPath

func (x *LayerReservation) GetGuestPath() string

func (*LayerReservation) GetReservationID

func (x *LayerReservation) GetReservationID() string

func (*LayerReservation) ProtoMessage

func (*LayerReservation) ProtoMessage()

func (*LayerReservation) ProtoReflect

func (x *LayerReservation) ProtoReflect() protoreflect.Message

func (*LayerReservation) Reset

func (x *LayerReservation) Reset()

func (*LayerReservation) String

func (x *LayerReservation) String() string

type Layers

type Layers struct {

	// ro_layers are the read-only layer reservations in stack order.
	RoLayers []*LayerReservation `protobuf:"bytes,1,rep,name=ro_layers,json=roLayers,proto3" json:"ro_layers,omitempty"`
	// scratch is the writable scratch layer reservation.
	Scratch *LayerReservation `protobuf:"bytes,2,opt,name=scratch,proto3" json:"scratch,omitempty"`
	// layers_combined is true when the layers were merged into a single
	// rootfs (e.g. overlay) rather than mounted individually.
	LayersCombined bool `protobuf:"varint,3,opt,name=layers_combined,json=layersCombined,proto3" json:"layers_combined,omitempty"`
	// rootfs_path is the final guest path of the container rootfs: the
	// merged mount when layers_combined is true, otherwise the topmost
	// layer mount.
	RootfsPath string `protobuf:"bytes,4,opt,name=rootfs_path,json=rootfsPath,proto3" json:"rootfs_path,omitempty"`
	// contains filtered or unexported fields
}

Layers describes the container's rootfs composition.

func (*Layers) Descriptor deprecated

func (*Layers) Descriptor() ([]byte, []int)

Deprecated: Use Layers.ProtoReflect.Descriptor instead.

func (*Layers) GetLayersCombined

func (x *Layers) GetLayersCombined() bool

func (*Layers) GetRoLayers

func (x *Layers) GetRoLayers() []*LayerReservation

func (*Layers) GetRootfsPath

func (x *Layers) GetRootfsPath() string

func (*Layers) GetScratch

func (x *Layers) GetScratch() *LayerReservation

func (*Layers) ProtoMessage

func (*Layers) ProtoMessage()

func (*Layers) ProtoReflect

func (x *Layers) ProtoReflect() protoreflect.Message

func (*Layers) Reset

func (x *Layers) Reset()

func (*Layers) String

func (x *Layers) String() string

type Payload

type Payload struct {

	// schema_version is bumped whenever a field's semantics change. The
	// destination MUST reject states whose version it does not recognise.
	SchemaVersion uint32 `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	// container_id is the host/shim container identifier.
	ContainerID string `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// gcs_container_id is the container identifier as known by the GCS inside
	// the guest, which may differ from container_id.
	GcsContainerID string `protobuf:"bytes,3,opt,name=gcs_container_id,json=gcsContainerId,proto3" json:"gcs_container_id,omitempty"`
	// io_retry_timeout is how long IO relay reconnects are retried for this
	// container.
	IoRetryTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=io_retry_timeout,json=ioRetryTimeout,proto3" json:"io_retry_timeout,omitempty"`
	// layers is the container's rootfs composition.
	Layers *Layers `protobuf:"bytes,5,opt,name=layers,proto3" json:"layers,omitempty"`
	// scsi_reservation_ids are the SCSI reservation GUIDs the container owns.
	// Each value is a key into the SCSI sub-controller's reservations map.
	ScsiReservationIds []string `protobuf:"bytes,6,rep,name=scsi_reservation_ids,json=scsiReservationIds,proto3" json:"scsi_reservation_ids,omitempty"`
	// processes is keyed by exec ID and contains the init process (with an
	// empty exec ID) plus any additional exec'd processes. Each value is an
	// opaque process-controller [Payload] envelope.
	Processes map[string]*anypb.Any `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

Payload is the migration payload owned by a single linuxcontainer controller. It is the top-level message wrapped in an anypb.Any when handed off between source and destination shims. Embedded process states are carried as opaque anypb.Any payloads so the process controller fully owns its own schema and versioning.

func (*Payload) Descriptor deprecated

func (*Payload) Descriptor() ([]byte, []int)

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetContainerID

func (x *Payload) GetContainerID() string

func (*Payload) GetGcsContainerID

func (x *Payload) GetGcsContainerID() string

func (*Payload) GetIoRetryTimeout

func (x *Payload) GetIoRetryTimeout() *durationpb.Duration

func (*Payload) GetLayers

func (x *Payload) GetLayers() *Layers

func (*Payload) GetProcesses

func (x *Payload) GetProcesses() map[string]*anypb.Any

func (*Payload) GetSchemaVersion

func (x *Payload) GetSchemaVersion() uint32

func (*Payload) GetScsiReservationIds

func (x *Payload) GetScsiReservationIds() []string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

func (x *Payload) ProtoReflect() protoreflect.Message

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL