Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
APIClient defines an interface for container operations including inspect, create, and start.
type BackupManager ¶
type BackupManager struct {
// contains filtered or unexported fields
}
BackupManager handles backup operations such as creating and inspecting container states.
func NewBackupManager ¶
func NewBackupManager(cli APIClient, ctx context.Context) *BackupManager
NewBackupManager initializes and returns a new BackupManager with the provided APIClient and context.
func (*BackupManager) BackupVolume ¶
func (bm *BackupManager) BackupVolume(container, volume, outputPath string) error
BackupVolume creates a backup of the specified volume in the given container and writes it to the specified output path.
type Creator ¶
type Creator interface {
ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *ocispec.Platform, containerName string) (container.CreateResponse, error)
}
The Creator defines an interface for creating Docker containers with the specified configurations and context.
Click to show internal directories.
Click to hide internal directories.