werf

package
v1.2.275 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func AcquireHostLock

func AcquireHostLock(ctx context.Context, lockName string, opts lockgate.AcquireOptions) (bool, lockgate.LockHandle, error)

func DefaultLockerOnLostLease

func DefaultLockerOnLostLease(lock lockgate.LockHandle) error

func DefaultLockerOnWait

func DefaultLockerOnWait(ctx context.Context) func(lockName string, doWait func() error) error

func GetHomeDir

func GetHomeDir() string

func GetHostLocker

func GetHostLocker() lockgate.Locker

func GetLocalCacheDir

func GetLocalCacheDir() string

func GetServiceDir

func GetServiceDir() string

func GetSharedContextDir

func GetSharedContextDir() string

func GetStagesStorageCacheDir

func GetStagesStorageCacheDir() string

func GetTmpDir

func GetTmpDir() string

func GetWerfFirstRunAt added in v1.1.24

func GetWerfFirstRunAt(ctx context.Context) (time.Time, error)

func GetWerfLastRunAtV1_1 added in v1.2.11

func GetWerfLastRunAtV1_1(ctx context.Context) (time.Time, error)

func Init

func Init(tmpDirOption, homeDirOption string) error

func ReleaseHostLock

func ReleaseHostLock(lock lockgate.LockHandle) error

func SetWerfFirstRunAt added in v1.1.24

func SetWerfFirstRunAt(ctx context.Context) error

func SetWerfLastRunAt added in v1.1.24

func SetWerfLastRunAt(ctx context.Context) error

func WithHostLock

func WithHostLock(ctx context.Context, lockName string, opts lockgate.AcquireOptions, f func() error) error

Types

type StagedDockerfileVersion added in v1.2.236

type StagedDockerfileVersion string
const (
	StagedDockerfileV1 StagedDockerfileVersion = "StagedDockerfileV1"
	StagedDockerfileV2 StagedDockerfileVersion = "StagedDockerfileV2"
)

func GetStagedDockerfileVersion added in v1.2.236

func GetStagedDockerfileVersion() StagedDockerfileVersion

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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