Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeIPCLabel ¶
EncodeIPCLabel encodes IPC spec into a label.
func GenerateIPCOpts ¶
func GenerateIPCOpts(ctx context.Context, ipc IPC, client *containerd.Client) ([]oci.SpecOpts, error)
GenerateIPCOpts generates IPC spec opts from the given IPC.
Types ¶
type IPC ¶
type IPC struct { Mode IPCMode `json:"mode,omitempty"` // VictimContainer is only used when mode is container VictimContainerID *string `json:"victimContainerId,omitempty"` // HostShmPath is only used when mode is shareable HostShmPath *string `json:"hostShmPath,omitempty"` // ShmSize is only used when mode is private or shareable // Devshm size in bytes ShmSize string `json:"shmSize,omitempty"` }
func DecodeIPCLabel ¶
DecodeIPCLabel decodes IPC spec from a label. For backward compatibility, if ipcLabel is empty, it returns IPC{Mode: Private}.
Click to show internal directories.
Click to hide internal directories.