2021-04-26 15:44:22 +00:00
|
|
|
// Automatically generated by mockimpl. DO NOT EDIT!
|
|
|
|
|
|
|
|
package mock
|
|
|
|
|
2021-06-26 04:46:51 +00:00
|
|
|
import "github.com/fleetdm/fleet/v4/server/fleet"
|
2021-04-26 15:44:22 +00:00
|
|
|
|
2021-06-06 22:07:29 +00:00
|
|
|
var _ fleet.SoftwareStore = (*SoftwareStore)(nil)
|
2021-04-26 15:44:22 +00:00
|
|
|
|
2021-06-06 22:07:29 +00:00
|
|
|
type SaveHostSoftwareFunc func(host *fleet.Host) error
|
2021-04-26 15:44:22 +00:00
|
|
|
|
2021-06-06 22:07:29 +00:00
|
|
|
type LoadHostSoftwareFunc func(host *fleet.Host) error
|
2021-04-26 15:44:22 +00:00
|
|
|
|
|
|
|
type SoftwareStore struct {
|
|
|
|
SaveHostSoftwareFunc SaveHostSoftwareFunc
|
|
|
|
SaveHostSoftwareFuncInvoked bool
|
|
|
|
|
|
|
|
LoadHostSoftwareFunc LoadHostSoftwareFunc
|
|
|
|
LoadHostSoftwareFuncInvoked bool
|
|
|
|
}
|
|
|
|
|
2021-06-06 22:07:29 +00:00
|
|
|
func (s *SoftwareStore) SaveHostSoftware(host *fleet.Host) error {
|
2021-04-26 15:44:22 +00:00
|
|
|
s.SaveHostSoftwareFuncInvoked = true
|
|
|
|
return s.SaveHostSoftwareFunc(host)
|
|
|
|
}
|
|
|
|
|
2021-06-06 22:07:29 +00:00
|
|
|
func (s *SoftwareStore) LoadHostSoftware(host *fleet.Host) error {
|
2021-04-26 15:44:22 +00:00
|
|
|
s.LoadHostSoftwareFuncInvoked = true
|
|
|
|
return s.LoadHostSoftwareFunc(host)
|
|
|
|
}
|