Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned when entry hasn't been found on the cache.
Functions ¶
Types ¶
type Cache ¶
Cache manages information about Nodes.
func (*Cache) Get ¶
func (c *Cache) Get(node string) (CacheEntry, error)
Get returns the information about node, or error if not found or failed to unmarshall the data.
type CacheEntry ¶
type CacheEntry struct { Instance string `json:"instance"` IPAddress string `json:"ip"` LastSeen time.Time `json:"seen"` LastMarkedForTermination time.Time `json:"marked"` }
CacheEntry constains information about a Node.
type ReconcileNodes ¶
type ReconcileNodes struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.