checkpoints

package
v0.750.8 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 9 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(context.Context) error
	Close() error
	ListFiles(context.Context) ([]archive.FileEntry, error)
}

CheckpointDownloader defines the interface for downloading checkpoints.

func NewDownloader

func NewDownloader(
	ctx context.Context,
	w io.Writer,
	id string,
	storageConfig *expconf.CheckpointStorageConfig,
	aw archive.ArchiveWriter,
) (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