mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
chore: generate mocks
This commit is contained in:
parent
6437057958
commit
93493d8ba3
1 changed files with 12 additions and 0 deletions
|
|
@ -821,6 +821,8 @@ type MDMAppleStoreDDMStatusReportFunc func(ctx context.Context, hostUUID string,
|
|||
|
||||
type MDMAppleSetPendingDeclarationsAsFunc func(ctx context.Context, hostUUID string, status *fleet.MDMDeliveryStatus, detail string) error
|
||||
|
||||
type InsertMDMConfigAssetsFunc func(ctx context.Context, assets []fleet.MDMConfigAsset) error
|
||||
|
||||
type WSTEPStoreCertificateFunc func(ctx context.Context, name string, crt *x509.Certificate) error
|
||||
|
||||
type WSTEPNewSerialFunc func(ctx context.Context) (*big.Int, error)
|
||||
|
|
@ -2157,6 +2159,9 @@ type DataStore struct {
|
|||
MDMAppleSetPendingDeclarationsAsFunc MDMAppleSetPendingDeclarationsAsFunc
|
||||
MDMAppleSetPendingDeclarationsAsFuncInvoked bool
|
||||
|
||||
InsertMDMConfigAssetsFunc InsertMDMConfigAssetsFunc
|
||||
InsertMDMConfigAssetsFuncInvoked bool
|
||||
|
||||
WSTEPStoreCertificateFunc WSTEPStoreCertificateFunc
|
||||
WSTEPStoreCertificateFuncInvoked bool
|
||||
|
||||
|
|
@ -5165,6 +5170,13 @@ func (s *DataStore) MDMAppleSetPendingDeclarationsAs(ctx context.Context, hostUU
|
|||
return s.MDMAppleSetPendingDeclarationsAsFunc(ctx, hostUUID, status, detail)
|
||||
}
|
||||
|
||||
func (s *DataStore) InsertMDMConfigAssets(ctx context.Context, assets []fleet.MDMConfigAsset) error {
|
||||
s.mu.Lock()
|
||||
s.InsertMDMConfigAssetsFuncInvoked = true
|
||||
s.mu.Unlock()
|
||||
return s.InsertMDMConfigAssetsFunc(ctx, assets)
|
||||
}
|
||||
|
||||
func (s *DataStore) WSTEPStoreCertificate(ctx context.Context, name string, crt *x509.Certificate) error {
|
||||
s.mu.Lock()
|
||||
s.WSTEPStoreCertificateFuncInvoked = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue