Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseImagePathToVolumeID

func BaseImagePathToVolumeID(baseImagePath string) string

func CreateBaseImage

func CreateBaseImage(rootUID, rootGID, grootUID, grootGID int) string

func CreateBaseImageTar

func CreateBaseImageTar(sourcePath string) *os.File

func CreateFakeBin

func CreateFakeBin(binaryName string) (string, *os.File, *os.File)

func CreateFakeDrax

func CreateFakeDrax() (string, *os.File, *os.File)

func CreateFakeTardis

func CreateFakeTardis() (string, *os.File, *os.File)

func FindGID

func FindGID(group string) uint32

func FindUID

func FindUID(user string) uint32

func MakeBinaryAccessibleToEveryone

func MakeBinaryAccessibleToEveryone(binaryPath string) string

func SkipIfNonRoot

func SkipIfNonRoot(uid int)

func SkipIfNotBTRFS

func SkipIfNotBTRFS(driver string)

func SkipIfNotXFS

func SkipIfNotXFS(driver string)

func SkipIfRoot

func SkipIfRoot(uid int)

func String2URL

func String2URL(s string) *url.URL

func UpdateBaseImageTar

func UpdateBaseImageTar(tarPath, sourcePath string)

Types

type CustomRoundTripper

type CustomRoundTripper struct {
	RoundTripFn func(req *http.Request) (*http.Response, error)
}

func (*CustomRoundTripper) RoundTrip

func (r *CustomRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

Source Files

Directories

Path Synopsis