Documentation
¶
Index ¶
- Variables
- type LayerReservation
- func (*LayerReservation) Descriptor() ([]byte, []int)deprecated
- func (x *LayerReservation) GetGuestPath() string
- func (x *LayerReservation) GetReservationID() string
- func (*LayerReservation) ProtoMessage()
- func (x *LayerReservation) ProtoReflect() protoreflect.Message
- func (x *LayerReservation) Reset()
- func (x *LayerReservation) String() string
- type Layers
- func (*Layers) Descriptor() ([]byte, []int)deprecated
- func (x *Layers) GetLayersCombined() bool
- func (x *Layers) GetRoLayers() []*LayerReservation
- func (x *Layers) GetRootfsPath() string
- func (x *Layers) GetScratch() *LayerReservation
- func (*Layers) ProtoMessage()
- func (x *Layers) ProtoReflect() protoreflect.Message
- func (x *Layers) Reset()
- func (x *Layers) String() string
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)deprecated
- func (x *Payload) GetContainerID() string
- func (x *Payload) GetGcsContainerID() string
- func (x *Payload) GetIoRetryTimeout() *durationpb.Duration
- func (x *Payload) GetLayers() *Layers
- func (x *Payload) GetProcesses() map[string]*anypb.Any
- func (x *Payload) GetSchemaVersion() uint32
- func (x *Payload) GetScsiReservationIds() []string
- func (*Payload) ProtoMessage()
- func (x *Payload) ProtoReflect() protoreflect.Message
- func (x *Payload) Reset()
- func (x *Payload) String() string
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) GetLayersCombined ¶
func (*Layers) GetRoLayers ¶
func (x *Layers) GetRoLayers() []*LayerReservation
func (*Layers) GetRootfsPath ¶
func (*Layers) GetScratch ¶
func (x *Layers) GetScratch() *LayerReservation
func (*Layers) ProtoMessage ¶
func (*Layers) ProtoMessage()
func (*Layers) ProtoReflect ¶
func (x *Layers) ProtoReflect() protoreflect.Message
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) GetContainerID ¶
func (*Payload) GetGcsContainerID ¶
func (*Payload) GetIoRetryTimeout ¶
func (x *Payload) GetIoRetryTimeout() *durationpb.Duration
func (*Payload) GetSchemaVersion ¶
func (*Payload) GetScsiReservationIds ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.