volumeadmin

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2017 License: GPL-3.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 Downloader

type Downloader interface {
	Download(url string) (*os.File, error)
}

type FileDownloader

type FileDownloader struct{}

func (FileDownloader) Download

func (fd FileDownloader) Download(source string) (*os.File, error)

type Volume

type Volume struct {
	Name   string
	Source string
	Target string
}

Volume represents volume-init-data from configuration-file

type VolumeLoader

type VolumeLoader struct {
	// contains filtered or unexported fields
}

VolumeLoader encapsulates VolumeLoader-functionality and its dependencies

func New

func New() VolumeLoader

New constructs VolumeLoader

func (VolumeLoader) Load

func (vl VolumeLoader) Load(force bool) error

Load initializes given target with the content of source-archive

Jump to

Keyboard shortcuts

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