app

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 12 Imported by: 9

Documentation

Index

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 CheckFlag

func CheckFlag(key string) bool

CheckFlag checks the status of a flag based on a key

func DeleteFlag

func DeleteFlag(key string) error

DeleteFlag deletes (unsets) a given flag based on a key

func ExplorerClient

func ExplorerClient() (*client.Client, error)

ExplorerClient return the client to the explorer based on the environment configured in the kernel arguments

func Initialize

func Initialize()

Initialize Configure a zos app

func IsFirstBoot

func IsFirstBoot(name string) bool

IsFirstBoot checks if the a file has been created by MarkBooted function

func MarkBooted

func MarkBooted(name string) error

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

func SampledLogger() zerolog.Logger

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

func SetFlag

func SetFlag(key string) error

SetFlag is used when the /var/cache cannot be mounted on a SSD or HDD, it will mount the cache disk on a temporary file system in memory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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