Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VersionCache ¶
type VersionCache struct {
// contains filtered or unexported fields
}
func NewVersionCache ¶
func NewVersionCache(f func() (kubecontainer.Version, kubecontainer.Version, error)) *VersionCache
func (*VersionCache) Get ¶
func (c *VersionCache) Get(key string) (kubecontainer.Version, kubecontainer.Version, error)
Get gets cached versionInfo by using a unique string (e.g. machineInfo) as the key. It returns apiVersion first and followed by daemon version.
func (*VersionCache) Update ¶
func (c *VersionCache) Update(key string)
Update updates cached versionInfo by using a unique string (e.g. machineInfo) as the key.
func (*VersionCache) UpdateCachePeriodly ¶
func (c *VersionCache) UpdateCachePeriodly(key string)
Click to show internal directories.
Click to hide internal directories.