Documentation ¶
Index ¶
- type Redis
- func (s *Redis) Add(r *provision.Reservation) error
- func (s *Redis) ClearByType(types []provision.ReservationType) error
- func (s *Redis) Close() error
- func (s *Redis) Exists(id string) (bool, error)
- func (s *Redis) Get(id string) (*provision.Reservation, error)
- func (s *Redis) GetExpired() ([]*provision.Reservation, error)
- func (s *Redis) NetworkExists(_ string) (bool, error)
- func (s *Redis) Remove(id string) error
- func (s *Redis) Sync(statser provision.Statser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
Redis is a in reservation cache using the filesystem as backend
func (*Redis) Add ¶
func (s *Redis) Add(r *provision.Reservation) error
Add a reservation to the store
func (*Redis) ClearByType ¶
func (s *Redis) ClearByType(types []provision.ReservationType) error
ClearByType remove all the reservation of a certain type from the cache
func (*Redis) Get ¶
func (s *Redis) 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 (*Redis) GetExpired ¶
func (s *Redis) GetExpired() ([]*provision.Reservation, error)
GetExpired returns all id the the reservations that are expired at the time of the function call
func (*Redis) NetworkExists ¶
NetworkExists is just there to satisfy the github.com/threefoldtech/zos/pkg/provision.ReservationCache interface
Click to show internal directories.
Click to hide internal directories.