Documentation
¶
Overview ¶
Copyright (C) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE-CODE in the project root for license information.
Copyright (C) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE-CODE in the project root for license information.
Copyright (C) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE-CODE in the project root for license information. Package checkpoint implements the structures, methods, and functions used by the Checkpoint utilities
Index ¶
Constants ¶
const ( KB = 1024 MB = KB * KB GB = MB * KB )
Variables ¶
This section is empty.
Functions ¶
func GenerateCheckpointName ¶
GenerateCheckpointName generates a checkpoint name from unique name and frame name
func GetCheckpointName ¶
GetCheckpointName returns the checkpoint name, which is just the parent directory
func GetCheckpointNameParts ¶
GetCheckpointNameParts generates the parts of the batch name
Types ¶
type CheckpointFile ¶
CheckpointFile represents a checkpoint file
func InitializeCheckpointFile ¶
func InitializeCheckpointFile(name string) *CheckpointFile
InitializeCheckpointFile sets the unique name of the job configuration and the batch name
func ReadCheckpointFile ¶
func ReadCheckpointFile(reader *file.ReaderWriter, filename string) (*CheckpointFile, error)
ReadCheckpointFile reads a job config file from disk
func (*CheckpointFile) WriteCheckpointFile ¶
func (c *CheckpointFile) WriteCheckpointFile(writer *file.ReaderWriter, filepath string, fileSizeBytes int) (string, error)
WriteJobConfigFile writes the job configuration file to disk, padding it so it makes the necessary size