package v1
import "k8s.io/kubernetes/pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1"
Index ¶
- type CheckpointData
- func (cp *CheckpointData) MarshalCheckpoint() ([]byte, error)
- func (cp *CheckpointData) UnmarshalCheckpoint(blob []byte) error
- func (cp *CheckpointData) VerifyChecksum() error
- type Data
- type PortMapping
Types ¶
type CheckpointData ¶
CheckpointData is a sample example structure to be used in test cases for checkpointing
func (*CheckpointData) MarshalCheckpoint ¶
func (cp *CheckpointData) MarshalCheckpoint() ([]byte, error)
func (*CheckpointData) UnmarshalCheckpoint ¶
func (cp *CheckpointData) UnmarshalCheckpoint(blob []byte) error
func (*CheckpointData) VerifyChecksum ¶
func (cp *CheckpointData) VerifyChecksum() error
type Data ¶
type Data struct { PortMappings []*PortMapping `json:"port_mappings,omitempty"` HostNetwork bool `json:"host_network,omitempty"` }
CheckpointData contains all types of data that can be stored in the checkpoint.
type PortMapping ¶
type PortMapping struct { // protocol of the port mapping. Protocol *protocol // Port number within the container. ContainerPort *int32 // Port number on the host. HostPort *int32 }
portMapping is the port mapping configurations of a sandbox.
Source Files ¶
types.go
- Version
- v1.13.9
- Published
- Aug 1, 2019
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 minute ago –
Tools for package owners.