common

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerDir             = "Docker"
	TaubyteDir            = ".taubyte"
	DepreciatedTaubyteDir = "taubyte"
	Dockerfile            = "Dockerfile"
	ScriptExtension       = ".sh"
	ConfigFile            = "config.yaml"
)

Variables

View Source
var (
	ImageCleanInterval = 24 * time.Hour
	ImageCleanAge      = 7 * ImageCleanInterval
	DefaultTime        = time.Unix(0, 0)
)

Functions

func DefaultWDError

func DefaultWDError(err error) error

func ExtraVolumes

func ExtraVolumes(wd string, volumes ...ExtraVolume) ([]ci.ContainerOption, error)

func Wd

func Wd(workDir string) (*dir, error)

Types

type ExtraVolume

type ExtraVolume struct {
	SourcePath                       string
	ContainerPath                    string
	SourceIsRelativeToBuildDirectory bool
}

Jump to

Keyboard shortcuts

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