Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEscapedPath ¶ added in v0.7.0
Types ¶
type FileLock ¶
type FileLock struct {
// contains filtered or unexported fields
}
FileLock wraps os.File to be used as a lock using flock
func NewFileLock ¶
NewFileLock opens file/dir at path and returns unlocked FileLock object
type Store ¶
type Store struct { *FileLock // contains filtered or unexported fields }
Store is a simple disk-backed store that creates one file per IP address in a given directory. The contents of the file are the container ID.
func (*Store) LastReservedIP ¶ added in v0.6.0
LastReservedIP returns the last reserved IP if exists
func (*Store) ReleaseByID ¶
N.B. This function eats errors to be tolerant and release as much as possible
Click to show internal directories.
Click to hide internal directories.