Documentation
¶
Index ¶
- type InstanceEntry
- type Store
- func (s *Store) Close() error
- func (s *Store) CreateInstance(instance core.Instance, event core.InstanceEvent) error
- func (s *Store) DeleteReservation(id string) error
- func (s *Store) DestroyInstanceBucket(id string) error
- func (s *Store) Init() error
- func (s *Store) LoadInstances() ([]InstanceEntry, error)
- func (s *Store) LoadReservations() ([]structs.Reservation, error)
- func (s *Store) PutReservation(r structs.Reservation) error
- func (s *Store) SetLastReportedEventId(instanceId string, eventId ulid.ULID) error
- func (s *Store) UpdateInstance(instance core.Instance, event core.InstanceEvent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceEntry ¶
type InstanceEntry struct { Instance core.Instance LastEvent core.InstanceEvent UnreportedEvents []core.InstanceEvent }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateInstance ¶
func (*Store) DeleteReservation ¶
func (*Store) DestroyInstanceBucket ¶
func (*Store) LoadInstances ¶
func (s *Store) LoadInstances() ([]InstanceEntry, error)
func (*Store) LoadReservations ¶
func (s *Store) LoadReservations() ([]structs.Reservation, error)
func (*Store) PutReservation ¶
func (s *Store) PutReservation(r structs.Reservation) error
func (*Store) SetLastReportedEventId ¶ added in v0.0.2
func (*Store) UpdateInstance ¶
Click to show internal directories.
Click to hide internal directories.