2017-01-10 21:49:14 +00:00
|
|
|
// Automatically generated by mockimpl. DO NOT EDIT!
|
|
|
|
|
|
|
|
package mock
|
|
|
|
|
2020-11-11 17:59:12 +00:00
|
|
|
import "github.com/fleetdm/fleet/server/kolide"
|
2017-01-10 21:49:14 +00:00
|
|
|
|
|
|
|
var _ kolide.AppConfigStore = (*AppConfigStore)(nil)
|
|
|
|
|
|
|
|
type NewAppConfigFunc func(info *kolide.AppConfig) (*kolide.AppConfig, error)
|
|
|
|
|
|
|
|
type AppConfigFunc func() (*kolide.AppConfig, error)
|
|
|
|
|
|
|
|
type SaveAppConfigFunc func(info *kolide.AppConfig) error
|
|
|
|
|
2020-05-29 16:12:39 +00:00
|
|
|
type VerifyEnrollSecretFunc func(secret string) (string, error)
|
|
|
|
|
|
|
|
type ApplyEnrollSecretSpecFunc func(spec *kolide.EnrollSecretSpec) error
|
|
|
|
|
|
|
|
type GetEnrollSecretSpecFunc func() (*kolide.EnrollSecretSpec, error)
|
|
|
|
|
2017-01-10 21:49:14 +00:00
|
|
|
type AppConfigStore struct {
|
|
|
|
NewAppConfigFunc NewAppConfigFunc
|
|
|
|
NewAppConfigFuncInvoked bool
|
|
|
|
|
|
|
|
AppConfigFunc AppConfigFunc
|
|
|
|
AppConfigFuncInvoked bool
|
|
|
|
|
|
|
|
SaveAppConfigFunc SaveAppConfigFunc
|
|
|
|
SaveAppConfigFuncInvoked bool
|
2020-05-29 16:12:39 +00:00
|
|
|
|
|
|
|
VerifyEnrollSecretFunc VerifyEnrollSecretFunc
|
|
|
|
VerifyEnrollSecretFuncInvoked bool
|
|
|
|
|
|
|
|
ApplyEnrollSecretSpecFunc ApplyEnrollSecretSpecFunc
|
|
|
|
ApplyEnrollSecretSpecFuncInvoked bool
|
|
|
|
|
|
|
|
GetEnrollSecretSpecFunc GetEnrollSecretSpecFunc
|
|
|
|
GetEnrollSecretSpecFuncInvoked bool
|
2017-01-10 21:49:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *AppConfigStore) NewAppConfig(info *kolide.AppConfig) (*kolide.AppConfig, error) {
|
|
|
|
s.NewAppConfigFuncInvoked = true
|
|
|
|
return s.NewAppConfigFunc(info)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *AppConfigStore) AppConfig() (*kolide.AppConfig, error) {
|
|
|
|
s.AppConfigFuncInvoked = true
|
|
|
|
return s.AppConfigFunc()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *AppConfigStore) SaveAppConfig(info *kolide.AppConfig) error {
|
|
|
|
s.SaveAppConfigFuncInvoked = true
|
|
|
|
return s.SaveAppConfigFunc(info)
|
|
|
|
}
|
2020-05-29 16:12:39 +00:00
|
|
|
|
|
|
|
func (s *AppConfigStore) VerifyEnrollSecret(secret string) (string, error) {
|
|
|
|
s.VerifyEnrollSecretFuncInvoked = true
|
|
|
|
return s.VerifyEnrollSecretFunc(secret)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *AppConfigStore) ApplyEnrollSecretSpec(spec *kolide.EnrollSecretSpec) error {
|
|
|
|
s.ApplyEnrollSecretSpecFuncInvoked = true
|
|
|
|
return s.ApplyEnrollSecretSpecFunc(spec)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *AppConfigStore) GetEnrollSecretSpec() (*kolide.EnrollSecretSpec, error) {
|
|
|
|
s.GetEnrollSecretSpecFuncInvoked = true
|
|
|
|
return s.GetEnrollSecretSpecFunc()
|
|
|
|
}
|