Documentation
¶
Index ¶
Constants ¶
View Source
const RefreshFailureTime time.Duration = 60 * time.Second // This controls how often we try to get a look at a failed flavor
View Source
const StaledTime time.Duration = 300 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Get ¶
func (fc *Cache) Get(osService openStackInstanceService, flavorName string) (*flavors.Flavor, error)
Get returns flavor information, or an error, as retrieved less than ${cache-ttl} ago. The cache TTL is different for successful and unsuccessful results; see StaledTime and RefreshFailureTime above.
Click to show internal directories.
Click to hide internal directories.