Documentation ¶
Index ¶
Constants ¶
View Source
const ( AddressEnv = "CFT_BEACON_ADDR" LockFileEnv = "CFT_LOCKFILE" IdentifierEnv = "CFT_IDENTIFIER" NamespaceEnv = "CFT_NAMESPACE" ResourcePolicyEnv = "CFT_RESOURCE_POLICY" )
View Source
const ( ResourcePolicyError = "error" ResourcePolicyReuse = "reuse" ResourcePolicyReusable = "reusable" ResourcePolicyTakeOver = "takeover" )
View Source
const (
LabelIdentifier = "daichitakahashi.confort.beacon.identifier"
)
View Source
const LockFile = ".confort.lock"
LockFile is default file name of lock file.
Variables ¶
This section is empty.
Functions ¶
func Address ¶
Address returns address of beacon server. It returns value of CFT_BEACON_ADDR if exists. If not exists, read from lockFile.
func DeleteLockFile ¶
func Identifier ¶ added in v0.3.0
func LockFilePath ¶
func LockFilePath() string
LockFilePath returns file name of lock file. If CFT_LOCKFILE is set, return its value, or else return LockFile.
func StoreAddressToLockFile ¶
func ValidResourcePolicy ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.