Documentation ¶
Index ¶
- Constants
- func CheckFlag(key string) bool
- func DeleteFlag(key string) error
- func Explorer(url string, kp identity.KeyPair) (*client.Client, error)
- func ExplorerClient() (*client.Client, error)
- func Initialize()
- func IsFirstBoot(name string) bool
- func MarkBooted(name string) error
- func SampledLogger() zerolog.Logger
- func SetFlag(key string) error
Constants ¶
View Source
const (
// LimitedCache represent the flag cache couldn't mount on ssd or hdd
LimitedCache = "limited-cache"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteFlag ¶
DeleteFlag deletes (unsets) a given flag based on a key
func ExplorerClient ¶
ExplorerClient return the client to the explorer based on the environment configured in the kernel arguments
func IsFirstBoot ¶
IsFirstBoot checks if the a file has been created by MarkBooted function
func MarkBooted ¶
MarkBooted creates a file in a memory this file then can be used to check if "something" has been restared if its the first time it starts
func SampledLogger ¶ added in v0.4.9
SampledLogger return a sampled logger that allow 1 log entry per hour use this for logs used in loop when you do not want to overload the zint log ring buffer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.