mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
#23905
- Update with upstream nanomdm changes up to
825f2979a2
- Removed PostgeSQL folder from our nanomdm
- Added nanomdm MySQL test job to our CI
# Checklist for submitter
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
29 lines
638 B
Go
29 lines
638 B
Go
// Automatically generated by mockimpl. DO NOT EDIT!
|
|
|
|
package mock
|
|
|
|
import (
|
|
"context"
|
|
"sync"
|
|
|
|
"github.com/fleetdm/fleet/v4/server/mdm/nanomdm/mdm"
|
|
"github.com/fleetdm/fleet/v4/server/mdm/nanomdm/push"
|
|
)
|
|
|
|
var _ push.PushProvider = (*APNSPushProvider)(nil)
|
|
|
|
type PushFunc func(p0 context.Context, p1 []*mdm.Push) (map[string]*push.Response, error)
|
|
|
|
type APNSPushProvider struct {
|
|
PushFunc PushFunc
|
|
PushFuncInvoked bool
|
|
|
|
mu sync.Mutex
|
|
}
|
|
|
|
func (s *APNSPushProvider) Push(p0 context.Context, p1 []*mdm.Push) (map[string]*push.Response, error) {
|
|
s.mu.Lock()
|
|
s.PushFuncInvoked = true
|
|
s.mu.Unlock()
|
|
return s.PushFunc(p0, p1)
|
|
}
|