docker

package
v0.0.0-...-ea904b2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupContainer

type BackupContainer struct {
	Container
	// contains filtered or unexported fields
}

func NewBackupContainer

func NewBackupContainer(ctx context.Context, source *Container, target Volume) (*BackupContainer, error)

func (BackupContainer) Backup

func (c BackupContainer) Backup(ctx context.Context) error

func (*BackupContainer) Destroy

func (c *BackupContainer) Destroy(ctx context.Context) error

type CifsAddress

type CifsAddress struct {
	Host     string
	Path     string
	Username string
	Password string
}

func NewCifsAddress

func NewCifsAddress(address string) (CifsAddress, error)

func (CifsAddress) String

func (a CifsAddress) String() string

type Client

type Client struct {
	*client.Client
	Host string
}

func NewClient

func NewClient(tcpHost string) (Client, error)

type Container

type Container struct {
	Name string
	// contains filtered or unexported fields
}

func FindContainer

func FindContainer(ctx context.Context, client Client, name string) (*Container, error)

func (Container) Start

func (c Container) Start(ctx context.Context) error

func (Container) Stop

func (c Container) Stop(ctx context.Context) error

func (Container) Volumes

func (c Container) Volumes() []string

type Volume

type Volume struct {
	Name     string
	Resource string
	// contains filtered or unexported fields
}

func NewCifsVolume

func NewCifsVolume(ctx context.Context, client Client, adr CifsAddress, name string) (*Volume, error)

func (Volume) Destroy

func (v Volume) Destroy(ctx context.Context) error

Jump to

Keyboard shortcuts

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