Documentation ¶
Index ¶
- type Fs
- func (s *Fs) Add(r *provision.Reservation) error
- func (s *Fs) Close() error
- func (s *Fs) Exists(id string) (bool, error)
- func (s *Fs) Get(id string) (*provision.Reservation, error)
- func (s *Fs) GetExpired() ([]*provision.Reservation, error)
- func (s *Fs) NetworkExists(id string) (bool, error)
- func (s *Fs) Remove(id string) error
- func (s *Fs) Sync(statser provision.Statser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fs ¶
Fs is a in reservation cache using the filesystem as backend
func NewFSStore ¶
NewFSStore creates a in memory reservation store
func (*Fs) Get ¶
func (s *Fs) Get(id string) (*provision.Reservation, error)
Get retrieves a specific reservation using its ID if returns a non nil error if the reservation is not present in the store
func (*Fs) GetExpired ¶
func (s *Fs) GetExpired() ([]*provision.Reservation, error)
GetExpired returns all id the the reservations that are expired at the time of the function call
func (*Fs) NetworkExists ¶ added in v0.4.0
NetworkExists exists checks if a network exists in cache already
Click to show internal directories.
Click to hide internal directories.