run

package
v0.0.0-...-977168f Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedToCopyFile = errors.New("failed to copy file")
View Source
var ErrFailedToCreateRepository = errors.New("failed to create repository")
View Source
var ErrFailedToGetRepository = errors.New("failed to get repository")
View Source
var ErrFailedToGetTreeID = errors.New("failed to get empty tree id")
View Source
var ErrFailedToOpen = errors.New("failed to open Bockerfile")
View Source
var ErrFailedToParse = errors.New("failed to parse Bockerfile")
View Source
var ErrFailedToParseInstruction = errors.New("failed to parse Bockerfile instruction")
View Source
var ErrUnsupportedCommand = errors.New("command not supported")

Functions

func CopyDir

func CopyDir(src string, dst string) (err error)

CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.

func CopyFile

func CopyFile(src, dst string) (err error)

CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.

func Run

func Run(filename string, conf *config.Config) (string, error)

Types

type Metadata

type Metadata struct {
	Maintainer string
	TreeHash   string
}

Jump to

Keyboard shortcuts

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