cache

package
v1.3.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

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

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)

Jump to

Keyboard shortcuts

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