Documentation
¶
Index ¶
- Variables
- func CleanupTasks(tasks []Task)
- func FormatTime(microseconds uint32) string
- func GetNewTabWriter(output io.Writer) *tabwriter.Writer
- func RenderJSONView(tasks []Task) error
- func RenderTreeView(tasks []Task) error
- func ShowContainerCheckpoints(tasks []Task) error
- func UntarFiles(src, dest string, files []string) error
- func WriteTableHeader(w *tabwriter.Writer, header []string)
- func WriteTableRows(w *tabwriter.Writer, rows [][]string)
- type CheckpointSize
- type ChkptConfig
- type DisplayNode
- type FdNode
- type ImageBuilder
- type MountNode
- type OpenFileNode
- type PsNode
- type SkData
- type SkNode
- type SocketNode
- type StatsNode
- type Task
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CleanupTasks ¶
func CleanupTasks(tasks []Task)
cleanupTasks removes all output directories of given tasks
func FormatTime ¶
func GetNewTabWriter ¶ added in v1.4.0
GetNewTabWriter returns a tabwriter that translates tabbed columns in input into properly aligned text.
func RenderJSONView ¶
func RenderTreeView ¶
func UntarFiles ¶
UntarFiles unpack only specified files from an archive to the destination directory.
func WriteTableHeader ¶ added in v1.4.0
WriteTableHeader writes the header row and separator line for a table
func WriteTableRows ¶ added in v1.4.0
WriteTableRows writes the data rows for a table
Types ¶
type CheckpointSize ¶
type ChkptConfig ¶
type ChkptConfig struct {
Namespace string
Pod string
Container string
ContainerManager string
Timestamp time.Time
}
func ExtractConfigDump ¶
func ExtractConfigDump(checkpointPath string) (*ChkptConfig, error)
type DisplayNode ¶
type DisplayNode struct {
ContainerName string `json:"container_name"`
Image string `json:"image"`
ID string `json:"id"`
Runtime string `json:"runtime"`
Created string `json:"created"`
Checkpointed string `json:"checkpointed,omitempty"`
Engine string `json:"engine"`
IP string `json:"ip,omitempty"`
MAC string `json:"mac,omitempty"`
CheckpointSize CheckpointSize `json:"checkpoint_size"`
CriuDumpStatistics *StatsNode `json:"statistics,omitempty"`
ProcessTree *PsNode `json:"process_tree,omitempty"`
FileDescriptors []FdNode `json:"file_descriptors,omitempty"`
Sockets []SkNode `json:"sockets,omitempty"`
Mounts []MountNode `json:"mounts,omitempty"`
}
type FdNode ¶
type FdNode struct {
PID uint32 `json:"pid"`
OpenFiles []OpenFileNode `json:"open_files,omitempty"`
}
type ImageBuilder ¶ added in v1.4.0
type ImageBuilder struct {
// contains filtered or unexported fields
}
func NewImageBuilder ¶ added in v1.4.0
func NewImageBuilder(imageName, checkpointPath string) *ImageBuilder
func (*ImageBuilder) CreateImageFromCheckpoint ¶ added in v1.4.0
func (ic *ImageBuilder) CreateImageFromCheckpoint(ctx context.Context) error
type OpenFileNode ¶
type SkData ¶
type SkData struct {
Type string `json:"type,omitempty"`
Address string `json:"address,omitempty"`
State string `json:"state,omitempty"`
Source string `json:"src,omitempty"`
SourcePort uint32 `json:"src_port,omitempty"`
Dest string `json:"dst,omitempty"`
DestPort uint32 `json:"dst_port,omitempty"`
SendBuf string `json:"send_buf,omitempty"`
RecvBuf string `json:"recv_buf,omitempty"`
}
type SkNode ¶
type SkNode struct {
PID uint32 `json:"pid"`
OpenSockets []SocketNode `json:"open_sockets,omitempty"`
}
type SocketNode ¶
type StatsNode ¶
type StatsNode struct {
FreezingTime uint32 `json:"freezing_time,omitempty"`
FrozenTime uint32 `json:"frozen_time,omitempty"`
MemdumpTime uint32 `json:"memdump_time,omitempty"`
MemwriteTime uint32 `json:"memwrite_time,omitempty"`
PagesScanned uint64 `json:"pages_scanned,omitempty"`
PagesWritten uint64 `json:"pages_written,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.