util

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the blessclient version
	Version = "undefined"
	// GitSha is the gitsha used to build this version
	GitSha = "undefined"
	// Release is true if this is a release
	Release = "false"
	// Dirty if git is dirty
	Dirty = "true"
)

Functions

func VersionCacheKey

func VersionCacheKey() string

VersionCacheKey returns a key to version the cache

func VersionString

func VersionString() (string, error)

VersionString returns the version string

Types

type Lock added in v0.3.2

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

Lock represents a pid lock

func NewLock added in v0.3.2

func NewLock(configPath string) (*Lock, error)

NewLock returns a new lock

func (*Lock) Lock added in v0.3.2

func (l *Lock) Lock(optBackoff ...backoff.BackOff) error

Lock will lock with retries.

func (*Lock) Unlock added in v0.3.2

func (l *Lock) Unlock() error

Unlock will unlock the pid lockfile

Jump to

Keyboard shortcuts

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