utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2017 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyStream

func CopyStream(dst io.Writer, src io.Reader, prefix string)

func FileFromTar

func FileFromTar(name string, archive io.Reader) (io.Reader, error)

func TarFile

func TarFile(name string, contents io.Reader, size, mode int64) (io.Reader, error)

Types

type Container

type Container struct {
	Name       string
	Config     *container.Config
	HostConfig *container.HostConfig
	Docker     *docker.Client
	Err        *error
	// contains filtered or unexported fields
}

func (*Container) Create

func (c *Container) Create()

func (*Container) ID

func (c *Container) ID() string

func (*Container) Remove

func (c *Container) Remove()

func (*Container) RemoveAfterCopy

func (c *Container) RemoveAfterCopy(file *io.ReadCloser)

type FS

type FS struct{}

func (*FS) Abs

func (f *FS) Abs(path string) (string, error)

func (*FS) IsDirEmpty

func (f *FS) IsDirEmpty(path string) (bool, error)

func (*FS) MakeDirAll

func (f *FS) MakeDirAll(path string) error

func (*FS) ReadFile

func (f *FS) ReadFile(path string) (io.ReadCloser, int64, error)

func (*FS) Tar

func (f *FS) Tar(path string) (io.ReadCloser, error)

func (*FS) WriteFile

func (f *FS) WriteFile(path string) (io.WriteCloser, error)

Jump to

Keyboard shortcuts

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