volume

package
v1.3.95 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package volume implements the docker host-container volume mounting

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src string, dst string) error

Copy copies a resource from src to dest

func DefaultCacheDirHost

func DefaultCacheDirHost() (string, error)

DefaultCacheDirHost returns the default cache dir on the host

func DefaultWorkDirHost

func DefaultWorkDirHost() (string, error)

DefaultWorkDirHost returns the default work dir on the host

func JoinPathContainer

func JoinPathContainer(elem ...string) string

JoinPathContainer joins any number of path elements into a single path, separating them with the Container OS specific Separator.

func JoinPathHost

func JoinPathHost(elem ...string) string

JoinPathHost joins any number of path elements into a single path, separating them with the Host OS specific Separator.

func Zip

func Zip(source string, archive string) error

Zip compress the source file into a zip archive

Types

type Volume

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

Volume represents the fyne-cross projec layout

func Mount

func Mount(workDirHost string, cacheDirHost string) (Volume, error)

Mount mounts the host folder into the container.

func (Volume) BinDirContainer

func (l Volume) BinDirContainer() string

BinDirContainer returns the fyne-cross bin dir on the container

func (Volume) BinDirHost

func (l Volume) BinDirHost() string

BinDirHost returns the fyne-cross bin dir on the host

func (Volume) CacheDirContainer

func (l Volume) CacheDirContainer() string

CacheDirContainer returns the fyne-cross cache dir on the container

func (Volume) CacheDirHost

func (l Volume) CacheDirHost() string

CacheDirHost returns the fyne-cross cache dir on the host

func (Volume) DistDirContainer

func (l Volume) DistDirContainer() string

DistDirContainer returns the fyne-cross distribution dir on the container

func (Volume) DistDirHost

func (l Volume) DistDirHost() string

DistDirHost returns the fyne-cross distribution dir on the host

func (Volume) GoCacheDirContainer

func (l Volume) GoCacheDirContainer() string

GoCacheDirContainer returns the fyne-cross Go cache dir on the container

func (Volume) TmpDirContainer

func (l Volume) TmpDirContainer() string

TmpDirContainer returns the fyne-cross temporary dir on the container

func (Volume) TmpDirHost

func (l Volume) TmpDirHost() string

TmpDirHost returns the fyne-cross temporary dir on the host

func (Volume) WorkDirContainer

func (l Volume) WorkDirContainer() string

WorkDirContainer returns the working dir on the host

func (Volume) WorkDirHost

func (l Volume) WorkDirHost() string

WorkDirHost returns the working dir on the host

Jump to

Keyboard shortcuts

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