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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_Microsoft_hcsshim_internal_controller_pod_save_payload_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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"`
	// pod_id is the pod identifier.
	PodID string `protobuf:"bytes,2,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// gcs_pod_id is the pod identifier as known by the GCS inside the
	// guest, which may differ from pod_id.
	GcsPodID string `protobuf:"bytes,3,opt,name=gcs_pod_id,json=gcsPodId,proto3" json:"gcs_pod_id,omitempty"`
	// network is the per-pod network controller's [anypb.Any] envelope.
	Network *anypb.Any `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	// containers is the set of container [Payload] envelopes for this pod,
	// one [anypb.Any] per container controller.
	Containers []*anypb.Any `protobuf:"bytes,5,rep,name=containers,proto3" json:"containers,omitempty"`
	// contains filtered or unexported fields
}

Payload is the migration payload owned by a single pod controller. It is the top-level message wrapped in an anypb.Any when handed off between source and destination shims. The embedded network controller and container controllers are carried as opaque anypb.Any payloads so each child controller fully owns its own schema.

func (*Payload) Descriptor deprecated

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

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetContainers

func (x *Payload) GetContainers() []*anypb.Any

func (*Payload) GetGcsPodID

func (x *Payload) GetGcsPodID() string

func (*Payload) GetNetwork

func (x *Payload) GetNetwork() *anypb.Any

func (*Payload) GetPodID

func (x *Payload) GetPodID() string

func (*Payload) GetSchemaVersion

func (x *Payload) GetSchemaVersion() uint32

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