fleet/server/mock/datastore.go
Zachary Wasserman d7cd91c0e4 Retrieve and store host checkin intervals (#1473)
We now track the `config_tls_refresh`, `distributed_interval` and
`logger_tls_period` flag values for each host. Each value is updated by a
detail query agains the `osquery_flags` table, because they may be specified
outside of Kolide. The flags that can be specified within Kolide are also
updated when a config is returned to the host that changes their value.

This will enable us to do a more accurate per-host online status calculation as
discussed in #1419.
2017-04-06 11:55:24 -07:00

52 lines
1.5 KiB
Go

package mock
//go:generate mockimpl -o datastore_users.go "s *UserStore" "kolide.UserStore"
//go:generate mockimpl -o datastore_invites.go "s *InviteStore" "kolide.InviteStore"
//go:generate mockimpl -o datastore_appconfig.go "s *AppConfigStore" "kolide.AppConfigStore"
//go:generate mockimpl -o datastore_licenses.go "s *LicenseStore" "kolide.LicenseStore"
//go:generate mockimpl -o datastore_labels.go "s *LabelStore" "kolide.LabelStore"
//go:generate mockimpl -o datastore_decorators.go "s *DecoratorStore" "kolide.DecoratorStore"
//go:generate mockimpl -o datastore_options.go "s *OptionStore" "kolide.OptionStore"
//go:generate mockimpl -o datastore_packs.go "s *PackStore" "kolide.PackStore"
//go:generate mockimpl -o datastore_hosts.go "s *HostStore" "kolide.HostStore"
import "github.com/kolide/kolide/server/kolide"
var _ kolide.Datastore = (*Store)(nil)
type Store struct {
kolide.CampaignStore
kolide.SessionStore
kolide.PasswordResetStore
kolide.QueryStore
kolide.ScheduledQueryStore
kolide.FileIntegrityMonitoringStore
kolide.YARAStore
kolide.TargetStore
AppConfigStore
DecoratorStore
HostStore
InviteStore
LabelStore
LicenseStore
OptionStore
PackStore
UserStore
}
func (m *Store) Drop() error {
return nil
}
func (m *Store) MigrateTables() error {
return nil
}
func (m *Store) MigrateData() error {
return nil
}
func (m *Store) MigrationStatus() (kolide.MigrationStatus, error) {
return 0, nil
}
func (m *Store) Name() string {
return "mock"
}