checkpoints

package
v0.0.0-...-3511abf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckpointDownloader

type CheckpointDownloader interface {
	Download(ctx context.Context) error
	Close() error
}

CheckpointDownloader defines the interface for downloading checkpoints.

func NewDownloader

func NewDownloader(
	w io.Writer,
	id string,
	storageConfig *expconf.CheckpointStorageConfig,
	archiveType archive.ArchiveType,
) (CheckpointDownloader, error)

NewDownloader returns a new CheckpointDownloader that writes to w.

  • w: the underlying Writer that CheckpointDownloader writes to
  • id: the UUID string of the checkpoint to be downloaded
  • storageConfig: the CheckpointStorageConfig
  • archiveType: The ArchiveType (file format) in which the checkpoint shall be downloaded

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL