kubernetes: k8s.io/kubernetes/pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1 Index | Files

package v1

import "k8s.io/kubernetes/pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1"

Index

Package Files

types.go

type CheckpointData Uses

type CheckpointData struct {
    Version  string
    Name     string
    Data     *Data
    Checksum checksum.Checksum
}

CheckpointData is a sample example structure to be used in test cases for checkpointing

func (*CheckpointData) MarshalCheckpoint Uses

func (cp *CheckpointData) MarshalCheckpoint() ([]byte, error)

func (*CheckpointData) UnmarshalCheckpoint Uses

func (cp *CheckpointData) UnmarshalCheckpoint(blob []byte) error

func (*CheckpointData) VerifyChecksum Uses

func (cp *CheckpointData) VerifyChecksum() error

type Data Uses

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 Uses

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.

Package v1 imports 2 packages (graph). Updated 2018-04-17. Refresh now. Tools for package owners.