Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DaemonContainerBucket is the name of the bucket where the ids of daemon containers are cached DaemonContainerBucket = "DaemonContainerCache" // ContainerIDTTL represents the time after that a daemon container will be renewed ContainerIDTTL = 10 * time.Minute )
View Source
var ( // RegistryBucket is the name of the bucket where local versions are cached RegistryBucket = "registryUpdateCache" // RegistryTTL represents the ttl after that a registry will be seen as outdated and will be updated RegistryTTL = 3 * time.Hour )
View Source
var ( // LocalVersionBucket is the name of the bucket where local versions are cached LocalVersionBucket = "localVersionCache" // RemoteVersionBucket is the name of the bucket where remote versions are cached RemoteVersionBucket = "remoteVersionCache" // RemoteTimeToLive is the duration that remote versions are valid. // Effectively this means we will check after the duration if a new version is available RemoteTimeToLive = 12 * time.Hour // LocalTimeToLive is the duration that local versions are valid. // Effectively this means we will check after the duration if a new version is available LocalTimeToLive = 1 * time.Minute )
View Source
var ( // ErrorNameRequired will be thrown, if Cache Entry key "Name" not set ErrorNameRequired = errors.New("Cache Entry Name not set") )
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container represents the container cache. If the tool is daemonized then it can be that the daemon is already running. Normally it is then cached in the database. This provides a fast way to detect running daemons to a certain degree
func (*Container) Clear ¶
Clear will clear the entry of the given tool. This is useful if you want to clear things
func (*Container) CurrentDaemons ¶
CurrentDaemons will return all currently cached daemon tools. Useful to kill all currently running daemons.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry will store the time when the registry was updated the last time
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version is the struct to work with cached versions
Click to show internal directories.
Click to hide internal directories.