// Automatically generated by mockimpl. DO NOT EDIT! package mock import ( "context" "crypto/x509" "database/sql" "encoding/json" "math/big" "sync" "time" "github.com/fleetdm/fleet/v4/ee/server/service/hostidentity/types" "github.com/fleetdm/fleet/v4/server/config" "github.com/fleetdm/fleet/v4/server/fleet" "github.com/fleetdm/fleet/v4/server/mdm/android" "github.com/fleetdm/fleet/v4/server/mdm/apple/mobileconfig" "github.com/fleetdm/fleet/v4/server/mdm/nanodep/godep" "github.com/fleetdm/fleet/v4/server/mdm/nanomdm/mdm" "github.com/jmoiron/sqlx" ) var _ fleet.Datastore = (*DataStore)(nil) type AppConfigFunc func(ctx context.Context) (*fleet.AppConfig, error) type InsertMDMConfigAssetsFunc func(ctx context.Context, assets []fleet.MDMConfigAsset, tx sqlx.ExtContext) error type InsertOrReplaceMDMConfigAssetFunc func(ctx context.Context, asset fleet.MDMConfigAsset) error type GetAllMDMConfigAssetsByNameFunc func(ctx context.Context, assetNames []fleet.MDMAssetName, queryerContext sqlx.QueryerContext) (map[fleet.MDMAssetName]fleet.MDMConfigAsset, error) type GetAllMDMConfigAssetsHashesFunc func(ctx context.Context, assetNames []fleet.MDMAssetName) (map[fleet.MDMAssetName]string, error) type DeleteMDMConfigAssetsByNameFunc func(ctx context.Context, assetNames []fleet.MDMAssetName) error type HardDeleteMDMConfigAssetFunc func(ctx context.Context, assetName fleet.MDMAssetName) error type ReplaceMDMConfigAssetsFunc func(ctx context.Context, assets []fleet.MDMConfigAsset, tx sqlx.ExtContext) error type GetAllCAConfigAssetsByTypeFunc func(ctx context.Context, assetType fleet.CAConfigAssetType) (map[string]fleet.CAConfigAsset, error) type HealthCheckFunc func() error type NewCarveFunc func(ctx context.Context, metadata *fleet.CarveMetadata) (*fleet.CarveMetadata, error) type UpdateCarveFunc func(ctx context.Context, metadata *fleet.CarveMetadata) error type CarveFunc func(ctx context.Context, carveId int64) (*fleet.CarveMetadata, error) type CarveBySessionIdFunc func(ctx context.Context, sessionId string) (*fleet.CarveMetadata, error) type CarveByNameFunc func(ctx context.Context, name string) (*fleet.CarveMetadata, error) type ListCarvesFunc func(ctx context.Context, opt fleet.CarveListOptions) ([]*fleet.CarveMetadata, error) type NewBlockFunc func(ctx context.Context, metadata *fleet.CarveMetadata, blockId int64, data []byte) error type GetBlockFunc func(ctx context.Context, metadata *fleet.CarveMetadata, blockId int64) ([]byte, error) type CleanupCarvesFunc func(ctx context.Context, now time.Time) (expired int, err error) type NewUserFunc func(ctx context.Context, user *fleet.User) (*fleet.User, error) type HasUsersFunc func(ctx context.Context) (bool, error) type ListUsersFunc func(ctx context.Context, opt fleet.UserListOptions) ([]*fleet.User, error) type UsersByIDsFunc func(ctx context.Context, ids []uint) ([]*fleet.UserSummary, error) type UserByEmailFunc func(ctx context.Context, email string) (*fleet.User, error) type UserByIDFunc func(ctx context.Context, id uint) (*fleet.User, error) type UserOrDeletedUserByIDFunc func(ctx context.Context, id uint) (*fleet.User, error) type SaveUserFunc func(ctx context.Context, user *fleet.User) error type SaveUsersFunc func(ctx context.Context, users []*fleet.User) error type DeleteUserFunc func(ctx context.Context, id uint) error type CountGlobalAdminsFunc func(ctx context.Context) (int, error) type PendingEmailChangeFunc func(ctx context.Context, userID uint, newEmail string, token string) error type ConfirmPendingEmailChangeFunc func(ctx context.Context, userID uint, token string) (string, error) type UserSettingsFunc func(ctx context.Context, userID uint) (*fleet.UserSettings, error) type ApplyQueriesFunc func(ctx context.Context, authorID uint, queries []*fleet.Query, queriesToDiscardResults map[uint]struct{}) error type NewQueryFunc func(ctx context.Context, query *fleet.Query, opts ...fleet.OptionalArg) (*fleet.Query, error) type SaveQueryFunc func(ctx context.Context, query *fleet.Query, shouldDiscardResults bool, shouldDeleteStats bool) error type DeleteQueryFunc func(ctx context.Context, teamID *uint, name string) error type DeleteQueriesFunc func(ctx context.Context, ids []uint) (uint, error) type QueryFunc func(ctx context.Context, id uint) (*fleet.Query, error) type ListQueriesFunc func(ctx context.Context, opt fleet.ListQueryOptions) ([]*fleet.Query, int, int, *fleet.PaginationMetadata, error) type ListScheduledQueriesForAgentsFunc func(ctx context.Context, teamID *uint, hostID *uint, queryReportsDisabled bool) ([]*fleet.Query, error) type QueryByNameFunc func(ctx context.Context, teamID *uint, name string) (*fleet.Query, error) type ObserverCanRunQueryFunc func(ctx context.Context, queryID uint) (bool, error) type CleanupGlobalDiscardQueryResultsFunc func(ctx context.Context) error type IsSavedQueryFunc func(ctx context.Context, queryID uint) (bool, error) type GetLiveQueryStatsFunc func(ctx context.Context, queryID uint, hostIDs []uint) ([]*fleet.LiveQueryStats, error) type UpdateLiveQueryStatsFunc func(ctx context.Context, queryID uint, stats []*fleet.LiveQueryStats) error type CalculateAggregatedPerfStatsPercentilesFunc func(ctx context.Context, aggregate fleet.AggregatedStatsType, queryID uint) error type NewDistributedQueryCampaignFunc func(ctx context.Context, camp *fleet.DistributedQueryCampaign) (*fleet.DistributedQueryCampaign, error) type DistributedQueryCampaignFunc func(ctx context.Context, id uint) (*fleet.DistributedQueryCampaign, error) type SaveDistributedQueryCampaignFunc func(ctx context.Context, camp *fleet.DistributedQueryCampaign) error type DistributedQueryCampaignTargetIDsFunc func(ctx context.Context, id uint) (targets *fleet.HostTargets, err error) type NewDistributedQueryCampaignTargetFunc func(ctx context.Context, target *fleet.DistributedQueryCampaignTarget) (*fleet.DistributedQueryCampaignTarget, error) type CleanupDistributedQueryCampaignsFunc func(ctx context.Context, now time.Time) (expired uint, err error) type CleanupCompletedCampaignTargetsFunc func(ctx context.Context, olderThan time.Time) (deleted uint, err error) type GetCompletedCampaignsFunc func(ctx context.Context, filter []uint) ([]uint, error) type DistributedQueryCampaignsForQueryFunc func(ctx context.Context, queryID uint) ([]*fleet.DistributedQueryCampaign, error) type ApplyPackSpecsFunc func(ctx context.Context, specs []*fleet.PackSpec) error type GetPackSpecsFunc func(ctx context.Context) ([]*fleet.PackSpec, error) type GetPackSpecFunc func(ctx context.Context, name string) (*fleet.PackSpec, error) type NewPackFunc func(ctx context.Context, pack *fleet.Pack, opts ...fleet.OptionalArg) (*fleet.Pack, error) type SavePackFunc func(ctx context.Context, pack *fleet.Pack) error type DeletePackFunc func(ctx context.Context, name string) error type PackFunc func(ctx context.Context, pid uint) (*fleet.Pack, error) type ListPacksFunc func(ctx context.Context, opt fleet.PackListOptions) ([]*fleet.Pack, error) type PackByNameFunc func(ctx context.Context, name string, opts ...fleet.OptionalArg) (*fleet.Pack, bool, error) type ListPacksForHostFunc func(ctx context.Context, hid uint) (packs []*fleet.Pack, err error) type ApplyLabelSpecsFunc func(ctx context.Context, specs []*fleet.LabelSpec) error type ApplyLabelSpecsWithAuthorFunc func(ctx context.Context, specs []*fleet.LabelSpec, authorId *uint) error type SetAsideLabelsFunc func(ctx context.Context, notOnTeamID *uint, names []string, user fleet.User) error type GetLabelSpecsFunc func(ctx context.Context, filter fleet.TeamFilter) ([]*fleet.LabelSpec, error) type GetLabelSpecFunc func(ctx context.Context, filter fleet.TeamFilter, name string) (*fleet.LabelSpec, error) type AddLabelsToHostFunc func(ctx context.Context, hostID uint, labelIDs []uint) error type RemoveLabelsFromHostFunc func(ctx context.Context, hostID uint, labelIDs []uint) error type UpdateLabelMembershipByHostIDsFunc func(ctx context.Context, label fleet.Label, hostIds []uint, teamFilter fleet.TeamFilter) (*fleet.Label, []uint, error) type UpdateLabelMembershipByHostCriteriaFunc func(ctx context.Context, hvl fleet.HostVitalsLabel) (*fleet.Label, error) type NewLabelFunc func(ctx context.Context, label *fleet.Label, opts ...fleet.OptionalArg) (*fleet.Label, error) type SaveLabelFunc func(ctx context.Context, label *fleet.Label, teamFilter fleet.TeamFilter) (*fleet.LabelWithTeamName, []uint, error) type DeleteLabelFunc func(ctx context.Context, name string, filter fleet.TeamFilter) error type LabelByNameFunc func(ctx context.Context, name string, filter fleet.TeamFilter) (*fleet.Label, error) type LabelFunc func(ctx context.Context, lid uint, teamFilter fleet.TeamFilter) (*fleet.LabelWithTeamName, []uint, error) type ListLabelsFunc func(ctx context.Context, filter fleet.TeamFilter, opt fleet.ListOptions, includeHostCounts bool) ([]*fleet.Label, error) type LabelsSummaryFunc func(ctx context.Context, filter fleet.TeamFilter) ([]*fleet.LabelSummary, error) type GetEnrollmentIDsWithPendingMDMAppleCommandsFunc func(ctx context.Context) ([]string, error) type LabelQueriesForHostFunc func(ctx context.Context, host *fleet.Host) (map[string]string, error) type ListLabelsForHostFunc func(ctx context.Context, hid uint) ([]*fleet.Label, error) type ListHostsInLabelFunc func(ctx context.Context, filter fleet.TeamFilter, lid uint, opt fleet.HostListOptions) ([]*fleet.Host, error) type SearchLabelsFunc func(ctx context.Context, filter fleet.TeamFilter, query string, omit ...uint) ([]*fleet.Label, error) type LabelIDsByNameFunc func(ctx context.Context, labels []string, filter fleet.TeamFilter) (map[string]uint, error) type LabelsByNameFunc func(ctx context.Context, names []string, filter fleet.TeamFilter) (map[string]*fleet.Label, error) type AsyncBatchInsertLabelMembershipFunc func(ctx context.Context, batch [][2]uint) error type AsyncBatchDeleteLabelMembershipFunc func(ctx context.Context, batch [][2]uint) error type AsyncBatchUpdateLabelTimestampFunc func(ctx context.Context, ids []uint, ts time.Time) error type NewHostFunc func(ctx context.Context, host *fleet.Host) (*fleet.Host, error) type DeleteHostFunc func(ctx context.Context, hid uint) error type HostFunc func(ctx context.Context, id uint) (*fleet.Host, error) type GetHostHealthFunc func(ctx context.Context, id uint) (*fleet.HostHealth, error) type ListHostsFunc func(ctx context.Context, filter fleet.TeamFilter, opt fleet.HostListOptions) ([]*fleet.Host, error) type ListBatchScriptHostsFunc func(ctx context.Context, batchScriptExecutionID string, batchScriptExecutionStatus fleet.BatchScriptExecutionStatus, opt fleet.ListOptions) ([]fleet.BatchScriptHost, *fleet.PaginationMetadata, uint, error) type ListHostsLiteByUUIDsFunc func(ctx context.Context, filter fleet.TeamFilter, uuids []string) ([]*fleet.Host, error) type ListHostsLiteByIDsFunc func(ctx context.Context, ids []uint) ([]*fleet.Host, error) type ListHostUsersFunc func(ctx context.Context, hostID uint) ([]fleet.HostUser, error) type MarkHostsSeenFunc func(ctx context.Context, hostIDs []uint, t time.Time) error type SearchHostsFunc func(ctx context.Context, filter fleet.TeamFilter, query string, omit ...uint) ([]*fleet.Host, error) type EnrolledHostIDsFunc func(ctx context.Context) ([]uint, error) type CountEnrolledHostsFunc func(ctx context.Context) (int, error) type CleanupIncomingHostsFunc func(ctx context.Context, now time.Time) ([]uint, error) type GenerateHostStatusStatisticsFunc func(ctx context.Context, filter fleet.TeamFilter, now time.Time, platform *string, lowDiskSpace *int) (*fleet.HostSummary, error) type HostIDsByIdentifierFunc func(ctx context.Context, filter fleet.TeamFilter, hostnames []string) ([]uint, error) type HostIDsByOSIDFunc func(ctx context.Context, osID uint, offset int, limit int) ([]uint, error) type HostMemberOfAllLabelsFunc func(ctx context.Context, hostID uint, labelNames []string) (bool, error) type HostIDsByOSVersionFunc func(ctx context.Context, osVersion fleet.OSVersion, offset int, limit int) ([]uint, error) type HostByIdentifierFunc func(ctx context.Context, identifier string) (*fleet.Host, error) type HostLiteByIdentifierFunc func(ctx context.Context, identifier string) (*fleet.HostLite, error) type HostLiteByIDFunc func(ctx context.Context, id uint) (*fleet.HostLite, error) type AddHostsToTeamFunc func(ctx context.Context, params *fleet.AddHostsToTeamParams) error type HostnamesByIdentifiersFunc func(ctx context.Context, identifiers []string) ([]string, error) type UpdateHostIssuesFailingPoliciesFunc func(ctx context.Context, hostIDs []uint) error type UpdateHostIssuesFailingPoliciesForSingleHostFunc func(ctx context.Context, hostID uint) error type GetHostIssuesLastUpdatedFunc func(ctx context.Context, hostId uint) (time.Time, error) type UpdateHostIssuesVulnerabilitiesFunc func(ctx context.Context) error type CleanupHostIssuesFunc func(ctx context.Context) error type TotalAndUnseenHostsSinceFunc func(ctx context.Context, teamID *uint, daysCount int) (total int, unseen []uint, err error) type DeleteHostsFunc func(ctx context.Context, ids []uint) error type CountHostsFunc func(ctx context.Context, filter fleet.TeamFilter, opt fleet.HostListOptions) (int, error) type CountHostsInLabelFunc func(ctx context.Context, filter fleet.TeamFilter, lid uint, opt fleet.HostListOptions) (int, error) type ListHostDeviceMappingFunc func(ctx context.Context, id uint) ([]*fleet.HostDeviceMapping, error) type SetOrUpdateCustomHostDeviceMappingFunc func(ctx context.Context, hostID uint, email string, source string) ([]*fleet.HostDeviceMapping, error) type SetOrUpdateIDPHostDeviceMappingFunc func(ctx context.Context, hostID uint, email string) error type DeleteHostIDPFunc func(ctx context.Context, id uint) error type SetOrUpdateHostSCIMUserMappingFunc func(ctx context.Context, hostID uint, scimUserID uint) error type DeleteHostSCIMUserMappingFunc func(ctx context.Context, hostID uint) error type ListHostBatteriesFunc func(ctx context.Context, id uint) ([]*fleet.HostBattery, error) type ListUpcomingHostMaintenanceWindowsFunc func(ctx context.Context, hid uint) ([]*fleet.HostMaintenanceWindow, error) type LoadHostByDeviceAuthTokenFunc func(ctx context.Context, authToken string, tokenTTL time.Duration) (*fleet.Host, error) type SetOrUpdateDeviceAuthTokenFunc func(ctx context.Context, hostID uint, authToken string) error type GetDeviceAuthTokenFunc func(ctx context.Context, hostID uint) (string, error) type FailingPoliciesCountFunc func(ctx context.Context, host *fleet.Host) (uint, error) type ListPoliciesForHostFunc func(ctx context.Context, host *fleet.Host) ([]*fleet.HostPolicy, error) type GetHostMunkiVersionFunc func(ctx context.Context, hostID uint) (string, error) type GetHostMunkiIssuesFunc func(ctx context.Context, hostID uint) ([]*fleet.HostMunkiIssue, error) type GetHostMDMFunc func(ctx context.Context, hostID uint) (*fleet.HostMDM, error) type GetHostMDMCheckinInfoFunc func(ctx context.Context, hostUUID string) (*fleet.HostMDMCheckinInfo, error) type GetHostMDMIdentifiersFunc func(ctx context.Context, identifer string, teamFilter fleet.TeamFilter) ([]*fleet.HostMDMIdentifiers, error) type ListIOSAndIPadOSToRefetchFunc func(ctx context.Context, refetchInterval time.Duration) (devices []fleet.AppleDevicesToRefetch, err error) type AddHostMDMCommandsFunc func(ctx context.Context, commands []fleet.HostMDMCommand) error type GetHostMDMCommandsFunc func(ctx context.Context, hostID uint) (commands []fleet.HostMDMCommand, err error) type RemoveHostMDMCommandFunc func(ctx context.Context, command fleet.HostMDMCommand) error type CleanupHostMDMCommandsFunc func(ctx context.Context) error type CleanupHostMDMAppleProfilesFunc func(ctx context.Context) error type IsHostConnectedToFleetMDMFunc func(ctx context.Context, host *fleet.Host) (bool, error) type ListHostCertificatesFunc func(ctx context.Context, hostID uint, opts fleet.ListOptions) ([]*fleet.HostCertificateRecord, *fleet.PaginationMetadata, error) type UpdateHostCertificatesFunc func(ctx context.Context, hostID uint, hostUUID string, certs []*fleet.HostCertificateRecord) error type AreHostsConnectedToFleetMDMFunc func(ctx context.Context, hosts []*fleet.Host) (map[string]bool, error) type AggregatedMunkiVersionFunc func(ctx context.Context, teamID *uint) ([]fleet.AggregatedMunkiVersion, time.Time, error) type AggregatedMunkiIssuesFunc func(ctx context.Context, teamID *uint) ([]fleet.AggregatedMunkiIssue, time.Time, error) type AggregatedMDMStatusFunc func(ctx context.Context, teamID *uint, platform string) (fleet.AggregatedMDMStatus, time.Time, error) type AggregatedMDMSolutionsFunc func(ctx context.Context, teamID *uint, platform string) ([]fleet.AggregatedMDMSolutions, time.Time, error) type GenerateAggregatedMunkiAndMDMFunc func(ctx context.Context) error type GetMunkiIssueFunc func(ctx context.Context, munkiIssueID uint) (*fleet.MunkiIssue, error) type GetMDMSolutionFunc func(ctx context.Context, mdmID uint) (*fleet.MDMSolution, error) type OSVersionsFunc func(ctx context.Context, teamFilter *fleet.TeamFilter, platform *string, name *string, version *string) (*fleet.OSVersions, error) type OSVersionsByCVEFunc func(ctx context.Context, cve string, teamID *uint) ([]*fleet.VulnerableOS, time.Time, error) type SoftwareByCVEFunc func(ctx context.Context, cve string, teamID *uint) ([]*fleet.VulnerableSoftware, time.Time, error) type OSVersionFunc func(ctx context.Context, osVersionID uint, teamFilter *fleet.TeamFilter) (*fleet.OSVersion, *time.Time, error) type UpdateOSVersionsFunc func(ctx context.Context) error type CountHostsInTargetsFunc func(ctx context.Context, filter fleet.TeamFilter, targets fleet.HostTargets, now time.Time) (fleet.TargetMetrics, error) type HostIDsInTargetsFunc func(ctx context.Context, filter fleet.TeamFilter, targets fleet.HostTargets) ([]uint, error) type NewPasswordResetRequestFunc func(ctx context.Context, req *fleet.PasswordResetRequest) (*fleet.PasswordResetRequest, error) type DeletePasswordResetRequestsForUserFunc func(ctx context.Context, userID uint) error type FindPasswordResetByTokenFunc func(ctx context.Context, token string) (*fleet.PasswordResetRequest, error) type CleanupExpiredPasswordResetRequestsFunc func(ctx context.Context) error type SessionByKeyFunc func(ctx context.Context, key string) (*fleet.Session, error) type SessionByIDFunc func(ctx context.Context, id uint) (*fleet.Session, error) type ListSessionsForUserFunc func(ctx context.Context, id uint) ([]*fleet.Session, error) type NewSessionFunc func(ctx context.Context, userID uint, sessionKeySize int) (*fleet.Session, error) type DestroySessionFunc func(ctx context.Context, session *fleet.Session) error type DestroyAllSessionsForUserFunc func(ctx context.Context, id uint) error type MarkSessionAccessedFunc func(ctx context.Context, session *fleet.Session) error type SessionByMFATokenFunc func(ctx context.Context, token string, sessionKeySize int) (*fleet.Session, *fleet.User, error) type NewMFATokenFunc func(ctx context.Context, userID uint) (string, error) type NewAppConfigFunc func(ctx context.Context, info *fleet.AppConfig) (*fleet.AppConfig, error) type SaveAppConfigFunc func(ctx context.Context, info *fleet.AppConfig) error type GetEnrollSecretsFunc func(ctx context.Context, teamID *uint) ([]*fleet.EnrollSecret, error) type ApplyEnrollSecretsFunc func(ctx context.Context, teamID *uint, secrets []*fleet.EnrollSecret) error type AggregateEnrollSecretPerTeamFunc func(ctx context.Context) ([]*fleet.EnrollSecret, error) type GetYaraRulesFunc func(ctx context.Context) ([]fleet.YaraRule, error) type ApplyYaraRulesFunc func(ctx context.Context, rules []fleet.YaraRule) error type YaraRuleByNameFunc func(ctx context.Context, name string) (*fleet.YaraRule, error) type NewInviteFunc func(ctx context.Context, i *fleet.Invite) (*fleet.Invite, error) type ListInvitesFunc func(ctx context.Context, opt fleet.ListOptions) ([]*fleet.Invite, error) type InviteFunc func(ctx context.Context, id uint) (*fleet.Invite, error) type InviteByEmailFunc func(ctx context.Context, email string) (*fleet.Invite, error) type InviteByTokenFunc func(ctx context.Context, token string) (*fleet.Invite, error) type DeleteInviteFunc func(ctx context.Context, id uint) error type UpdateInviteFunc func(ctx context.Context, id uint, i *fleet.Invite) (*fleet.Invite, error) type ListScheduledQueriesInPackWithStatsFunc func(ctx context.Context, id uint, opts fleet.ListOptions) ([]*fleet.ScheduledQuery, error) type NewScheduledQueryFunc func(ctx context.Context, sq *fleet.ScheduledQuery, opts ...fleet.OptionalArg) (*fleet.ScheduledQuery, error) type SaveScheduledQueryFunc func(ctx context.Context, sq *fleet.ScheduledQuery) (*fleet.ScheduledQuery, error) type DeleteScheduledQueryFunc func(ctx context.Context, id uint) error type ScheduledQueryFunc func(ctx context.Context, id uint) (*fleet.ScheduledQuery, error) type CleanupExpiredHostsFunc func(ctx context.Context) ([]fleet.DeletedHostDetails, error) type ScheduledQueryIDsByNameFunc func(ctx context.Context, batchSize int, packAndSchedQueryNames ...[2]string) ([]uint, error) type QueryResultRowsFunc func(ctx context.Context, queryID uint, filter fleet.TeamFilter) ([]*fleet.ScheduledQueryResultRow, error) type QueryResultRowsForHostFunc func(ctx context.Context, queryID uint, hostID uint) ([]*fleet.ScheduledQueryResultRow, error) type ResultCountForQueryFunc func(ctx context.Context, queryID uint) (int, error) type ResultCountForQueryAndHostFunc func(ctx context.Context, queryID uint, hostID uint) (int, error) type OverwriteQueryResultRowsFunc func(ctx context.Context, rows []*fleet.ScheduledQueryResultRow, maxQueryReportRows int) (int, error) type CleanupDiscardedQueryResultsFunc func(ctx context.Context) error type CleanupExcessQueryResultRowsFunc func(ctx context.Context, maxQueryReportRows int, opts ...fleet.CleanupExcessQueryResultRowsOptions) (map[uint]int, error) type NewTeamFunc func(ctx context.Context, team *fleet.Team) (*fleet.Team, error) type SaveTeamFunc func(ctx context.Context, team *fleet.Team) (*fleet.Team, error) type TeamWithExtrasFunc func(ctx context.Context, tid uint) (*fleet.Team, error) type TeamLiteFunc func(ctx context.Context, tid uint) (*fleet.TeamLite, error) type DeleteTeamFunc func(ctx context.Context, tid uint) error type TeamByNameFunc func(ctx context.Context, name string) (*fleet.Team, error) type TeamByFilenameFunc func(ctx context.Context, filename string) (*fleet.Team, error) type ListTeamsFunc func(ctx context.Context, filter fleet.TeamFilter, opt fleet.ListOptions) ([]*fleet.Team, error) type TeamsSummaryFunc func(ctx context.Context) ([]*fleet.TeamSummary, error) type SearchTeamsFunc func(ctx context.Context, filter fleet.TeamFilter, matchQuery string, omit ...uint) ([]*fleet.Team, error) type TeamEnrollSecretsFunc func(ctx context.Context, teamID uint) ([]*fleet.EnrollSecret, error) type DeleteIntegrationsFromTeamsFunc func(ctx context.Context, deletedIntgs fleet.Integrations) error type DefaultTeamConfigFunc func(ctx context.Context) (*fleet.TeamConfig, error) type SaveDefaultTeamConfigFunc func(ctx context.Context, config *fleet.TeamConfig) error type TeamExistsFunc func(ctx context.Context, teamID uint) (bool, error) type ListSoftwareTitlesFunc func(ctx context.Context, opt fleet.SoftwareTitleListOptions, tmFilter fleet.TeamFilter) ([]fleet.SoftwareTitleListResult, int, *fleet.PaginationMetadata, error) type SoftwareTitleByIDFunc func(ctx context.Context, id uint, teamID *uint, tmFilter fleet.TeamFilter) (*fleet.SoftwareTitle, error) type SoftwareTitleNameForHostFilterFunc func(ctx context.Context, id uint) (name string, displayName string, err error) type UpdateSoftwareTitleNameFunc func(ctx context.Context, id uint, name string) error type UpdateSoftwareTitleAutoUpdateConfigFunc func(ctx context.Context, titleID uint, teamID uint, config fleet.SoftwareAutoUpdateConfig) error type ListSoftwareAutoUpdateSchedulesFunc func(ctx context.Context, teamID uint, source string, optionalFilter ...fleet.SoftwareAutoUpdateScheduleFilter) ([]fleet.SoftwareAutoUpdateSchedule, error) type InsertSoftwareInstallRequestFunc func(ctx context.Context, hostID uint, softwareInstallerID uint, opts fleet.HostSoftwareInstallOptions) (string, error) type InsertSoftwareUninstallRequestFunc func(ctx context.Context, executionID string, hostID uint, softwareInstallerID uint, selfService bool) error type GetDetailsForUninstallFromExecutionIDFunc func(ctx context.Context, executionID string) (string, bool, error) type ListSoftwareForVulnDetectionFunc func(ctx context.Context, filter fleet.VulnSoftwareFilter) ([]fleet.Software, error) type ListSoftwareVulnerabilitiesByHostIDsSourceFunc func(ctx context.Context, hostIDs []uint, source fleet.VulnerabilitySource) (map[uint][]fleet.SoftwareVulnerability, error) type LoadHostSoftwareFunc func(ctx context.Context, host *fleet.Host, includeCVEScores bool) error type AllSoftwareIteratorFunc func(ctx context.Context, query fleet.SoftwareIterQueryOptions) (fleet.SoftwareIterator, error) type UpsertSoftwareCPEsFunc func(ctx context.Context, cpes []fleet.SoftwareCPE) (int64, error) type DeleteSoftwareCPEsFunc func(ctx context.Context, cpes []fleet.SoftwareCPE) (int64, error) type ListSoftwareCPEsFunc func(ctx context.Context) ([]fleet.SoftwareCPE, error) type InsertSoftwareVulnerabilityFunc func(ctx context.Context, vuln fleet.SoftwareVulnerability, source fleet.VulnerabilitySource) (bool, error) type SoftwareByIDFunc func(ctx context.Context, id uint, teamID *uint, includeCVEScores bool, tmFilter *fleet.TeamFilter) (*fleet.Software, error) type ListSoftwareByHostIDShortFunc func(ctx context.Context, hostID uint) ([]fleet.Software, error) type SyncHostsSoftwareFunc func(ctx context.Context, updatedAt time.Time) error type CleanupSoftwareTitlesFunc func(ctx context.Context) error type SyncHostsSoftwareTitlesFunc func(ctx context.Context, updatedAt time.Time) error type HostVulnSummariesBySoftwareIDsFunc func(ctx context.Context, softwareIDs []uint) ([]fleet.HostVulnerabilitySummary, error) type HostsByCVEFunc func(ctx context.Context, cve string) ([]fleet.HostVulnerabilitySummary, error) type InsertCVEMetaFunc func(ctx context.Context, cveMeta []fleet.CVEMeta) error type ListCVEsFunc func(ctx context.Context, maxAge time.Duration) ([]fleet.CVEMeta, error) type ListHostSoftwareFunc func(ctx context.Context, host *fleet.Host, opts fleet.HostSoftwareTitleListOptions) ([]*fleet.HostSoftwareWithInstaller, *fleet.PaginationMetadata, error) type IsSoftwareInstallerLabelScopedFunc func(ctx context.Context, installerID uint, hostID uint) (bool, error) type IsVPPAppLabelScopedFunc func(ctx context.Context, vppAppTeamID uint, hostID uint) (bool, error) type IsInHouseAppLabelScopedFunc func(ctx context.Context, inHouseAppID uint, hostID uint) (bool, error) type GetUnverifiedInHouseAppInstallsForHostFunc func(ctx context.Context, hostUUID string) ([]*fleet.HostVPPSoftwareInstall, error) type SetInHouseAppInstallAsVerifiedFunc func(ctx context.Context, hostID uint, installUUID string, verificationUUID string) error type SetInHouseAppInstallAsFailedFunc func(ctx context.Context, hostID uint, installUUID string, verificationUUID string) error type ReplaceInHouseAppInstallVerificationUUIDFunc func(ctx context.Context, oldVerifyUUID string, verifyCommandUUID string) error type GetPastActivityDataForInHouseAppInstallFunc func(ctx context.Context, commandResults *mdm.CommandResults) (*fleet.User, *fleet.ActivityTypeInstalledSoftware, error) type SetHostSoftwareInstallResultFunc func(ctx context.Context, result *fleet.HostSoftwareInstallResultPayload, attemptNumber *int) (wasCanceled bool, err error) type CreateIntermediateInstallFailureRecordFunc func(ctx context.Context, result *fleet.HostSoftwareInstallResultPayload) (string, error) type NewSoftwareCategoryFunc func(ctx context.Context, name string) (*fleet.SoftwareCategory, error) type GetSoftwareCategoryIDsFunc func(ctx context.Context, names []string) ([]uint, error) type GetCategoriesForSoftwareTitlesFunc func(ctx context.Context, softwareTitleIDs []uint, team_id *uint) (map[uint][]string, error) type AssociateMDMInstallToVerificationUUIDFunc func(ctx context.Context, installUUID string, verifyCommandUUID string, hostUUID string) error type SetVPPInstallAsVerifiedFunc func(ctx context.Context, hostID uint, installUUID string, verificationUUID string) error type ReplaceVPPInstallVerificationUUIDFunc func(ctx context.Context, oldVerifyUUID string, verifyCommandUUID string) error type IsHostPendingMDMInstallVerificationFunc func(ctx context.Context, hostUUID string) (bool, error) type GetUnverifiedVPPInstallsForHostFunc func(ctx context.Context, verificationUUID string) ([]*fleet.HostVPPSoftwareInstall, error) type SetVPPInstallAsFailedFunc func(ctx context.Context, hostID uint, installUUID string, verificationUUID string) error type MarkAllPendingAppleVPPAndInHouseInstallsAsFailedFunc func(ctx context.Context, jobName string) error type CheckConflictingInstallerExistsFunc func(ctx context.Context, teamID *uint, bundleIdentifier string, platform string) (bool, error) type CheckConflictingInHouseAppExistsFunc func(ctx context.Context, teamID *uint, bundleIdentifier string, platform string) (bool, error) type GetHostOperatingSystemFunc func(ctx context.Context, hostID uint) (*fleet.OperatingSystem, error) type ListOperatingSystemsFunc func(ctx context.Context) ([]fleet.OperatingSystem, error) type ListOperatingSystemsForPlatformFunc func(ctx context.Context, platform string) ([]fleet.OperatingSystem, error) type UpdateHostOperatingSystemFunc func(ctx context.Context, hostID uint, hostOS fleet.OperatingSystem) error type CleanupHostOperatingSystemsFunc func(ctx context.Context) error type MDMTurnOffFunc func(ctx context.Context, uuid string) (users []*fleet.User, activities []fleet.ActivityDetails, err error) type NewActivityFunc func(ctx context.Context, user *fleet.User, activity fleet.ActivityDetails, details []byte, createdAt time.Time) error type ListHostUpcomingActivitiesFunc func(ctx context.Context, hostID uint, opt fleet.ListOptions) ([]*fleet.UpcomingActivity, *fleet.PaginationMetadata, error) type CancelHostUpcomingActivityFunc func(ctx context.Context, hostID uint, executionID string) (fleet.ActivityDetails, error) type IsExecutionPendingForHostFunc func(ctx context.Context, hostID uint, scriptID uint) (bool, error) type GetHostUpcomingActivityMetaFunc func(ctx context.Context, hostID uint, executionID string) (*fleet.UpcomingActivityMeta, error) type UnblockHostsUpcomingActivityQueueFunc func(ctx context.Context, maxHosts int) (int, error) type ShouldSendStatisticsFunc func(ctx context.Context, frequency time.Duration, config config.FleetConfig) (fleet.StatisticsPayload, bool, error) type RecordStatisticsSentFunc func(ctx context.Context) error type CleanupStatisticsFunc func(ctx context.Context) error type GetTableRowCountsFunc func(ctx context.Context) (map[string]uint, error) type ApplyPolicySpecsFunc func(ctx context.Context, authorID uint, specs []*fleet.PolicySpec) error type NewGlobalPolicyFunc func(ctx context.Context, authorID *uint, args fleet.PolicyPayload) (*fleet.Policy, error) type PolicyFunc func(ctx context.Context, id uint) (*fleet.Policy, error) type PolicyLiteFunc func(ctx context.Context, id uint) (*fleet.PolicyLite, error) type SavePolicyFunc func(ctx context.Context, p *fleet.Policy, shouldRemoveAllPolicyMemberships bool, removePolicyStats bool) error type ListGlobalPoliciesFunc func(ctx context.Context, opts fleet.ListOptions) ([]*fleet.Policy, error) type PoliciesByIDFunc func(ctx context.Context, ids []uint) (map[uint]*fleet.Policy, error) type DeleteGlobalPoliciesFunc func(ctx context.Context, ids []uint) ([]uint, error) type CountPoliciesFunc func(ctx context.Context, teamID *uint, matchQuery string) (int, error) type CountMergedTeamPoliciesFunc func(ctx context.Context, teamID uint, matchQuery string) (int, error) type UpdateHostPolicyCountsFunc func(ctx context.Context) error type PolicyQueriesForHostFunc func(ctx context.Context, host *fleet.Host) (map[string]string, error) type GetTeamHostsPolicyMembershipsFunc func(ctx context.Context, domain string, teamID uint, policyIDs []uint, hostID *uint) ([]fleet.HostPolicyMembershipData, error) type GetPoliciesWithAssociatedInstallerFunc func(ctx context.Context, teamID uint, policyIDs []uint) ([]fleet.PolicySoftwareInstallerData, error) type GetPoliciesWithAssociatedVPPFunc func(ctx context.Context, teamID uint, policyIDs []uint) ([]fleet.PolicyVPPData, error) type GetPoliciesWithAssociatedScriptFunc func(ctx context.Context, teamID uint, policyIDs []uint) ([]fleet.PolicyScriptData, error) type GetCalendarPoliciesFunc func(ctx context.Context, teamID uint) ([]fleet.PolicyCalendarData, error) type GetPoliciesForConditionalAccessFunc func(ctx context.Context, teamID uint) ([]uint, error) type ConditionalAccessBypassDeviceFunc func(ctx context.Context, hostID uint) error type ConditionalAccessConsumeBypassFunc func(ctx context.Context, hostID uint) (*time.Time, error) type ConditionalAccessClearBypassesFunc func(ctx context.Context) error type ConditionalAccessBypassedAtFunc func(ctx context.Context, hostID uint) (*time.Time, error) type AsyncBatchInsertPolicyMembershipFunc func(ctx context.Context, batch []fleet.PolicyMembershipResult) error type AsyncBatchUpdatePolicyTimestampFunc func(ctx context.Context, ids []uint, ts time.Time) error type MigrateTablesFunc func(ctx context.Context) error type MigrateDataFunc func(ctx context.Context) error type MigrationStatusFunc func(ctx context.Context) (*fleet.MigrationStatus, error) type ListSoftwareFunc func(ctx context.Context, opt fleet.SoftwareListOptions) ([]fleet.Software, *fleet.PaginationMetadata, error) type CountSoftwareFunc func(ctx context.Context, opt fleet.SoftwareListOptions) (int, error) type DeleteSoftwareVulnerabilitiesFunc func(ctx context.Context, vulnerabilities []fleet.SoftwareVulnerability) error type DeleteOutOfDateVulnerabilitiesFunc func(ctx context.Context, source fleet.VulnerabilitySource, olderThan time.Time) error type CreateOrUpdateCalendarEventFunc func(ctx context.Context, uuid string, email string, startTime time.Time, endTime time.Time, data []byte, timeZone *string, hostID uint, webhookStatus fleet.CalendarWebhookStatus) (*fleet.CalendarEvent, error) type GetCalendarEventFunc func(ctx context.Context, email string) (*fleet.CalendarEvent, error) type GetCalendarEventDetailsByUUIDFunc func(ctx context.Context, uuid string) (*fleet.CalendarEventDetails, error) type DeleteCalendarEventFunc func(ctx context.Context, calendarEventID uint) error type UpdateCalendarEventFunc func(ctx context.Context, calendarEventID uint, uuid string, startTime time.Time, endTime time.Time, data []byte, timeZone *string) error type GetHostCalendarEventFunc func(ctx context.Context, hostID uint) (*fleet.HostCalendarEvent, *fleet.CalendarEvent, error) type GetHostCalendarEventByEmailFunc func(ctx context.Context, email string) (*fleet.HostCalendarEvent, *fleet.CalendarEvent, error) type UpdateHostCalendarWebhookStatusFunc func(ctx context.Context, hostID uint, status fleet.CalendarWebhookStatus) error type ListCalendarEventsFunc func(ctx context.Context, teamID *uint) ([]*fleet.CalendarEvent, error) type ListOutOfDateCalendarEventsFunc func(ctx context.Context, t time.Time) ([]*fleet.CalendarEvent, error) type NewTeamPolicyFunc func(ctx context.Context, teamID uint, authorID *uint, args fleet.PolicyPayload) (*fleet.Policy, error) type ListTeamPoliciesFunc func(ctx context.Context, teamID uint, opts fleet.ListOptions, iopts fleet.ListOptions) (teamPolicies []*fleet.Policy, inheritedPolicies []*fleet.Policy, err error) type ListMergedTeamPoliciesFunc func(ctx context.Context, teamID uint, opts fleet.ListOptions) ([]*fleet.Policy, error) type DeleteTeamPoliciesFunc func(ctx context.Context, teamID uint, ids []uint) ([]uint, error) type TeamPolicyFunc func(ctx context.Context, teamID uint, policyID uint) (*fleet.Policy, error) type CleanupPolicyMembershipFunc func(ctx context.Context, now time.Time) error type IsPolicyFailingFunc func(ctx context.Context, policyID uint, hostID uint) (bool, error) type CountHostSoftwareInstallAttemptsFunc func(ctx context.Context, hostID uint, softwareInstallerID uint, policyID uint) (int, error) type CountHostScriptAttemptsFunc func(ctx context.Context, hostID uint, scriptID uint, policyID uint) (int, error) type IncrementPolicyViolationDaysFunc func(ctx context.Context) error type InitializePolicyViolationDaysFunc func(ctx context.Context) error type LockFunc func(ctx context.Context, name string, owner string, expiration time.Duration) (bool, error) type UnlockFunc func(ctx context.Context, name string, owner string) error type DBLocksFunc func(ctx context.Context) ([]*fleet.DBLock, error) type GetLatestCronStatsFunc func(ctx context.Context, name string) ([]fleet.CronStats, error) type InsertCronStatsFunc func(ctx context.Context, statsType fleet.CronStatsType, name string, instance string, status fleet.CronStatsStatus) (int, error) type UpdateCronStatsFunc func(ctx context.Context, id int, status fleet.CronStatsStatus, cronErrors *fleet.CronScheduleErrors) error type UpdateAllCronStatsForInstanceFunc func(ctx context.Context, instance string, fromStatus fleet.CronStatsStatus, toStatus fleet.CronStatsStatus) error type CleanupCronStatsFunc func(ctx context.Context) error type UpdateQueryAggregatedStatsFunc func(ctx context.Context) error type LoadHostByNodeKeyFunc func(ctx context.Context, nodeKey string) (*fleet.Host, error) type LoadHostByOrbitNodeKeyFunc func(ctx context.Context, nodeKey string) (*fleet.Host, error) type HostLiteFunc func(ctx context.Context, hostID uint) (*fleet.Host, error) type UpdateHostOsqueryIntervalsFunc func(ctx context.Context, hostID uint, intervals fleet.HostOsqueryIntervals) error type TeamAgentOptionsFunc func(ctx context.Context, teamID uint) (*json.RawMessage, error) type TeamFeaturesFunc func(ctx context.Context, teamID uint) (*fleet.Features, error) type TeamMDMConfigFunc func(ctx context.Context, teamID uint) (*fleet.TeamMDM, error) type SaveHostPackStatsFunc func(ctx context.Context, teamID *uint, hostID uint, stats []fleet.PackStats) error type AsyncBatchSaveHostsScheduledQueryStatsFunc func(ctx context.Context, stats map[uint][]fleet.ScheduledQueryStats, batchSize int) (int, error) type UpdateHostSoftwareFunc func(ctx context.Context, hostID uint, software []fleet.Software) (*fleet.UpdateHostSoftwareDBResult, error) type UpdateHostSoftwareInstalledPathsFunc func(ctx context.Context, hostID uint, reported map[string]struct{}, mutationResults *fleet.UpdateHostSoftwareDBResult) error type UpdateHostFunc func(ctx context.Context, host *fleet.Host) error type ListScheduledQueriesInPackFunc func(ctx context.Context, packID uint) (fleet.ScheduledQueryList, error) type UpdateHostRefetchRequestedFunc func(ctx context.Context, hostID uint, value bool) error type UpdateHostRefetchCriticalQueriesUntilFunc func(ctx context.Context, hostID uint, until *time.Time) error type FlippingPoliciesForHostFunc func(ctx context.Context, hostID uint, incomingResults map[uint]*bool) (newFailing []uint, newPassing []uint, err error) type RecordPolicyQueryExecutionsFunc func(ctx context.Context, host *fleet.Host, results map[uint]*bool, updated time.Time, deferredSaveHost bool) error type RecordLabelQueryExecutionsFunc func(ctx context.Context, host *fleet.Host, results map[uint]*bool, t time.Time, deferredSaveHost bool) error type SaveHostUsersFunc func(ctx context.Context, hostID uint, users []fleet.HostUser) error type SaveHostAdditionalFunc func(ctx context.Context, hostID uint, additional *json.RawMessage) error type SetOrUpdateMunkiInfoFunc func(ctx context.Context, hostID uint, version string, errors []string, warnings []string) error type SetOrUpdateMDMDataFunc func(ctx context.Context, hostID uint, isServer bool, enrolled bool, serverURL string, installedFromDep bool, name string, fleetEnrollRef string, isPersonalEnrollment bool) error type UpdateMDMDataFunc func(ctx context.Context, hostID uint, enrolled bool) error type UpdateMDMInstalledFromDEPFunc func(ctx context.Context, hostID uint, installedFromDep bool) error type GetHostEmailsFunc func(ctx context.Context, hostUUID string, source string) ([]string, error) type SetOrUpdateHostDisksSpaceFunc func(ctx context.Context, hostID uint, gigsAvailable float64, percentAvailable float64, gigsTotal float64, gigsAll *float64) error type GetConfigEnableDiskEncryptionFunc func(ctx context.Context, teamID *uint) (fleet.DiskEncryptionConfig, error) type SetOrUpdateHostDiskTpmPINFunc func(ctx context.Context, hostID uint, pinSet bool) error type SetOrUpdateHostDisksEncryptionFunc func(ctx context.Context, hostID uint, encrypted bool) error type SetOrUpdateHostDiskEncryptionKeyFunc func(ctx context.Context, host *fleet.Host, encryptedBase64Key string, clientError string, decryptable *bool) (bool, error) type SaveLUKSDataFunc func(ctx context.Context, host *fleet.Host, encryptedBase64Passphrase string, encryptedBase64Salt string, keySlot uint) (bool, error) type DeleteLUKSDataFunc func(ctx context.Context, hostID uint, keySlot uint) error type GetUnverifiedDiskEncryptionKeysFunc func(ctx context.Context) ([]fleet.HostDiskEncryptionKey, error) type SetHostsDiskEncryptionKeyStatusFunc func(ctx context.Context, hostIDs []uint, decryptable bool, threshold time.Time) error type GetHostDiskEncryptionKeyFunc func(ctx context.Context, hostID uint) (*fleet.HostDiskEncryptionKey, error) type GetHostArchivedDiskEncryptionKeyFunc func(ctx context.Context, host *fleet.Host) (*fleet.HostArchivedDiskEncryptionKey, error) type IsHostDiskEncryptionKeyArchivedFunc func(ctx context.Context, hostID uint) (bool, error) type IsHostPendingEscrowFunc func(ctx context.Context, hostID uint) bool type ClearPendingEscrowFunc func(ctx context.Context, hostID uint) error type ReportEscrowErrorFunc func(ctx context.Context, hostID uint, err string) error type QueueEscrowFunc func(ctx context.Context, hostID uint) error type AssertHasNoEncryptionKeyStoredFunc func(ctx context.Context, hostID uint) error type GetHostCertAssociationsToExpireFunc func(ctx context.Context, expiryDays int, limit int) ([]fleet.SCEPIdentityAssociation, error) type SetCommandForPendingSCEPRenewalFunc func(ctx context.Context, assocs []fleet.SCEPIdentityAssociation, cmdUUID string) error type CleanSCEPRenewRefsFunc func(ctx context.Context, hostUUID string) error type UpdateHostMDMProfilesVerificationFunc func(ctx context.Context, host *fleet.Host, toVerify []string, toFail []string, toRetry []string) error type GetHostMDMProfilesExpectedForVerificationFunc func(ctx context.Context, host *fleet.Host) (map[string]*fleet.ExpectedMDMProfile, error) type GetHostMDMProfilesRetryCountsFunc func(ctx context.Context, host *fleet.Host) ([]fleet.HostMDMProfileRetryCount, error) type GetHostMDMProfileRetryCountByCommandUUIDFunc func(ctx context.Context, host *fleet.Host, cmdUUID string) (fleet.HostMDMProfileRetryCount, error) type SetOrUpdateHostOrbitInfoFunc func(ctx context.Context, hostID uint, version string, desktopVersion sql.NullString, scriptsEnabled sql.NullBool) error type GetHostOrbitInfoFunc func(ctx context.Context, hostID uint) (*fleet.HostOrbitInfo, error) type ReplaceHostDeviceMappingFunc func(ctx context.Context, id uint, mappings []*fleet.HostDeviceMapping, source string) error type ReplaceHostBatteriesFunc func(ctx context.Context, id uint, mappings []*fleet.HostBattery) error type VerifyEnrollSecretFunc func(ctx context.Context, secret string) (*fleet.EnrollSecret, error) type IsEnrollSecretAvailableFunc func(ctx context.Context, secret string, isNew bool, teamID *uint) (bool, error) type EnrollOsqueryFunc func(ctx context.Context, opts ...fleet.DatastoreEnrollOsqueryOption) (*fleet.Host, error) type EnrollOrbitFunc func(ctx context.Context, opts ...fleet.DatastoreEnrollOrbitOption) (*fleet.Host, error) type SerialUpdateHostFunc func(ctx context.Context, host *fleet.Host) error type NewJobFunc func(ctx context.Context, job *fleet.Job) (*fleet.Job, error) type GetQueuedJobsFunc func(ctx context.Context, maxNumJobs int, now time.Time) ([]*fleet.Job, error) type GetFilteredQueuedJobsFunc func(ctx context.Context, maxNumJobs int, now time.Time, jobNames []string) ([]*fleet.Job, error) type UpdateJobFunc func(ctx context.Context, id uint, job *fleet.Job) (*fleet.Job, error) type CleanupWorkerJobsFunc func(ctx context.Context, failedSince time.Duration, completedSince time.Duration) (int64, error) type GetJobFunc func(ctx context.Context, jobID uint) (*fleet.Job, error) type InnoDBStatusFunc func(ctx context.Context) (string, error) type ProcessListFunc func(ctx context.Context) ([]fleet.MySQLProcess, error) type ListWindowsUpdatesByHostIDFunc func(ctx context.Context, hostID uint) ([]fleet.WindowsUpdate, error) type InsertWindowsUpdatesFunc func(ctx context.Context, hostID uint, updates []fleet.WindowsUpdate) error type ListOSVulnerabilitiesByOSFunc func(ctx context.Context, osID uint) ([]fleet.OSVulnerability, error) type ListVulnsByOsNameAndVersionFunc func(ctx context.Context, name string, version string, includeCVSS bool, teamID *uint, maxVulnerabilities *int) (fleet.OSVulnerabilitiesWithCount, error) type ListVulnsByMultipleOSVersionsFunc func(ctx context.Context, osVersions []fleet.OSVersion, includeCVSS bool, teamID *uint, maxVulnerabilities *int) (map[string]fleet.OSVulnerabilitiesWithCount, error) type InsertOSVulnerabilitiesFunc func(ctx context.Context, vulnerabilities []fleet.OSVulnerability, source fleet.VulnerabilitySource) (int64, error) type DeleteOSVulnerabilitiesFunc func(ctx context.Context, vulnerabilities []fleet.OSVulnerability) error type InsertOSVulnerabilityFunc func(ctx context.Context, vuln fleet.OSVulnerability, source fleet.VulnerabilitySource) (bool, error) type DeleteOutOfDateOSVulnerabilitiesFunc func(ctx context.Context, source fleet.VulnerabilitySource, olderThan time.Time) error type ListKernelsByOSFunc func(ctx context.Context, osID uint, teamID *uint) ([]*fleet.Kernel, error) type InsertKernelSoftwareMappingFunc func(ctx context.Context) error type ListVulnerabilitiesFunc func(ctx context.Context, opt fleet.VulnListOptions) ([]fleet.VulnerabilityWithMetadata, *fleet.PaginationMetadata, error) type VulnerabilityFunc func(ctx context.Context, cve string, teamID *uint, includeCVEScores bool) (*fleet.VulnerabilityWithMetadata, error) type CountVulnerabilitiesFunc func(ctx context.Context, opt fleet.VulnListOptions) (uint, error) type UpdateVulnerabilityHostCountsFunc func(ctx context.Context, maxRoutines int) error type IsCVEKnownToFleetFunc func(ctx context.Context, cve string) (bool, error) type NewMDMAppleConfigProfileFunc func(ctx context.Context, p fleet.MDMAppleConfigProfile, usesFleetVars []fleet.FleetVarName) (*fleet.MDMAppleConfigProfile, error) type BulkUpsertMDMAppleConfigProfilesFunc func(ctx context.Context, payload []*fleet.MDMAppleConfigProfile) error type GetMDMAppleConfigProfileByDeprecatedIDFunc func(ctx context.Context, profileID uint) (*fleet.MDMAppleConfigProfile, error) type GetMDMAppleConfigProfileFunc func(ctx context.Context, profileUUID string) (*fleet.MDMAppleConfigProfile, error) type GetMDMAppleDeclarationFunc func(ctx context.Context, declUUID string) (*fleet.MDMAppleDeclaration, error) type ListMDMAppleConfigProfilesFunc func(ctx context.Context, teamID *uint) ([]*fleet.MDMAppleConfigProfile, error) type DeleteMDMAppleConfigProfileByDeprecatedIDFunc func(ctx context.Context, profileID uint) error type DeleteMDMAppleConfigProfileFunc func(ctx context.Context, profileUUID string) error type DeleteMDMAppleDeclarationFunc func(ctx context.Context, declUUID string) error type DeleteMDMAppleDeclarationByNameFunc func(ctx context.Context, teamID *uint, name string) error type BulkDeleteMDMAppleHostsConfigProfilesFunc func(ctx context.Context, payload []*fleet.MDMAppleProfilePayload) error type DeleteMDMAppleConfigProfileByTeamAndIdentifierFunc func(ctx context.Context, teamID *uint, profileIdentifier string) error type GetHostMDMAppleProfilesFunc func(ctx context.Context, hostUUID string) ([]fleet.HostMDMAppleProfile, error) type CleanupDiskEncryptionKeysOnTeamChangeFunc func(ctx context.Context, hostIDs []uint, newTeamID *uint) error type NewMDMAppleEnrollmentProfileFunc func(ctx context.Context, enrollmentPayload fleet.MDMAppleEnrollmentProfilePayload) (*fleet.MDMAppleEnrollmentProfile, error) type GetMDMAppleEnrollmentProfileByTokenFunc func(ctx context.Context, token string) (*fleet.MDMAppleEnrollmentProfile, error) type GetMDMAppleEnrollmentProfileByTypeFunc func(ctx context.Context, typ fleet.MDMAppleEnrollmentType) (*fleet.MDMAppleEnrollmentProfile, error) type ListMDMAppleEnrollmentProfilesFunc func(ctx context.Context) ([]*fleet.MDMAppleEnrollmentProfile, error) type GetMDMAppleCommandResultsFunc func(ctx context.Context, commandUUID string, hostUUID string) ([]*fleet.MDMCommandResult, error) type GetVPPCommandResultsFunc func(ctx context.Context, commandUUID string, hostUUID string) ([]*fleet.MDMCommandResult, error) type ListMDMAppleCommandsFunc func(ctx context.Context, tmFilter fleet.TeamFilter, listOpts *fleet.MDMCommandListOptions) ([]*fleet.MDMAppleCommand, error) type NewMDMAppleInstallerFunc func(ctx context.Context, name string, size int64, manifest string, installer []byte, urlToken string) (*fleet.MDMAppleInstaller, error) type MDMAppleInstallerFunc func(ctx context.Context, token string) (*fleet.MDMAppleInstaller, error) type MDMAppleInstallerDetailsByIDFunc func(ctx context.Context, id uint) (*fleet.MDMAppleInstaller, error) type DeleteMDMAppleInstallerFunc func(ctx context.Context, id uint) error type MDMAppleInstallerDetailsByTokenFunc func(ctx context.Context, token string) (*fleet.MDMAppleInstaller, error) type ListMDMAppleInstallersFunc func(ctx context.Context) ([]fleet.MDMAppleInstaller, error) type BatchSetMDMAppleProfilesFunc func(ctx context.Context, tmID *uint, profiles []*fleet.MDMAppleConfigProfile) error type MDMAppleListDevicesFunc func(ctx context.Context) ([]fleet.MDMAppleDevice, error) type UpsertMDMAppleHostDEPAssignmentsFunc func(ctx context.Context, hosts []fleet.Host, abmTokenID uint, mdmMigrationDeadlinesByHostID map[uint]time.Time) error type IngestMDMAppleDevicesFromDEPSyncFunc func(ctx context.Context, devices []godep.Device, abmTokenID uint, macOSTeam *fleet.Team, iosTeam *fleet.Team, ipadTeam *fleet.Team) (int64, error) type SetHostMDMMigrationCompletedFunc func(ctx context.Context, hostID uint) error type IngestMDMAppleDeviceFromOTAEnrollmentFunc func(ctx context.Context, teamID *uint, idpUUID string, deviceInfo fleet.MDMAppleMachineInfo) error type MDMAppleUpsertHostFunc func(ctx context.Context, mdmHost *fleet.Host, fromPersonalEnrollment bool) error type RestoreMDMApplePendingDEPHostFunc func(ctx context.Context, host *fleet.Host) error type MDMResetEnrollmentFunc func(ctx context.Context, hostUUID string, scepRenewalInProgress bool) error type ListMDMAppleDEPSerialsInTeamFunc func(ctx context.Context, teamID *uint) ([]string, error) type ListMDMAppleDEPSerialsInHostIDsFunc func(ctx context.Context, hostIDs []uint) ([]string, error) type GetHostDEPAssignmentFunc func(ctx context.Context, hostID uint) (*fleet.HostDEPAssignment, error) type GetNanoMDMEnrollmentFunc func(ctx context.Context, id string) (*fleet.NanoEnrollment, error) type GetNanoMDMUserEnrollmentFunc func(ctx context.Context, id string) (*fleet.NanoEnrollment, error) type GetNanoMDMUserEnrollmentUsernameAndUUIDFunc func(ctx context.Context, deviceID string) (string, string, error) type UpdateNanoMDMUserEnrollmentUsernameFunc func(ctx context.Context, deviceID string, userUUID string, username string) error type GetNanoMDMEnrollmentTimesFunc func(ctx context.Context, hostUUID string) (*time.Time, *time.Time, error) type IncreasePolicyAutomationIterationFunc func(ctx context.Context, policyID uint) error type OutdatedAutomationBatchFunc func(ctx context.Context) ([]fleet.PolicyFailure, error) type ListMDMAppleProfilesToInstallFunc func(ctx context.Context, hostUUID string) ([]*fleet.MDMAppleProfilePayload, error) type ListMDMAppleProfilesToRemoveFunc func(ctx context.Context) ([]*fleet.MDMAppleProfilePayload, error) type ListMDMAppleProfilesToInstallAndRemoveFunc func(ctx context.Context) ([]*fleet.MDMAppleProfilePayload, []*fleet.MDMAppleProfilePayload, error) type BulkUpsertMDMAppleHostProfilesFunc func(ctx context.Context, payload []*fleet.MDMAppleBulkUpsertHostProfilePayload) error type BulkSetPendingMDMHostProfilesFunc func(ctx context.Context, hostIDs []uint, teamIDs []uint, profileUUIDs []string, hostUUIDs []string) (updates fleet.MDMProfilesUpdates, err error) type GetMDMAppleProfilesContentsFunc func(ctx context.Context, profileUUIDs []string) (map[string]mobileconfig.Mobileconfig, error) type UpdateOrDeleteHostMDMAppleProfileFunc func(ctx context.Context, profile *fleet.HostMDMAppleProfile) error type GetMDMAppleCommandRequestTypeFunc func(ctx context.Context, commandUUID string) (string, error) type GetMDMAppleProfilesSummaryFunc func(ctx context.Context, teamID *uint) (*fleet.MDMProfilesSummary, error) type InsertMDMIdPAccountFunc func(ctx context.Context, account *fleet.MDMIdPAccount) error type AssociateHostMDMIdPAccountDBFunc func(ctx context.Context, hostUUID string, acctUUID string) error type GetMDMIdPAccountByUUIDFunc func(ctx context.Context, uuid string) (*fleet.MDMIdPAccount, error) type GetMDMIdPAccountByEmailFunc func(ctx context.Context, email string) (*fleet.MDMIdPAccount, error) type GetMDMIdPAccountsByHostUUIDsFunc func(ctx context.Context, hostUUIDs []string) (map[string]*fleet.MDMIdPAccount, error) type GetMDMAppleFileVaultSummaryFunc func(ctx context.Context, teamID *uint) (*fleet.MDMAppleFileVaultSummary, error) type InsertMDMAppleBootstrapPackageFunc func(ctx context.Context, bp *fleet.MDMAppleBootstrapPackage, pkgStore fleet.MDMBootstrapPackageStore) error type CopyDefaultMDMAppleBootstrapPackageFunc func(ctx context.Context, ac *fleet.AppConfig, toTeamID uint) error type DeleteMDMAppleBootstrapPackageFunc func(ctx context.Context, teamID uint) error type GetMDMAppleBootstrapPackageMetaFunc func(ctx context.Context, teamID uint) (*fleet.MDMAppleBootstrapPackage, error) type GetMDMAppleBootstrapPackageBytesFunc func(ctx context.Context, token string, pkgStore fleet.MDMBootstrapPackageStore) (*fleet.MDMAppleBootstrapPackage, error) type GetMDMAppleBootstrapPackageSummaryFunc func(ctx context.Context, teamID uint) (*fleet.MDMAppleBootstrapPackageSummary, error) type RecordHostBootstrapPackageFunc func(ctx context.Context, commandUUID string, hostUUID string) error type RecordSkippedHostBootstrapPackageFunc func(ctx context.Context, hostUUID string) error type GetHostBootstrapPackageCommandFunc func(ctx context.Context, hostUUID string) (string, error) type CleanupUnusedBootstrapPackagesFunc func(ctx context.Context, pkgStore fleet.MDMBootstrapPackageStore, removeCreatedBefore time.Time) error type GetHostMDMMacOSSetupFunc func(ctx context.Context, hostID uint) (*fleet.HostMDMMacOSSetup, error) type MDMGetEULAMetadataFunc func(ctx context.Context) (*fleet.MDMEULA, error) type MDMGetEULABytesFunc func(ctx context.Context, token string) (*fleet.MDMEULA, error) type MDMInsertEULAFunc func(ctx context.Context, eula *fleet.MDMEULA) error type MDMDeleteEULAFunc func(ctx context.Context, token string) error type SetOrUpdateMDMAppleSetupAssistantFunc func(ctx context.Context, asst *fleet.MDMAppleSetupAssistant) (*fleet.MDMAppleSetupAssistant, error) type GetMDMAppleSetupAssistantFunc func(ctx context.Context, teamID *uint) (*fleet.MDMAppleSetupAssistant, error) type GetMDMAppleSetupAssistantProfileForABMTokenFunc func(ctx context.Context, teamID *uint, abmTokenOrgName string) (string, time.Time, error) type DeleteMDMAppleSetupAssistantFunc func(ctx context.Context, teamID *uint) error type SetMDMAppleSetupAssistantProfileUUIDFunc func(ctx context.Context, teamID *uint, profileUUID string, abmTokenOrgName string) error type SetMDMAppleDefaultSetupAssistantProfileUUIDFunc func(ctx context.Context, teamID *uint, profileUUID string, abmTokenOrgName string) error type GetMDMAppleDefaultSetupAssistantFunc func(ctx context.Context, teamID *uint, abmTokenOrgName string) (profileUUID string, updatedAt time.Time, err error) type GetMatchingHostSerialsFunc func(ctx context.Context, serials []string) (map[string]*fleet.Host, error) type GetMatchingHostSerialsMarkedDeletedFunc func(ctx context.Context, serials []string) (map[string]struct{}, error) type DeleteHostDEPAssignmentsFromAnotherABMFunc func(ctx context.Context, abmTokenID uint, serials []string) error type DeleteHostDEPAssignmentsFunc func(ctx context.Context, abmTokenID uint, serials []string) error type UpdateHostDEPAssignProfileResponsesFunc func(ctx context.Context, resp *godep.ProfileResponse, abmTokenID uint) error type UpdateHostDEPAssignProfileResponsesSameABMFunc func(ctx context.Context, resp *godep.ProfileResponse) error type ScreenDEPAssignProfileSerialsForCooldownFunc func(ctx context.Context, serials []string) (skipSerialsByOrgName map[string][]string, serialsByOrgName map[string][]string, err error) type GetDEPAssignProfileExpiredCooldownsFunc func(ctx context.Context) (map[uint][]string, error) type UpdateDEPAssignProfileRetryPendingFunc func(ctx context.Context, jobID uint, serials []string) error type InsertMDMAppleDDMRequestFunc func(ctx context.Context, hostUUID string, messageType string, rawJSON json.RawMessage) error type MDMAppleDDMDeclarationsTokenFunc func(ctx context.Context, hostUUID string) (*fleet.MDMAppleDDMDeclarationsToken, error) type MDMAppleDDMDeclarationItemsFunc func(ctx context.Context, hostUUID string) ([]fleet.MDMAppleDDMDeclarationItem, error) type MDMAppleDDMDeclarationsResponseFunc func(ctx context.Context, identifier string, hostUUID string) (*fleet.MDMAppleDeclaration, error) type MDMAppleBatchSetHostDeclarationStateFunc func(ctx context.Context) ([]string, error) type MDMAppleHostDeclarationsGetAndClearResyncFunc func(ctx context.Context) (hostUUIDs []string, err error) type MDMAppleStoreDDMStatusReportFunc func(ctx context.Context, hostUUID string, updates []*fleet.MDMAppleHostDeclaration) error type MDMAppleSetPendingDeclarationsAsFunc func(ctx context.Context, hostUUID string, status *fleet.MDMDeliveryStatus, detail string) error type MDMAppleSetRemoveDeclarationsAsPendingFunc func(ctx context.Context, hostUUID string, declarationUUIDs []string) error type GetMDMAppleOSUpdatesSettingsByHostSerialFunc func(ctx context.Context, hostSerial string) (string, *fleet.AppleOSUpdateSettings, error) type GetCAConfigAssetFunc func(ctx context.Context, name string, assetType fleet.CAConfigAssetType) (*fleet.CAConfigAsset, error) type SaveCAConfigAssetsFunc func(ctx context.Context, assets []fleet.CAConfigAsset) error type DeleteCAConfigAssetsFunc func(ctx context.Context, names []string) error type GetABMTokenByOrgNameFunc func(ctx context.Context, orgName string) (*fleet.ABMToken, error) type SaveABMTokenFunc func(ctx context.Context, tok *fleet.ABMToken) error type InsertVPPTokenFunc func(ctx context.Context, tok *fleet.VPPTokenData) (*fleet.VPPTokenDB, error) type ListVPPTokensFunc func(ctx context.Context) ([]*fleet.VPPTokenDB, error) type GetVPPTokenFunc func(ctx context.Context, tokenID uint) (*fleet.VPPTokenDB, error) type GetVPPTokenByTeamIDFunc func(ctx context.Context, teamID *uint) (*fleet.VPPTokenDB, error) type UpdateVPPTokenTeamsFunc func(ctx context.Context, id uint, teams []uint) (*fleet.VPPTokenDB, error) type UpdateVPPTokenFunc func(ctx context.Context, id uint, tok *fleet.VPPTokenData) (*fleet.VPPTokenDB, error) type DeleteVPPTokenFunc func(ctx context.Context, tokenID uint) error type SetABMTokenTermsExpiredForOrgNameFunc func(ctx context.Context, orgName string, expired bool) (wasSet bool, err error) type CountABMTokensWithTermsExpiredFunc func(ctx context.Context) (int, error) type InsertABMTokenFunc func(ctx context.Context, tok *fleet.ABMToken) (*fleet.ABMToken, error) type ListABMTokensFunc func(ctx context.Context) ([]*fleet.ABMToken, error) type DeleteABMTokenFunc func(ctx context.Context, tokenID uint) error type GetABMTokenByIDFunc func(ctx context.Context, tokenID uint) (*fleet.ABMToken, error) type GetABMTokenCountFunc func(ctx context.Context) (int, error) type GetABMTokenOrgNamesAssociatedWithTeamFunc func(ctx context.Context, teamID *uint) ([]string, error) type ClearMDMUpcomingActivitiesDBFunc func(ctx context.Context, tx sqlx.ExtContext, hostUUID string) error type GetMDMAppleEnrolledDeviceDeletedFromFleetFunc func(ctx context.Context, hostUUID string) (*fleet.MDMAppleEnrolledDeviceInfo, error) type GetMDMAppleHostMDMEnrollRefFunc func(ctx context.Context, hostID uint) (string, error) type UpdateMDMAppleHostMDMEnrollRefFunc func(ctx context.Context, hostID uint, enrollRef string) (bool, error) type DeactivateMDMAppleHostSCEPRenewCommandsFunc func(ctx context.Context, hostUUID string) error type ListMDMAppleEnrolledIPhoneIpadDeletedFromFleetFunc func(ctx context.Context, limit int) ([]string, error) type ReconcileMDMAppleEnrollRefFunc func(ctx context.Context, enrollRef string, machineInfo *fleet.MDMAppleMachineInfo) (string, error) type GetMDMIdPAccountByHostUUIDFunc func(ctx context.Context, hostUUID string) (*fleet.MDMIdPAccount, error) type AssociateHostMDMIdPAccountFunc func(ctx context.Context, hostUUID string, accountUUID string) error type WSTEPStoreCertificateFunc func(ctx context.Context, name string, crt *x509.Certificate) error type WSTEPNewSerialFunc func(ctx context.Context) (*big.Int, error) type WSTEPAssociateCertHashFunc func(ctx context.Context, deviceUUID string, hash string) error type MDMWindowsInsertEnrolledDeviceFunc func(ctx context.Context, device *fleet.MDMWindowsEnrolledDevice) error type MDMWindowsDeleteEnrolledDeviceOnReenrollmentFunc func(ctx context.Context, mdmDeviceHWID string) error type MDMWindowsGetEnrolledDeviceWithDeviceIDFunc func(ctx context.Context, mdmDeviceID string) (*fleet.MDMWindowsEnrolledDevice, error) type MDMWindowsGetEnrolledDeviceWithHostUUIDFunc func(ctx context.Context, hostUUID string) (*fleet.MDMWindowsEnrolledDevice, error) type MDMWindowsDeleteEnrolledDeviceWithDeviceIDFunc func(ctx context.Context, mdmDeviceID string) error type MDMWindowsInsertCommandForHostsFunc func(ctx context.Context, hostUUIDs []string, cmd *fleet.MDMWindowsCommand) error type MDMWindowsGetPendingCommandsFunc func(ctx context.Context, deviceID string) ([]*fleet.MDMWindowsCommand, error) type MDMWindowsSaveResponseFunc func(ctx context.Context, deviceID string, enrichedSyncML fleet.EnrichedSyncML, commandIDsBeingResent []string) error type GetMDMWindowsCommandResultsFunc func(ctx context.Context, commandUUID string, hostUUID string) ([]*fleet.MDMCommandResult, error) type UpdateMDMWindowsEnrollmentsHostUUIDFunc func(ctx context.Context, hostUUID string, mdmDeviceID string) (bool, error) type GetMDMWindowsConfigProfileFunc func(ctx context.Context, profileUUID string) (*fleet.MDMWindowsConfigProfile, error) type DeleteMDMWindowsConfigProfileFunc func(ctx context.Context, profileUUID string) error type DeleteMDMWindowsConfigProfileByTeamAndNameFunc func(ctx context.Context, teamID *uint, profileName string) error type GetHostMDMWindowsProfilesFunc func(ctx context.Context, hostUUID string) ([]fleet.HostMDMWindowsProfile, error) type ListMDMConfigProfilesFunc func(ctx context.Context, teamID *uint, opt fleet.ListOptions) ([]*fleet.MDMConfigProfilePayload, *fleet.PaginationMetadata, error) type ResendHostMDMProfileFunc func(ctx context.Context, hostUUID string, profileUUID string) error type BatchResendMDMProfileToHostsFunc func(ctx context.Context, profileUUID string, filters fleet.BatchResendMDMProfileFilters) (int64, error) type GetMDMConfigProfileStatusFunc func(ctx context.Context, profileUUID string) (fleet.MDMConfigProfileStatus, error) type GetHostMDMProfileInstallStatusFunc func(ctx context.Context, hostUUID string, profileUUID string) (fleet.MDMDeliveryStatus, error) type GetLinuxDiskEncryptionSummaryFunc func(ctx context.Context, teamID *uint) (fleet.MDMLinuxDiskEncryptionSummary, error) type GetMDMCommandPlatformFunc func(ctx context.Context, commandUUID string) (string, error) type ListMDMCommandsFunc func(ctx context.Context, tmFilter fleet.TeamFilter, listOpts *fleet.MDMCommandListOptions) ([]*fleet.MDMCommand, *int64, *fleet.PaginationMetadata, error) type GetMDMWindowsBitLockerSummaryFunc func(ctx context.Context, teamID *uint) (*fleet.MDMWindowsBitLockerSummary, error) type GetMDMWindowsBitLockerStatusFunc func(ctx context.Context, host *fleet.Host) (*fleet.HostMDMDiskEncryption, error) type GetMDMWindowsProfilesSummaryFunc func(ctx context.Context, teamID *uint) (*fleet.MDMProfilesSummary, error) type ListMDMWindowsProfilesToInstallFunc func(ctx context.Context) ([]*fleet.MDMWindowsProfilePayload, error) type ListMDMWindowsProfilesToRemoveFunc func(ctx context.Context) ([]*fleet.MDMWindowsProfilePayload, error) type BulkUpsertMDMWindowsHostProfilesFunc func(ctx context.Context, payload []*fleet.MDMWindowsBulkUpsertHostProfilePayload) error type GetMDMWindowsProfilesContentsFunc func(ctx context.Context, profileUUIDs []string) (map[string]fleet.MDMWindowsProfileContents, error) type BulkDeleteMDMWindowsHostsConfigProfilesFunc func(ctx context.Context, payload []*fleet.MDMWindowsProfilePayload) error type NewMDMWindowsConfigProfileFunc func(ctx context.Context, cp fleet.MDMWindowsConfigProfile, usesFleetVars []fleet.FleetVarName) (*fleet.MDMWindowsConfigProfile, error) type SetOrUpdateMDMWindowsConfigProfileFunc func(ctx context.Context, cp fleet.MDMWindowsConfigProfile) error type BatchSetMDMProfilesFunc func(ctx context.Context, tmID *uint, macProfiles []*fleet.MDMAppleConfigProfile, winProfiles []*fleet.MDMWindowsConfigProfile, macDeclarations []*fleet.MDMAppleDeclaration, androidProfiles []*fleet.MDMAndroidConfigProfile, profilesVariables []fleet.MDMProfileIdentifierFleetVariables) (updates fleet.MDMProfilesUpdates, err error) type NewMDMAppleDeclarationFunc func(ctx context.Context, declaration *fleet.MDMAppleDeclaration) (*fleet.MDMAppleDeclaration, error) type SetOrUpdateMDMAppleDeclarationFunc func(ctx context.Context, declaration *fleet.MDMAppleDeclaration) (*fleet.MDMAppleDeclaration, error) type NewHostScriptExecutionRequestFunc func(ctx context.Context, request *fleet.HostScriptRequestPayload) (*fleet.HostScriptResult, error) type SetHostScriptExecutionResultFunc func(ctx context.Context, result *fleet.HostScriptResultPayload, attemptNumber *int) (hsr *fleet.HostScriptResult, action string, err error) type GetHostScriptExecutionResultFunc func(ctx context.Context, execID string) (*fleet.HostScriptResult, error) type GetSelfServiceUninstallScriptExecutionResultFunc func(ctx context.Context, execID string, hostID uint) (*fleet.HostScriptResult, error) type ListPendingHostScriptExecutionsFunc func(ctx context.Context, hostID uint, onlyShowInternal bool) ([]*fleet.HostScriptResult, error) type ListReadyToExecuteScriptsForHostFunc func(ctx context.Context, hostID uint, onlyShowInternal bool) ([]*fleet.HostScriptResult, error) type NewScriptFunc func(ctx context.Context, script *fleet.Script) (*fleet.Script, error) type UpdateScriptContentsFunc func(ctx context.Context, scriptID uint, scriptContents string) (*fleet.Script, error) type ScriptFunc func(ctx context.Context, id uint) (*fleet.Script, error) type GetScriptContentsFunc func(ctx context.Context, id uint) ([]byte, error) type GetAnyScriptContentsFunc func(ctx context.Context, id uint) ([]byte, error) type DeleteScriptFunc func(ctx context.Context, id uint) error type ListScriptsFunc func(ctx context.Context, teamID *uint, opt fleet.ListOptions) ([]*fleet.Script, *fleet.PaginationMetadata, error) type GetScriptIDByNameFunc func(ctx context.Context, name string, teamID *uint) (uint, error) type GetHostScriptDetailsFunc func(ctx context.Context, hostID uint, teamID *uint, opts fleet.ListOptions, hostPlatform string) ([]*fleet.HostScriptDetail, *fleet.PaginationMetadata, error) type BatchSetScriptsFunc func(ctx context.Context, tmID *uint, scripts []*fleet.Script) ([]fleet.ScriptResponse, error) type BatchExecuteScriptFunc func(ctx context.Context, userID *uint, scriptID uint, hostIDs []uint) (string, error) type BatchScheduleScriptFunc func(ctx context.Context, userID *uint, scriptID uint, hostIDs []uint, notBefore time.Time) (string, error) type GetBatchActivityFunc func(ctx context.Context, executionID string) (*fleet.BatchActivity, error) type GetBatchActivityHostResultsFunc func(ctx context.Context, executionID string) ([]*fleet.BatchActivityHostResult, error) type RunScheduledBatchActivityFunc func(ctx context.Context, executionID string) error type BatchExecuteSummaryFunc func(ctx context.Context, executionID string) (*fleet.BatchActivity, error) type CancelBatchScriptFunc func(ctx context.Context, executionID string) error type ListBatchScriptExecutionsFunc func(ctx context.Context, filter fleet.BatchExecutionStatusFilter) ([]fleet.BatchActivity, error) type CountBatchScriptExecutionsFunc func(ctx context.Context, filter fleet.BatchExecutionStatusFilter) (int64, error) type MarkActivitiesAsCompletedFunc func(ctx context.Context) error type GetHostLockWipeStatusFunc func(ctx context.Context, host *fleet.Host) (*fleet.HostLockWipeStatus, error) type GetHostsLockWipeStatusBatchFunc func(ctx context.Context, hosts []*fleet.Host) (map[uint]*fleet.HostLockWipeStatus, error) type LockHostViaScriptFunc func(ctx context.Context, request *fleet.HostScriptRequestPayload, hostFleetPlatform string) error type UnlockHostViaScriptFunc func(ctx context.Context, request *fleet.HostScriptRequestPayload, hostFleetPlatform string) error type UnlockHostManuallyFunc func(ctx context.Context, hostID uint, hostFleetPlatform string, ts time.Time) error type CleanAppleMDMLockFunc func(ctx context.Context, hostUUID string) error type InsertHostLocationDataFunc func(ctx context.Context, locData fleet.HostLocationData) error type GetHostLocationDataFunc func(ctx context.Context, hostID uint) (*fleet.HostLocationData, error) type DeleteHostLocationDataFunc func(ctx context.Context, hostID uint) error type CleanupUnusedScriptContentsFunc func(ctx context.Context) error type CleanupActivitiesAndAssociatedDataFunc func(ctx context.Context, maxCount int, expiryWindowDays int) error type WipeHostViaScriptFunc func(ctx context.Context, request *fleet.HostScriptRequestPayload, hostFleetPlatform string) error type WipeHostViaWindowsMDMFunc func(ctx context.Context, host *fleet.Host, cmd *fleet.MDMWindowsCommand) error type UpdateHostLockWipeStatusFromAppleMDMResultFunc func(ctx context.Context, hostUUID string, cmdUUID string, requestType string, succeeded bool) error type GetIncludedHostIDMapForSoftwareInstallerFunc func(ctx context.Context, installerID uint) (map[uint]struct{}, error) type GetExcludedHostIDMapForSoftwareInstallerFunc func(ctx context.Context, installerID uint) (map[uint]struct{}, error) type ClearSoftwareInstallerAutoInstallPolicyStatusForHostsFunc func(ctx context.Context, installerID uint, hostIDs []uint) error type GetSoftwareInstallDetailsFunc func(ctx context.Context, executionId string) (*fleet.SoftwareInstallDetails, error) type ListPendingSoftwareInstallsFunc func(ctx context.Context, hostID uint) ([]string, error) type ListReadyToExecuteSoftwareInstallsFunc func(ctx context.Context, hostID uint) ([]string, error) type GetHostLastInstallDataFunc func(ctx context.Context, hostID uint, installerID uint) (*fleet.HostLastInstallData, error) type MatchOrCreateSoftwareInstallerFunc func(ctx context.Context, payload *fleet.UploadSoftwareInstallerPayload) (installerID uint, titleID uint, err error) type GetSoftwareInstallerMetadataByIDFunc func(ctx context.Context, id uint) (*fleet.SoftwareInstaller, error) type ValidateOrbitSoftwareInstallerAccessFunc func(ctx context.Context, hostID uint, installerID uint) (bool, error) type GetSoftwareInstallerMetadataByTeamAndTitleIDFunc func(ctx context.Context, teamID *uint, titleID uint, withScriptContents bool) (*fleet.SoftwareInstaller, error) type InsertHostInHouseAppInstallFunc func(ctx context.Context, hostID uint, inHouseAppID uint, softwareTitleID uint, commandUUID string, opts fleet.HostSoftwareInstallOptions) error type GetSoftwareInstallersPendingUninstallScriptPopulationFunc func(ctx context.Context) (map[uint]string, error) type GetMSIInstallersWithoutUpgradeCodeFunc func(ctx context.Context) (map[uint]string, error) type UpdateSoftwareInstallerWithoutPackageIDsFunc func(ctx context.Context, id uint, payload fleet.UploadSoftwareInstallerPayload) error type UpdateInstallerUpgradeCodeFunc func(ctx context.Context, id uint, upgradeCode string) error type ProcessInstallerUpdateSideEffectsFunc func(ctx context.Context, installerID uint, wasMetadataUpdated bool, wasPackageUpdated bool) error type SaveInstallerUpdatesFunc func(ctx context.Context, payload *fleet.UpdateSoftwareInstallerPayload) error type UpdateInstallerSelfServiceFlagFunc func(ctx context.Context, selfService bool, id uint) error type GetVPPAppByTeamAndTitleIDFunc func(ctx context.Context, teamID *uint, titleID uint) (*fleet.VPPApp, error) type GetVPPAppMetadataByTeamAndTitleIDFunc func(ctx context.Context, teamID *uint, titleID uint) (*fleet.VPPAppStoreApp, error) type MapAdamIDsPendingInstallFunc func(ctx context.Context, hostID uint) (map[string]struct{}, error) type MapAdamIDsPendingInstallVerificationFunc func(ctx context.Context, hostID uint) (adamIDs map[string]struct{}, err error) type MapAdamIDsRecentInstallsFunc func(ctx context.Context, hostID uint, seconds int) (adamIDs map[string]struct{}, err error) type GetTitleInfoFromVPPAppsTeamsIDFunc func(ctx context.Context, vppAppsTeamsID uint) (*fleet.PolicySoftwareTitle, error) type GetVPPAppMetadataByAdamIDPlatformTeamIDFunc func(ctx context.Context, adamID string, platform fleet.InstallableDevicePlatform, teamID *uint) (*fleet.VPPApp, error) type DeleteSoftwareInstallerFunc func(ctx context.Context, id uint) error type DeleteVPPAppFromTeamFunc func(ctx context.Context, teamID *uint, appID fleet.VPPAppID) error type GetAndroidAppsInScopeForHostFunc func(ctx context.Context, hostID uint) (applicationIDs []string, err error) type GetSummaryHostSoftwareInstallsFunc func(ctx context.Context, installerID uint) (*fleet.SoftwareInstallerStatusSummary, error) type GetSummaryHostVPPAppInstallsFunc func(ctx context.Context, teamID *uint, appID fleet.VPPAppID) (*fleet.VPPAppStatusSummary, error) type GetSoftwareInstallResultsFunc func(ctx context.Context, resultsUUID string) (*fleet.HostSoftwareInstallerResult, error) type CleanupUnusedSoftwareInstallersFunc func(ctx context.Context, softwareInstallStore fleet.SoftwareInstallerStore, removeCreatedBefore time.Time) error type SaveInHouseAppUpdatesFunc func(ctx context.Context, payload *fleet.UpdateSoftwareInstallerPayload) error type GetInHouseAppMetadataByTeamAndTitleIDFunc func(ctx context.Context, teamID *uint, titleID uint) (*fleet.SoftwareInstaller, error) type RemovePendingInHouseAppInstallsFunc func(ctx context.Context, inHouseAppID uint) error type GetSummaryHostInHouseAppInstallsFunc func(ctx context.Context, teamID *uint, inHouseAppID uint) (*fleet.VPPAppStatusSummary, error) type DeleteInHouseAppFunc func(ctx context.Context, id uint) error type CleanupUnusedSoftwareTitleIconsFunc func(ctx context.Context, softwareTitleIconStore fleet.SoftwareTitleIconStore, removeCreatedBefore time.Time) error type BatchSetSoftwareInstallersFunc func(ctx context.Context, tmID *uint, installers []*fleet.UploadSoftwareInstallerPayload) error type BatchSetInHouseAppsInstallersFunc func(ctx context.Context, tmID *uint, installers []*fleet.UploadSoftwareInstallerPayload) error type GetSoftwareInstallersFunc func(ctx context.Context, tmID uint) ([]fleet.SoftwarePackageResponse, error) type HasSelfServiceSoftwareInstallersFunc func(ctx context.Context, platform string, teamID *uint) (bool, error) type CreateOrUpdateSoftwareTitleIconFunc func(ctx context.Context, payload *fleet.UploadSoftwareTitleIconPayload) (*fleet.SoftwareTitleIcon, error) type GetSoftwareTitleIconFunc func(ctx context.Context, teamID uint, titleID uint) (*fleet.SoftwareTitleIcon, error) type GetTeamIdsForIconStorageIdFunc func(ctx context.Context, storageID string) ([]uint, error) type GetSoftwareIconsByTeamAndTitleIdsFunc func(ctx context.Context, teamID uint, titleIDs []uint) (map[uint]fleet.SoftwareTitleIcon, error) type DeleteSoftwareTitleIconFunc func(ctx context.Context, teamID uint, titleID uint) error type DeleteIconsAssociatedWithTitlesWithoutInstallersFunc func(ctx context.Context, teamID uint) error type ActivityDetailsForSoftwareTitleIconFunc func(ctx context.Context, teamID uint, titleID uint) (fleet.DetailsForSoftwareIconActivity, error) type BatchInsertVPPAppsFunc func(ctx context.Context, apps []*fleet.VPPApp) error type GetAssignedVPPAppsFunc func(ctx context.Context, teamID *uint) (map[fleet.VPPAppID]fleet.VPPAppTeam, error) type GetVPPAppsFunc func(ctx context.Context, teamID *uint) ([]fleet.VPPAppResponse, error) type SetTeamVPPAppsFunc func(ctx context.Context, teamID *uint, appIDs []fleet.VPPAppTeam, appStoreAppIDsToTitleIDs map[string]uint) (bool, error) type InsertVPPAppWithTeamFunc func(ctx context.Context, app *fleet.VPPApp, teamID *uint) (*fleet.VPPApp, error) type GetVPPAppsToInstallDuringSetupExperienceFunc func(ctx context.Context, teamID *uint, platform string) ([]string, error) type GetAllVPPAppsFunc func(ctx context.Context) ([]*fleet.VPPApp, error) type InsertVPPAppsFunc func(ctx context.Context, apps []*fleet.VPPApp) error type InsertHostVPPSoftwareInstallFunc func(ctx context.Context, hostID uint, appID fleet.VPPAppID, commandUUID string, associatedEventID string, opts fleet.HostSoftwareInstallOptions) error type GetPastActivityDataForVPPAppInstallFunc func(ctx context.Context, commandResults *mdm.CommandResults) (*fleet.User, *fleet.ActivityInstalledAppStoreApp, error) type GetVPPAppInstallStatusByCommandUUIDFunc func(ctx context.Context, commandUUID string) (bool, error) type IsAutoUpdateVPPInstallFunc func(ctx context.Context, commandUUID string) (bool, error) type GetVPPTokenByLocationFunc func(ctx context.Context, loc string) (*fleet.VPPTokenDB, error) type GetIncludedHostIDMapForVPPAppFunc func(ctx context.Context, vppAppTeamID uint) (map[uint]struct{}, error) type GetIncludedHostUUIDMapForAppStoreAppFunc func(ctx context.Context, vppAppTeamID uint) (map[string]string, error) type GetExcludedHostIDMapForVPPAppFunc func(ctx context.Context, vppAppTeamID uint) (map[uint]struct{}, error) type ClearVPPAppAutoInstallPolicyStatusForHostsFunc func(ctx context.Context, vppAppTeamID uint, hostIDs []uint) error type SetSetupExperienceSoftwareTitlesFunc func(ctx context.Context, platform string, teamID uint, titleIDs []uint) error type ListSetupExperienceSoftwareTitlesFunc func(ctx context.Context, platform string, teamID uint, opts fleet.ListOptions) ([]fleet.SoftwareTitleListResult, int, *fleet.PaginationMetadata, error) type SetHostAwaitingConfigurationFunc func(ctx context.Context, hostUUID string, inSetupExperience bool) error type GetHostAwaitingConfigurationFunc func(ctx context.Context, hostUUID string) (bool, error) type GetTeamsWithInstallerByHashFunc func(ctx context.Context, sha256 string, url string) (map[uint][]*fleet.ExistingSoftwareInstaller, error) type TeamIDsWithSetupExperienceIdPEnabledFunc func(ctx context.Context) ([]uint, error) type ListSetupExperienceResultsByHostUUIDFunc func(ctx context.Context, hostUUID string) ([]*fleet.SetupExperienceStatusResult, error) type UpdateSetupExperienceStatusResultFunc func(ctx context.Context, status *fleet.SetupExperienceStatusResult) error type EnqueueSetupExperienceItemsFunc func(ctx context.Context, hostPlatformLike string, hostUUID string, teamID uint) (bool, error) type ResetSetupExperienceItemsAfterFailureFunc func(ctx context.Context, hostPlatformLike string, hostUUID string, teamID uint) (bool, error) type CancelPendingSetupExperienceStepsFunc func(ctx context.Context, hostUUID string) error type GetSetupExperienceScriptFunc func(ctx context.Context, teamID *uint) (*fleet.Script, error) type GetSetupExperienceScriptByIDFunc func(ctx context.Context, scriptID uint) (*fleet.Script, error) type SetSetupExperienceScriptFunc func(ctx context.Context, script *fleet.Script) error type DeleteSetupExperienceScriptFunc func(ctx context.Context, teamID *uint) error type MaybeUpdateSetupExperienceScriptStatusFunc func(ctx context.Context, hostUUID string, executionID string, status fleet.SetupExperienceStatusResultStatus) (bool, error) type MaybeUpdateSetupExperienceSoftwareInstallStatusFunc func(ctx context.Context, hostUUID string, executionID string, status fleet.SetupExperienceStatusResultStatus) (bool, error) type MaybeUpdateSetupExperienceVPPStatusFunc func(ctx context.Context, hostUUID string, commandUUID string, status fleet.SetupExperienceStatusResultStatus) (bool, error) type ListAvailableFleetMaintainedAppsFunc func(ctx context.Context, teamID *uint, opt fleet.ListOptions) ([]fleet.MaintainedApp, *fleet.PaginationMetadata, error) type ClearRemovedFleetMaintainedAppsFunc func(ctx context.Context, slugsToKeep []string) error type GetSetupExperienceCountFunc func(ctx context.Context, platform string, teamID *uint) (*fleet.SetupExperienceCount, error) type GetMaintainedAppByIDFunc func(ctx context.Context, appID uint, teamID *uint) (*fleet.MaintainedApp, error) type GetMaintainedAppBySlugFunc func(ctx context.Context, slug string, teamID *uint) (*fleet.MaintainedApp, error) type UpsertMaintainedAppFunc func(ctx context.Context, app *fleet.MaintainedApp) (*fleet.MaintainedApp, error) type BulkUpsertMDMManagedCertificatesFunc func(ctx context.Context, payload []*fleet.MDMManagedCertificate) error type GetAppleHostMDMCertificateProfileFunc func(ctx context.Context, hostUUID string, profileUUID string, caName string) (*fleet.HostMDMCertificateProfile, error) type GetWindowsHostMDMCertificateProfileFunc func(ctx context.Context, hostUUID string, profileUUID string, caName string) (*fleet.HostMDMCertificateProfile, error) type CleanUpMDMManagedCertificatesFunc func(ctx context.Context) error type RenewMDMManagedCertificatesFunc func(ctx context.Context) error type ListHostMDMManagedCertificatesFunc func(ctx context.Context, hostUUID string) ([]*fleet.MDMManagedCertificate, error) type ResendHostCertificateProfileFunc func(ctx context.Context, hostUUID string, profUUID string) error type UpsertSecretVariablesFunc func(ctx context.Context, secretVariables []fleet.SecretVariable) error type CreateSecretVariableFunc func(ctx context.Context, name string, value string) (id uint, err error) type ListSecretVariablesFunc func(ctx context.Context, opt fleet.ListOptions) (secretVariables []fleet.SecretVariableIdentifier, meta *fleet.PaginationMetadata, count int, err error) type DeleteSecretVariableFunc func(ctx context.Context, id uint) (name string, err error) type GetSecretVariablesFunc func(ctx context.Context, names []string) ([]fleet.SecretVariable, error) type ValidateEmbeddedSecretsFunc func(ctx context.Context, documents []string) error type ExpandEmbeddedSecretsFunc func(ctx context.Context, document string) (string, error) type ExpandEmbeddedSecretsAndUpdatedAtFunc func(ctx context.Context, document string) (string, *time.Time, error) type CreateEnterpriseFunc func(ctx context.Context, userID uint) (uint, error) type GetEnterpriseByIDFunc func(ctx context.Context, id uint) (*android.EnterpriseDetails, error) type GetEnterpriseBySignupTokenFunc func(ctx context.Context, signupToken string) (*android.EnterpriseDetails, error) type GetEnterpriseFunc func(ctx context.Context) (*android.Enterprise, error) type UpdateEnterpriseFunc func(ctx context.Context, enterprise *android.EnterpriseDetails) error type DeleteAllEnterprisesFunc func(ctx context.Context) error type DeleteOtherEnterprisesFunc func(ctx context.Context, id uint) error type CreateDeviceTxFunc func(ctx context.Context, tx sqlx.ExtContext, device *android.Device) (*android.Device, error) type UpdateDeviceTxFunc func(ctx context.Context, tx sqlx.ExtContext, device *android.Device) error type AndroidHostLiteFunc func(ctx context.Context, enterpriseSpecificID string) (*fleet.AndroidHost, error) type AndroidHostLiteByHostUUIDFunc func(ctx context.Context, hostUUID string) (*fleet.AndroidHost, error) type BulkSetAndroidHostsUnenrolledFunc func(ctx context.Context) error type SetAndroidHostUnenrolledFunc func(ctx context.Context, hostID uint) (bool, error) type NewAndroidHostFunc func(ctx context.Context, host *fleet.AndroidHost, companyOwned bool) (*fleet.AndroidHost, error) type SetAndroidEnabledAndConfiguredFunc func(ctx context.Context, configured bool) error type UpdateAndroidHostFunc func(ctx context.Context, host *fleet.AndroidHost, fromEnroll bool, companyOwned bool) error type BulkUpsertMDMAndroidHostProfilesFunc func(ctx context.Context, payload []*fleet.MDMAndroidProfilePayload) error type BulkDeleteMDMAndroidHostProfilesFunc func(ctx context.Context, hostUUID string, policyVersionID int64) error type ListHostMDMAndroidProfilesPendingOrFailedInstallWithVersionFunc func(ctx context.Context, hostUUID string, policyVersion int64) ([]*fleet.MDMAndroidProfilePayload, error) type GetAndroidPolicyRequestByUUIDFunc func(ctx context.Context, requestUUID string) (*android.MDMAndroidPolicyRequest, error) type GetLatestAppleMDMCommandOfTypeFunc func(ctx context.Context, hostUUID string, commandType string) (*fleet.MDMCommand, error) type SetLockCommandForLostModeCheckinFunc func(ctx context.Context, hostID uint, commandUUID string) error type ListHostMDMAndroidVPPAppsPendingInstallWithVersionFunc func(ctx context.Context, hostUUID string, policyVersion int64) ([]*fleet.HostAndroidVPPSoftwareInstall, error) type BulkSetVPPInstallsAsVerifiedFunc func(ctx context.Context, hostID uint, commandUUIDs []string) error type BulkSetVPPInstallsAsFailedFunc func(ctx context.Context, hostID uint, commandUUIDs []string) error type GetPastActivityDataForAndroidVPPAppInstallFunc func(ctx context.Context, cmdUUID string, status fleet.SoftwareInstallerStatus) (*fleet.User, *fleet.ActivityInstalledAppStoreApp, error) type MarkAllPendingAndroidVPPInstallsAsFailedFunc func(ctx context.Context) error type MarkAllPendingVPPInstallsAsFailedForAndroidHostFunc func(ctx context.Context, hostID uint) (users []*fleet.User, activities []fleet.ActivityDetails, err error) type NewMDMAndroidConfigProfileFunc func(ctx context.Context, cp fleet.MDMAndroidConfigProfile) (*fleet.MDMAndroidConfigProfile, error) type GetMDMAndroidConfigProfileFunc func(ctx context.Context, profileUUID string) (*fleet.MDMAndroidConfigProfile, error) type DeleteMDMAndroidConfigProfileFunc func(ctx context.Context, profileUUID string) error type GetMDMAndroidProfilesSummaryFunc func(ctx context.Context, teamID *uint) (*fleet.MDMProfilesSummary, error) type GetHostCertificateTemplatesFunc func(ctx context.Context, hostUUID string) ([]fleet.HostCertificateTemplate, error) type CreatePendingCertificateTemplatesForExistingHostsFunc func(ctx context.Context, certificateTemplateID uint, teamID uint) (int64, error) type CreatePendingCertificateTemplatesForNewHostFunc func(ctx context.Context, hostUUID string, teamID uint) (int64, error) type RevertStaleCertificateTemplatesFunc func(ctx context.Context, staleDuration time.Duration) (int64, error) type GetHostMDMAndroidProfilesFunc func(ctx context.Context, hostUUID string) ([]fleet.HostMDMAndroidProfile, error) type NewAndroidPolicyRequestFunc func(ctx context.Context, req *android.MDMAndroidPolicyRequest) error type ListMDMAndroidProfilesToSendFunc func(ctx context.Context) ([]*fleet.MDMAndroidProfilePayload, []*fleet.MDMAndroidProfilePayload, error) type GetMDMAndroidProfilesContentsFunc func(ctx context.Context, uuids []string) (map[string]json.RawMessage, error) type ListAndroidEnrolledDevicesForReconcileFunc func(ctx context.Context) ([]*android.Device, error) type InsertAndroidSetupExperienceSoftwareInstallFunc func(ctx context.Context, payload *fleet.HostAndroidVPPSoftwareInstall) error type GetAndroidAppConfigurationFunc func(ctx context.Context, applicationID string, teamID uint) (*json.RawMessage, error) type GetAndroidAppConfigurationByAppTeamIDFunc func(ctx context.Context, vppAppTeamID uint) (*json.RawMessage, error) type HasAndroidAppConfigurationChangedFunc func(ctx context.Context, applicationID string, teamID uint, newConfig json.RawMessage) (bool, error) type SetAndroidAppInstallPendingApplyConfigFunc func(ctx context.Context, hostUUID string, applicationID string, policyVersion int64) error type BulkGetAndroidAppConfigurationsFunc func(ctx context.Context, appIDs []string, teamID uint) (map[string]json.RawMessage, error) type DeleteAndroidAppConfigurationFunc func(ctx context.Context, adamID string, teamID uint) error type ListMDMAndroidUUIDsToHostIDsFunc func(ctx context.Context, hostIDs []uint) (map[string]uint, error) type CreateScimUserFunc func(ctx context.Context, user *fleet.ScimUser) (uint, error) type ScimUserByIDFunc func(ctx context.Context, id uint) (*fleet.ScimUser, error) type ScimUserByUserNameFunc func(ctx context.Context, userName string) (*fleet.ScimUser, error) type ScimUserByUserNameOrEmailFunc func(ctx context.Context, userName string, email string) (*fleet.ScimUser, error) type ScimUserByHostIDFunc func(ctx context.Context, hostID uint) (*fleet.ScimUser, error) type ScimUsersExistFunc func(ctx context.Context, ids []uint) (bool, error) type ReplaceScimUserFunc func(ctx context.Context, user *fleet.ScimUser) error type DeleteScimUserFunc func(ctx context.Context, id uint) error type ListScimUsersFunc func(ctx context.Context, opts fleet.ScimUsersListOptions) (users []fleet.ScimUser, totalResults uint, err error) type CreateScimGroupFunc func(ctx context.Context, group *fleet.ScimGroup) (uint, error) type ScimGroupByIDFunc func(ctx context.Context, id uint, excludeUsers bool) (*fleet.ScimGroup, error) type ScimGroupByDisplayNameFunc func(ctx context.Context, displayName string) (*fleet.ScimGroup, error) type ReplaceScimGroupFunc func(ctx context.Context, group *fleet.ScimGroup) error type DeleteScimGroupFunc func(ctx context.Context, id uint) error type ListScimGroupsFunc func(ctx context.Context, opts fleet.ScimGroupsListOptions) (groups []fleet.ScimGroup, totalResults uint, err error) type ScimLastRequestFunc func(ctx context.Context) (*fleet.ScimLastRequest, error) type UpdateScimLastRequestFunc func(ctx context.Context, lastRequest *fleet.ScimLastRequest) error type MaybeAssociateHostWithScimUserFunc func(ctx context.Context, hostID uint) error type NewChallengeFunc func(ctx context.Context) (string, error) type ConsumeChallengeFunc func(ctx context.Context, challenge string) error type CleanupExpiredChallengesFunc func(ctx context.Context) (int64, error) type ConditionalAccessMicrosoftCreateIntegrationFunc func(ctx context.Context, tenantID string, proxyServerSecret string) error type ConditionalAccessMicrosoftGetFunc func(ctx context.Context) (*fleet.ConditionalAccessMicrosoftIntegration, error) type ConditionalAccessMicrosoftMarkSetupDoneFunc func(ctx context.Context) error type ConditionalAccessMicrosoftDeleteFunc func(ctx context.Context) error type LoadHostConditionalAccessStatusFunc func(ctx context.Context, hostID uint) (*fleet.HostConditionalAccessStatus, error) type CreateHostConditionalAccessStatusFunc func(ctx context.Context, hostID uint, deviceID string, userPrincipalName string) error type SetHostConditionalAccessStatusFunc func(ctx context.Context, hostID uint, managed bool, compliant bool) error type GetHostIdentityCertBySerialNumberFunc func(ctx context.Context, serialNumber uint64) (*types.HostIdentityCertificate, error) type GetHostIdentityCertByNameFunc func(ctx context.Context, name string) (*types.HostIdentityCertificate, error) type UpdateHostIdentityCertHostIDBySerialFunc func(ctx context.Context, serialNumber uint64, hostID uint) error type GetMDMSCEPCertBySerialFunc func(ctx context.Context, serialNumber uint64) (deviceUUID string, err error) type GetConditionalAccessCertHostIDBySerialNumberFunc func(ctx context.Context, serial uint64) (uint, error) type GetConditionalAccessCertCreatedAtByHostIDFunc func(ctx context.Context, hostID uint) (*time.Time, error) type RevokeOldConditionalAccessCertsFunc func(ctx context.Context, gracePeriod time.Duration) (int64, error) type NewCertificateAuthorityFunc func(ctx context.Context, ca *fleet.CertificateAuthority) (*fleet.CertificateAuthority, error) type GetCertificateAuthorityByIDFunc func(ctx context.Context, id uint, includeSecrets bool) (*fleet.CertificateAuthority, error) type GetAllCertificateAuthoritiesFunc func(ctx context.Context, includeSecrets bool) ([]*fleet.CertificateAuthority, error) type GetGroupedCertificateAuthoritiesFunc func(ctx context.Context, includeSecrets bool) (*fleet.GroupedCertificateAuthorities, error) type ListCertificateAuthoritiesFunc func(ctx context.Context) ([]*fleet.CertificateAuthoritySummary, error) type DeleteCertificateAuthorityFunc func(ctx context.Context, certificateAuthorityID uint) (*fleet.CertificateAuthoritySummary, error) type UpdateCertificateAuthorityByIDFunc func(ctx context.Context, id uint, certificateAuthority *fleet.CertificateAuthority) error type BatchApplyCertificateAuthoritiesFunc func(ctx context.Context, ops fleet.CertificateAuthoritiesBatchOperations) error type UpsertCertificateStatusFunc func(ctx context.Context, update *fleet.CertificateStatusUpdate) error type BatchUpsertCertificateTemplatesFunc func(ctx context.Context, certificates []*fleet.CertificateTemplate) ([]uint, error) type BatchDeleteCertificateTemplatesFunc func(ctx context.Context, certificateTemplateIDs []uint) (bool, error) type CreateCertificateTemplateFunc func(ctx context.Context, certificateTemplate *fleet.CertificateTemplate) (*fleet.CertificateTemplateResponse, error) type DeleteCertificateTemplateFunc func(ctx context.Context, id uint) error type GetCertificateTemplateByIdFunc func(ctx context.Context, id uint) (*fleet.CertificateTemplateResponse, error) type GetCertificateTemplateByIdForHostFunc func(ctx context.Context, id uint, hostUUID string) (*fleet.CertificateTemplateResponseForHost, error) type GetCertificateTemplatesByTeamIDFunc func(ctx context.Context, teamID uint, opts fleet.ListOptions) ([]*fleet.CertificateTemplateResponseSummary, *fleet.PaginationMetadata, error) type GetCertificateTemplatesByIdsAndTeamFunc func(ctx context.Context, ids []uint, teamID uint) ([]*fleet.CertificateTemplateResponse, error) type GetCertificateTemplateByTeamIDAndNameFunc func(ctx context.Context, teamID uint, name string) (*fleet.CertificateTemplateResponse, error) type ListAndroidHostUUIDsWithDeliverableCertificateTemplatesFunc func(ctx context.Context, offset int, limit int) ([]string, error) type ListCertificateTemplatesForHostsFunc func(ctx context.Context, hostUUIDs []string) ([]fleet.CertificateTemplateForHost, error) type GetCertificateTemplateForHostFunc func(ctx context.Context, hostUUID string, certificateTemplateID uint) (*fleet.CertificateTemplateForHost, error) type GetHostCertificateTemplateRecordFunc func(ctx context.Context, hostUUID string, certificateTemplateID uint) (*fleet.HostCertificateTemplate, error) type BulkInsertHostCertificateTemplatesFunc func(ctx context.Context, hostCertTemplates []fleet.HostCertificateTemplate) error type DeleteHostCertificateTemplatesFunc func(ctx context.Context, hostCertTemplates []fleet.HostCertificateTemplate) error type DeleteHostCertificateTemplateFunc func(ctx context.Context, hostUUID string, certificateTemplateID uint) error type ListAndroidHostUUIDsWithPendingCertificateTemplatesFunc func(ctx context.Context, offset int, limit int) ([]string, error) type GetAndTransitionCertificateTemplatesToDeliveringFunc func(ctx context.Context, hostUUID string) (*fleet.HostCertificateTemplatesForDelivery, error) type TransitionCertificateTemplatesToDeliveredFunc func(ctx context.Context, hostUUID string, templateIDs []uint) error type RevertHostCertificateTemplatesToPendingFunc func(ctx context.Context, hostUUID string, certificateTemplateIDs []uint) error type SetHostCertificateTemplatesToPendingRemoveFunc func(ctx context.Context, certificateTemplateID uint) error type SetHostCertificateTemplatesToPendingRemoveForHostFunc func(ctx context.Context, hostUUID string) error type GetAndroidCertificateTemplatesForRenewalFunc func(ctx context.Context, limit int) ([]fleet.HostCertificateTemplateForRenewal, error) type SetAndroidCertificateTemplatesForRenewalFunc func(ctx context.Context, templates []fleet.HostCertificateTemplateForRenewal) error type GetOrCreateFleetChallengeForCertificateTemplateFunc func(ctx context.Context, hostUUID string, certificateTemplateID uint) (string, error) type GetCurrentTimeFunc func(ctx context.Context) (time.Time, error) type UpdateOrDeleteHostMDMWindowsProfileFunc func(ctx context.Context, profile *fleet.HostMDMWindowsProfile) error type GetWindowsMDMCommandsForResendingFunc func(ctx context.Context, failedCommandIds []string) ([]*fleet.MDMWindowsCommand, error) type ResendWindowsMDMCommandFunc func(ctx context.Context, mdmDeviceId string, newCmd *fleet.MDMWindowsCommand, oldCmd *fleet.MDMWindowsCommand) error type GetHostVPPInstallByCommandUUIDFunc func(ctx context.Context, commandUUID string) (*fleet.HostVPPSoftwareInstallLite, error) type RetryVPPInstallFunc func(ctx context.Context, vppInstall *fleet.HostVPPSoftwareInstallLite) error type MDMWindowsUpdateEnrolledDeviceCredentialsFunc func(ctx context.Context, deviceId string, credentialsHash []byte) error type MDMWindowsAcknowledgeEnrolledDeviceCredentialsFunc func(ctx context.Context, deviceId string) error type DataStore struct { AppConfigFunc AppConfigFunc AppConfigFuncInvoked bool InsertMDMConfigAssetsFunc InsertMDMConfigAssetsFunc InsertMDMConfigAssetsFuncInvoked bool InsertOrReplaceMDMConfigAssetFunc InsertOrReplaceMDMConfigAssetFunc InsertOrReplaceMDMConfigAssetFuncInvoked bool GetAllMDMConfigAssetsByNameFunc GetAllMDMConfigAssetsByNameFunc GetAllMDMConfigAssetsByNameFuncInvoked bool GetAllMDMConfigAssetsHashesFunc GetAllMDMConfigAssetsHashesFunc GetAllMDMConfigAssetsHashesFuncInvoked bool DeleteMDMConfigAssetsByNameFunc DeleteMDMConfigAssetsByNameFunc DeleteMDMConfigAssetsByNameFuncInvoked bool HardDeleteMDMConfigAssetFunc HardDeleteMDMConfigAssetFunc HardDeleteMDMConfigAssetFuncInvoked bool ReplaceMDMConfigAssetsFunc ReplaceMDMConfigAssetsFunc ReplaceMDMConfigAssetsFuncInvoked bool GetAllCAConfigAssetsByTypeFunc GetAllCAConfigAssetsByTypeFunc GetAllCAConfigAssetsByTypeFuncInvoked bool HealthCheckFunc HealthCheckFunc HealthCheckFuncInvoked bool NewCarveFunc NewCarveFunc NewCarveFuncInvoked bool UpdateCarveFunc UpdateCarveFunc UpdateCarveFuncInvoked bool CarveFunc CarveFunc CarveFuncInvoked bool CarveBySessionIdFunc CarveBySessionIdFunc CarveBySessionIdFuncInvoked bool CarveByNameFunc CarveByNameFunc CarveByNameFuncInvoked bool ListCarvesFunc ListCarvesFunc ListCarvesFuncInvoked bool NewBlockFunc NewBlockFunc NewBlockFuncInvoked bool GetBlockFunc GetBlockFunc GetBlockFuncInvoked bool CleanupCarvesFunc CleanupCarvesFunc CleanupCarvesFuncInvoked bool NewUserFunc NewUserFunc NewUserFuncInvoked bool HasUsersFunc HasUsersFunc HasUsersFuncInvoked bool ListUsersFunc ListUsersFunc ListUsersFuncInvoked bool UsersByIDsFunc UsersByIDsFunc UsersByIDsFuncInvoked bool UserByEmailFunc UserByEmailFunc UserByEmailFuncInvoked bool UserByIDFunc UserByIDFunc UserByIDFuncInvoked bool UserOrDeletedUserByIDFunc UserOrDeletedUserByIDFunc UserOrDeletedUserByIDFuncInvoked bool SaveUserFunc SaveUserFunc SaveUserFuncInvoked bool SaveUsersFunc SaveUsersFunc SaveUsersFuncInvoked bool DeleteUserFunc DeleteUserFunc DeleteUserFuncInvoked bool CountGlobalAdminsFunc CountGlobalAdminsFunc CountGlobalAdminsFuncInvoked bool PendingEmailChangeFunc PendingEmailChangeFunc PendingEmailChangeFuncInvoked bool ConfirmPendingEmailChangeFunc ConfirmPendingEmailChangeFunc ConfirmPendingEmailChangeFuncInvoked bool UserSettingsFunc UserSettingsFunc UserSettingsFuncInvoked bool ApplyQueriesFunc ApplyQueriesFunc ApplyQueriesFuncInvoked bool NewQueryFunc NewQueryFunc NewQueryFuncInvoked bool SaveQueryFunc SaveQueryFunc SaveQueryFuncInvoked bool DeleteQueryFunc DeleteQueryFunc DeleteQueryFuncInvoked bool DeleteQueriesFunc DeleteQueriesFunc DeleteQueriesFuncInvoked bool QueryFunc QueryFunc QueryFuncInvoked bool ListQueriesFunc ListQueriesFunc ListQueriesFuncInvoked bool ListScheduledQueriesForAgentsFunc ListScheduledQueriesForAgentsFunc ListScheduledQueriesForAgentsFuncInvoked bool QueryByNameFunc QueryByNameFunc QueryByNameFuncInvoked bool ObserverCanRunQueryFunc ObserverCanRunQueryFunc ObserverCanRunQueryFuncInvoked bool CleanupGlobalDiscardQueryResultsFunc CleanupGlobalDiscardQueryResultsFunc CleanupGlobalDiscardQueryResultsFuncInvoked bool IsSavedQueryFunc IsSavedQueryFunc IsSavedQueryFuncInvoked bool GetLiveQueryStatsFunc GetLiveQueryStatsFunc GetLiveQueryStatsFuncInvoked bool UpdateLiveQueryStatsFunc UpdateLiveQueryStatsFunc UpdateLiveQueryStatsFuncInvoked bool CalculateAggregatedPerfStatsPercentilesFunc CalculateAggregatedPerfStatsPercentilesFunc CalculateAggregatedPerfStatsPercentilesFuncInvoked bool NewDistributedQueryCampaignFunc NewDistributedQueryCampaignFunc NewDistributedQueryCampaignFuncInvoked bool DistributedQueryCampaignFunc DistributedQueryCampaignFunc DistributedQueryCampaignFuncInvoked bool SaveDistributedQueryCampaignFunc SaveDistributedQueryCampaignFunc SaveDistributedQueryCampaignFuncInvoked bool DistributedQueryCampaignTargetIDsFunc DistributedQueryCampaignTargetIDsFunc DistributedQueryCampaignTargetIDsFuncInvoked bool NewDistributedQueryCampaignTargetFunc NewDistributedQueryCampaignTargetFunc NewDistributedQueryCampaignTargetFuncInvoked bool CleanupDistributedQueryCampaignsFunc CleanupDistributedQueryCampaignsFunc CleanupDistributedQueryCampaignsFuncInvoked bool CleanupCompletedCampaignTargetsFunc CleanupCompletedCampaignTargetsFunc CleanupCompletedCampaignTargetsFuncInvoked bool GetCompletedCampaignsFunc GetCompletedCampaignsFunc GetCompletedCampaignsFuncInvoked bool DistributedQueryCampaignsForQueryFunc DistributedQueryCampaignsForQueryFunc DistributedQueryCampaignsForQueryFuncInvoked bool ApplyPackSpecsFunc ApplyPackSpecsFunc ApplyPackSpecsFuncInvoked bool GetPackSpecsFunc GetPackSpecsFunc GetPackSpecsFuncInvoked bool GetPackSpecFunc GetPackSpecFunc GetPackSpecFuncInvoked bool NewPackFunc NewPackFunc NewPackFuncInvoked bool SavePackFunc SavePackFunc SavePackFuncInvoked bool DeletePackFunc DeletePackFunc DeletePackFuncInvoked bool PackFunc PackFunc PackFuncInvoked bool ListPacksFunc ListPacksFunc ListPacksFuncInvoked bool PackByNameFunc PackByNameFunc PackByNameFuncInvoked bool ListPacksForHostFunc ListPacksForHostFunc ListPacksForHostFuncInvoked bool ApplyLabelSpecsFunc ApplyLabelSpecsFunc ApplyLabelSpecsFuncInvoked bool ApplyLabelSpecsWithAuthorFunc ApplyLabelSpecsWithAuthorFunc ApplyLabelSpecsWithAuthorFuncInvoked bool SetAsideLabelsFunc SetAsideLabelsFunc SetAsideLabelsFuncInvoked bool GetLabelSpecsFunc GetLabelSpecsFunc GetLabelSpecsFuncInvoked bool GetLabelSpecFunc GetLabelSpecFunc GetLabelSpecFuncInvoked bool AddLabelsToHostFunc AddLabelsToHostFunc AddLabelsToHostFuncInvoked bool RemoveLabelsFromHostFunc RemoveLabelsFromHostFunc RemoveLabelsFromHostFuncInvoked bool UpdateLabelMembershipByHostIDsFunc UpdateLabelMembershipByHostIDsFunc UpdateLabelMembershipByHostIDsFuncInvoked bool UpdateLabelMembershipByHostCriteriaFunc UpdateLabelMembershipByHostCriteriaFunc UpdateLabelMembershipByHostCriteriaFuncInvoked bool NewLabelFunc NewLabelFunc NewLabelFuncInvoked bool SaveLabelFunc SaveLabelFunc SaveLabelFuncInvoked bool DeleteLabelFunc DeleteLabelFunc DeleteLabelFuncInvoked bool LabelByNameFunc LabelByNameFunc LabelByNameFuncInvoked bool LabelFunc LabelFunc LabelFuncInvoked bool ListLabelsFunc ListLabelsFunc ListLabelsFuncInvoked bool LabelsSummaryFunc LabelsSummaryFunc LabelsSummaryFuncInvoked bool GetEnrollmentIDsWithPendingMDMAppleCommandsFunc GetEnrollmentIDsWithPendingMDMAppleCommandsFunc GetEnrollmentIDsWithPendingMDMAppleCommandsFuncInvoked bool LabelQueriesForHostFunc LabelQueriesForHostFunc LabelQueriesForHostFuncInvoked bool ListLabelsForHostFunc ListLabelsForHostFunc ListLabelsForHostFuncInvoked bool ListHostsInLabelFunc ListHostsInLabelFunc ListHostsInLabelFuncInvoked bool SearchLabelsFunc SearchLabelsFunc SearchLabelsFuncInvoked bool LabelIDsByNameFunc LabelIDsByNameFunc LabelIDsByNameFuncInvoked bool LabelsByNameFunc LabelsByNameFunc LabelsByNameFuncInvoked bool AsyncBatchInsertLabelMembershipFunc AsyncBatchInsertLabelMembershipFunc AsyncBatchInsertLabelMembershipFuncInvoked bool AsyncBatchDeleteLabelMembershipFunc AsyncBatchDeleteLabelMembershipFunc AsyncBatchDeleteLabelMembershipFuncInvoked bool AsyncBatchUpdateLabelTimestampFunc AsyncBatchUpdateLabelTimestampFunc AsyncBatchUpdateLabelTimestampFuncInvoked bool NewHostFunc NewHostFunc NewHostFuncInvoked bool DeleteHostFunc DeleteHostFunc DeleteHostFuncInvoked bool HostFunc HostFunc HostFuncInvoked bool GetHostHealthFunc GetHostHealthFunc GetHostHealthFuncInvoked bool ListHostsFunc ListHostsFunc ListHostsFuncInvoked bool ListBatchScriptHostsFunc ListBatchScriptHostsFunc ListBatchScriptHostsFuncInvoked bool ListHostsLiteByUUIDsFunc ListHostsLiteByUUIDsFunc ListHostsLiteByUUIDsFuncInvoked bool ListHostsLiteByIDsFunc ListHostsLiteByIDsFunc ListHostsLiteByIDsFuncInvoked bool ListHostUsersFunc ListHostUsersFunc ListHostUsersFuncInvoked bool MarkHostsSeenFunc MarkHostsSeenFunc MarkHostsSeenFuncInvoked bool SearchHostsFunc SearchHostsFunc SearchHostsFuncInvoked bool EnrolledHostIDsFunc EnrolledHostIDsFunc EnrolledHostIDsFuncInvoked bool CountEnrolledHostsFunc CountEnrolledHostsFunc CountEnrolledHostsFuncInvoked bool CleanupIncomingHostsFunc CleanupIncomingHostsFunc CleanupIncomingHostsFuncInvoked bool GenerateHostStatusStatisticsFunc GenerateHostStatusStatisticsFunc GenerateHostStatusStatisticsFuncInvoked bool HostIDsByIdentifierFunc HostIDsByIdentifierFunc HostIDsByIdentifierFuncInvoked bool HostIDsByOSIDFunc HostIDsByOSIDFunc HostIDsByOSIDFuncInvoked bool HostMemberOfAllLabelsFunc HostMemberOfAllLabelsFunc HostMemberOfAllLabelsFuncInvoked bool HostIDsByOSVersionFunc HostIDsByOSVersionFunc HostIDsByOSVersionFuncInvoked bool HostByIdentifierFunc HostByIdentifierFunc HostByIdentifierFuncInvoked bool HostLiteByIdentifierFunc HostLiteByIdentifierFunc HostLiteByIdentifierFuncInvoked bool HostLiteByIDFunc HostLiteByIDFunc HostLiteByIDFuncInvoked bool AddHostsToTeamFunc AddHostsToTeamFunc AddHostsToTeamFuncInvoked bool HostnamesByIdentifiersFunc HostnamesByIdentifiersFunc HostnamesByIdentifiersFuncInvoked bool UpdateHostIssuesFailingPoliciesFunc UpdateHostIssuesFailingPoliciesFunc UpdateHostIssuesFailingPoliciesFuncInvoked bool UpdateHostIssuesFailingPoliciesForSingleHostFunc UpdateHostIssuesFailingPoliciesForSingleHostFunc UpdateHostIssuesFailingPoliciesForSingleHostFuncInvoked bool GetHostIssuesLastUpdatedFunc GetHostIssuesLastUpdatedFunc GetHostIssuesLastUpdatedFuncInvoked bool UpdateHostIssuesVulnerabilitiesFunc UpdateHostIssuesVulnerabilitiesFunc UpdateHostIssuesVulnerabilitiesFuncInvoked bool CleanupHostIssuesFunc CleanupHostIssuesFunc CleanupHostIssuesFuncInvoked bool TotalAndUnseenHostsSinceFunc TotalAndUnseenHostsSinceFunc TotalAndUnseenHostsSinceFuncInvoked bool DeleteHostsFunc DeleteHostsFunc DeleteHostsFuncInvoked bool CountHostsFunc CountHostsFunc CountHostsFuncInvoked bool CountHostsInLabelFunc CountHostsInLabelFunc CountHostsInLabelFuncInvoked bool ListHostDeviceMappingFunc ListHostDeviceMappingFunc ListHostDeviceMappingFuncInvoked bool SetOrUpdateCustomHostDeviceMappingFunc SetOrUpdateCustomHostDeviceMappingFunc SetOrUpdateCustomHostDeviceMappingFuncInvoked bool SetOrUpdateIDPHostDeviceMappingFunc SetOrUpdateIDPHostDeviceMappingFunc SetOrUpdateIDPHostDeviceMappingFuncInvoked bool DeleteHostIDPFunc DeleteHostIDPFunc DeleteHostIDPFuncInvoked bool SetOrUpdateHostSCIMUserMappingFunc SetOrUpdateHostSCIMUserMappingFunc SetOrUpdateHostSCIMUserMappingFuncInvoked bool DeleteHostSCIMUserMappingFunc DeleteHostSCIMUserMappingFunc DeleteHostSCIMUserMappingFuncInvoked bool ListHostBatteriesFunc ListHostBatteriesFunc ListHostBatteriesFuncInvoked bool ListUpcomingHostMaintenanceWindowsFunc ListUpcomingHostMaintenanceWindowsFunc ListUpcomingHostMaintenanceWindowsFuncInvoked bool LoadHostByDeviceAuthTokenFunc LoadHostByDeviceAuthTokenFunc LoadHostByDeviceAuthTokenFuncInvoked bool SetOrUpdateDeviceAuthTokenFunc SetOrUpdateDeviceAuthTokenFunc SetOrUpdateDeviceAuthTokenFuncInvoked bool GetDeviceAuthTokenFunc GetDeviceAuthTokenFunc GetDeviceAuthTokenFuncInvoked bool FailingPoliciesCountFunc FailingPoliciesCountFunc FailingPoliciesCountFuncInvoked bool ListPoliciesForHostFunc ListPoliciesForHostFunc ListPoliciesForHostFuncInvoked bool GetHostMunkiVersionFunc GetHostMunkiVersionFunc GetHostMunkiVersionFuncInvoked bool GetHostMunkiIssuesFunc GetHostMunkiIssuesFunc GetHostMunkiIssuesFuncInvoked bool GetHostMDMFunc GetHostMDMFunc GetHostMDMFuncInvoked bool GetHostMDMCheckinInfoFunc GetHostMDMCheckinInfoFunc GetHostMDMCheckinInfoFuncInvoked bool GetHostMDMIdentifiersFunc GetHostMDMIdentifiersFunc GetHostMDMIdentifiersFuncInvoked bool ListIOSAndIPadOSToRefetchFunc ListIOSAndIPadOSToRefetchFunc ListIOSAndIPadOSToRefetchFuncInvoked bool AddHostMDMCommandsFunc AddHostMDMCommandsFunc AddHostMDMCommandsFuncInvoked bool GetHostMDMCommandsFunc GetHostMDMCommandsFunc GetHostMDMCommandsFuncInvoked bool RemoveHostMDMCommandFunc RemoveHostMDMCommandFunc RemoveHostMDMCommandFuncInvoked bool CleanupHostMDMCommandsFunc CleanupHostMDMCommandsFunc CleanupHostMDMCommandsFuncInvoked bool CleanupHostMDMAppleProfilesFunc CleanupHostMDMAppleProfilesFunc CleanupHostMDMAppleProfilesFuncInvoked bool IsHostConnectedToFleetMDMFunc IsHostConnectedToFleetMDMFunc IsHostConnectedToFleetMDMFuncInvoked bool ListHostCertificatesFunc ListHostCertificatesFunc ListHostCertificatesFuncInvoked bool UpdateHostCertificatesFunc UpdateHostCertificatesFunc UpdateHostCertificatesFuncInvoked bool AreHostsConnectedToFleetMDMFunc AreHostsConnectedToFleetMDMFunc AreHostsConnectedToFleetMDMFuncInvoked bool AggregatedMunkiVersionFunc AggregatedMunkiVersionFunc AggregatedMunkiVersionFuncInvoked bool AggregatedMunkiIssuesFunc AggregatedMunkiIssuesFunc AggregatedMunkiIssuesFuncInvoked bool AggregatedMDMStatusFunc AggregatedMDMStatusFunc AggregatedMDMStatusFuncInvoked bool AggregatedMDMSolutionsFunc AggregatedMDMSolutionsFunc AggregatedMDMSolutionsFuncInvoked bool GenerateAggregatedMunkiAndMDMFunc GenerateAggregatedMunkiAndMDMFunc GenerateAggregatedMunkiAndMDMFuncInvoked bool GetMunkiIssueFunc GetMunkiIssueFunc GetMunkiIssueFuncInvoked bool GetMDMSolutionFunc GetMDMSolutionFunc GetMDMSolutionFuncInvoked bool OSVersionsFunc OSVersionsFunc OSVersionsFuncInvoked bool OSVersionsByCVEFunc OSVersionsByCVEFunc OSVersionsByCVEFuncInvoked bool SoftwareByCVEFunc SoftwareByCVEFunc SoftwareByCVEFuncInvoked bool OSVersionFunc OSVersionFunc OSVersionFuncInvoked bool UpdateOSVersionsFunc UpdateOSVersionsFunc UpdateOSVersionsFuncInvoked bool CountHostsInTargetsFunc CountHostsInTargetsFunc CountHostsInTargetsFuncInvoked bool HostIDsInTargetsFunc HostIDsInTargetsFunc HostIDsInTargetsFuncInvoked bool NewPasswordResetRequestFunc NewPasswordResetRequestFunc NewPasswordResetRequestFuncInvoked bool DeletePasswordResetRequestsForUserFunc DeletePasswordResetRequestsForUserFunc DeletePasswordResetRequestsForUserFuncInvoked bool FindPasswordResetByTokenFunc FindPasswordResetByTokenFunc FindPasswordResetByTokenFuncInvoked bool CleanupExpiredPasswordResetRequestsFunc CleanupExpiredPasswordResetRequestsFunc CleanupExpiredPasswordResetRequestsFuncInvoked bool SessionByKeyFunc SessionByKeyFunc SessionByKeyFuncInvoked bool SessionByIDFunc SessionByIDFunc SessionByIDFuncInvoked bool ListSessionsForUserFunc ListSessionsForUserFunc ListSessionsForUserFuncInvoked bool NewSessionFunc NewSessionFunc NewSessionFuncInvoked bool DestroySessionFunc DestroySessionFunc DestroySessionFuncInvoked bool DestroyAllSessionsForUserFunc DestroyAllSessionsForUserFunc DestroyAllSessionsForUserFuncInvoked bool MarkSessionAccessedFunc MarkSessionAccessedFunc MarkSessionAccessedFuncInvoked bool SessionByMFATokenFunc SessionByMFATokenFunc SessionByMFATokenFuncInvoked bool NewMFATokenFunc NewMFATokenFunc NewMFATokenFuncInvoked bool NewAppConfigFunc NewAppConfigFunc NewAppConfigFuncInvoked bool SaveAppConfigFunc SaveAppConfigFunc SaveAppConfigFuncInvoked bool GetEnrollSecretsFunc GetEnrollSecretsFunc GetEnrollSecretsFuncInvoked bool ApplyEnrollSecretsFunc ApplyEnrollSecretsFunc ApplyEnrollSecretsFuncInvoked bool AggregateEnrollSecretPerTeamFunc AggregateEnrollSecretPerTeamFunc AggregateEnrollSecretPerTeamFuncInvoked bool GetYaraRulesFunc GetYaraRulesFunc GetYaraRulesFuncInvoked bool ApplyYaraRulesFunc ApplyYaraRulesFunc ApplyYaraRulesFuncInvoked bool YaraRuleByNameFunc YaraRuleByNameFunc YaraRuleByNameFuncInvoked bool NewInviteFunc NewInviteFunc NewInviteFuncInvoked bool ListInvitesFunc ListInvitesFunc ListInvitesFuncInvoked bool InviteFunc InviteFunc InviteFuncInvoked bool InviteByEmailFunc InviteByEmailFunc InviteByEmailFuncInvoked bool InviteByTokenFunc InviteByTokenFunc InviteByTokenFuncInvoked bool DeleteInviteFunc DeleteInviteFunc DeleteInviteFuncInvoked bool UpdateInviteFunc UpdateInviteFunc UpdateInviteFuncInvoked bool ListScheduledQueriesInPackWithStatsFunc ListScheduledQueriesInPackWithStatsFunc ListScheduledQueriesInPackWithStatsFuncInvoked bool NewScheduledQueryFunc NewScheduledQueryFunc NewScheduledQueryFuncInvoked bool SaveScheduledQueryFunc SaveScheduledQueryFunc SaveScheduledQueryFuncInvoked bool DeleteScheduledQueryFunc DeleteScheduledQueryFunc DeleteScheduledQueryFuncInvoked bool ScheduledQueryFunc ScheduledQueryFunc ScheduledQueryFuncInvoked bool CleanupExpiredHostsFunc CleanupExpiredHostsFunc CleanupExpiredHostsFuncInvoked bool ScheduledQueryIDsByNameFunc ScheduledQueryIDsByNameFunc ScheduledQueryIDsByNameFuncInvoked bool QueryResultRowsFunc QueryResultRowsFunc QueryResultRowsFuncInvoked bool QueryResultRowsForHostFunc QueryResultRowsForHostFunc QueryResultRowsForHostFuncInvoked bool ResultCountForQueryFunc ResultCountForQueryFunc ResultCountForQueryFuncInvoked bool ResultCountForQueryAndHostFunc ResultCountForQueryAndHostFunc ResultCountForQueryAndHostFuncInvoked bool OverwriteQueryResultRowsFunc OverwriteQueryResultRowsFunc OverwriteQueryResultRowsFuncInvoked bool CleanupDiscardedQueryResultsFunc CleanupDiscardedQueryResultsFunc CleanupDiscardedQueryResultsFuncInvoked bool CleanupExcessQueryResultRowsFunc CleanupExcessQueryResultRowsFunc CleanupExcessQueryResultRowsFuncInvoked bool NewTeamFunc NewTeamFunc NewTeamFuncInvoked bool SaveTeamFunc SaveTeamFunc SaveTeamFuncInvoked bool TeamWithExtrasFunc TeamWithExtrasFunc TeamWithExtrasFuncInvoked bool TeamLiteFunc TeamLiteFunc TeamLiteFuncInvoked bool DeleteTeamFunc DeleteTeamFunc DeleteTeamFuncInvoked bool TeamByNameFunc TeamByNameFunc TeamByNameFuncInvoked bool TeamByFilenameFunc TeamByFilenameFunc TeamByFilenameFuncInvoked bool ListTeamsFunc ListTeamsFunc ListTeamsFuncInvoked bool TeamsSummaryFunc TeamsSummaryFunc TeamsSummaryFuncInvoked bool SearchTeamsFunc SearchTeamsFunc SearchTeamsFuncInvoked bool TeamEnrollSecretsFunc TeamEnrollSecretsFunc TeamEnrollSecretsFuncInvoked bool DeleteIntegrationsFromTeamsFunc DeleteIntegrationsFromTeamsFunc DeleteIntegrationsFromTeamsFuncInvoked bool DefaultTeamConfigFunc DefaultTeamConfigFunc DefaultTeamConfigFuncInvoked bool SaveDefaultTeamConfigFunc SaveDefaultTeamConfigFunc SaveDefaultTeamConfigFuncInvoked bool TeamExistsFunc TeamExistsFunc TeamExistsFuncInvoked bool ListSoftwareTitlesFunc ListSoftwareTitlesFunc ListSoftwareTitlesFuncInvoked bool SoftwareTitleByIDFunc SoftwareTitleByIDFunc SoftwareTitleByIDFuncInvoked bool SoftwareTitleNameForHostFilterFunc SoftwareTitleNameForHostFilterFunc SoftwareTitleNameForHostFilterFuncInvoked bool UpdateSoftwareTitleNameFunc UpdateSoftwareTitleNameFunc UpdateSoftwareTitleNameFuncInvoked bool UpdateSoftwareTitleAutoUpdateConfigFunc UpdateSoftwareTitleAutoUpdateConfigFunc UpdateSoftwareTitleAutoUpdateConfigFuncInvoked bool ListSoftwareAutoUpdateSchedulesFunc ListSoftwareAutoUpdateSchedulesFunc ListSoftwareAutoUpdateSchedulesFuncInvoked bool InsertSoftwareInstallRequestFunc InsertSoftwareInstallRequestFunc InsertSoftwareInstallRequestFuncInvoked bool InsertSoftwareUninstallRequestFunc InsertSoftwareUninstallRequestFunc InsertSoftwareUninstallRequestFuncInvoked bool GetDetailsForUninstallFromExecutionIDFunc GetDetailsForUninstallFromExecutionIDFunc GetDetailsForUninstallFromExecutionIDFuncInvoked bool ListSoftwareForVulnDetectionFunc ListSoftwareForVulnDetectionFunc ListSoftwareForVulnDetectionFuncInvoked bool ListSoftwareVulnerabilitiesByHostIDsSourceFunc ListSoftwareVulnerabilitiesByHostIDsSourceFunc ListSoftwareVulnerabilitiesByHostIDsSourceFuncInvoked bool LoadHostSoftwareFunc LoadHostSoftwareFunc LoadHostSoftwareFuncInvoked bool AllSoftwareIteratorFunc AllSoftwareIteratorFunc AllSoftwareIteratorFuncInvoked bool UpsertSoftwareCPEsFunc UpsertSoftwareCPEsFunc UpsertSoftwareCPEsFuncInvoked bool DeleteSoftwareCPEsFunc DeleteSoftwareCPEsFunc DeleteSoftwareCPEsFuncInvoked bool ListSoftwareCPEsFunc ListSoftwareCPEsFunc ListSoftwareCPEsFuncInvoked bool InsertSoftwareVulnerabilityFunc InsertSoftwareVulnerabilityFunc InsertSoftwareVulnerabilityFuncInvoked bool SoftwareByIDFunc SoftwareByIDFunc SoftwareByIDFuncInvoked bool ListSoftwareByHostIDShortFunc ListSoftwareByHostIDShortFunc ListSoftwareByHostIDShortFuncInvoked bool SyncHostsSoftwareFunc SyncHostsSoftwareFunc SyncHostsSoftwareFuncInvoked bool CleanupSoftwareTitlesFunc CleanupSoftwareTitlesFunc CleanupSoftwareTitlesFuncInvoked bool SyncHostsSoftwareTitlesFunc SyncHostsSoftwareTitlesFunc SyncHostsSoftwareTitlesFuncInvoked bool HostVulnSummariesBySoftwareIDsFunc HostVulnSummariesBySoftwareIDsFunc HostVulnSummariesBySoftwareIDsFuncInvoked bool HostsByCVEFunc HostsByCVEFunc HostsByCVEFuncInvoked bool InsertCVEMetaFunc InsertCVEMetaFunc InsertCVEMetaFuncInvoked bool ListCVEsFunc ListCVEsFunc ListCVEsFuncInvoked bool ListHostSoftwareFunc ListHostSoftwareFunc ListHostSoftwareFuncInvoked bool IsSoftwareInstallerLabelScopedFunc IsSoftwareInstallerLabelScopedFunc IsSoftwareInstallerLabelScopedFuncInvoked bool IsVPPAppLabelScopedFunc IsVPPAppLabelScopedFunc IsVPPAppLabelScopedFuncInvoked bool IsInHouseAppLabelScopedFunc IsInHouseAppLabelScopedFunc IsInHouseAppLabelScopedFuncInvoked bool GetUnverifiedInHouseAppInstallsForHostFunc GetUnverifiedInHouseAppInstallsForHostFunc GetUnverifiedInHouseAppInstallsForHostFuncInvoked bool SetInHouseAppInstallAsVerifiedFunc SetInHouseAppInstallAsVerifiedFunc SetInHouseAppInstallAsVerifiedFuncInvoked bool SetInHouseAppInstallAsFailedFunc SetInHouseAppInstallAsFailedFunc SetInHouseAppInstallAsFailedFuncInvoked bool ReplaceInHouseAppInstallVerificationUUIDFunc ReplaceInHouseAppInstallVerificationUUIDFunc ReplaceInHouseAppInstallVerificationUUIDFuncInvoked bool GetPastActivityDataForInHouseAppInstallFunc GetPastActivityDataForInHouseAppInstallFunc GetPastActivityDataForInHouseAppInstallFuncInvoked bool SetHostSoftwareInstallResultFunc SetHostSoftwareInstallResultFunc SetHostSoftwareInstallResultFuncInvoked bool CreateIntermediateInstallFailureRecordFunc CreateIntermediateInstallFailureRecordFunc CreateIntermediateInstallFailureRecordFuncInvoked bool NewSoftwareCategoryFunc NewSoftwareCategoryFunc NewSoftwareCategoryFuncInvoked bool GetSoftwareCategoryIDsFunc GetSoftwareCategoryIDsFunc GetSoftwareCategoryIDsFuncInvoked bool GetCategoriesForSoftwareTitlesFunc GetCategoriesForSoftwareTitlesFunc GetCategoriesForSoftwareTitlesFuncInvoked bool AssociateMDMInstallToVerificationUUIDFunc AssociateMDMInstallToVerificationUUIDFunc AssociateMDMInstallToVerificationUUIDFuncInvoked bool SetVPPInstallAsVerifiedFunc SetVPPInstallAsVerifiedFunc SetVPPInstallAsVerifiedFuncInvoked bool ReplaceVPPInstallVerificationUUIDFunc ReplaceVPPInstallVerificationUUIDFunc ReplaceVPPInstallVerificationUUIDFuncInvoked bool IsHostPendingMDMInstallVerificationFunc IsHostPendingMDMInstallVerificationFunc IsHostPendingMDMInstallVerificationFuncInvoked bool GetUnverifiedVPPInstallsForHostFunc GetUnverifiedVPPInstallsForHostFunc GetUnverifiedVPPInstallsForHostFuncInvoked bool SetVPPInstallAsFailedFunc SetVPPInstallAsFailedFunc SetVPPInstallAsFailedFuncInvoked bool MarkAllPendingAppleVPPAndInHouseInstallsAsFailedFunc MarkAllPendingAppleVPPAndInHouseInstallsAsFailedFunc MarkAllPendingAppleVPPAndInHouseInstallsAsFailedFuncInvoked bool CheckConflictingInstallerExistsFunc CheckConflictingInstallerExistsFunc CheckConflictingInstallerExistsFuncInvoked bool CheckConflictingInHouseAppExistsFunc CheckConflictingInHouseAppExistsFunc CheckConflictingInHouseAppExistsFuncInvoked bool GetHostOperatingSystemFunc GetHostOperatingSystemFunc GetHostOperatingSystemFuncInvoked bool ListOperatingSystemsFunc ListOperatingSystemsFunc ListOperatingSystemsFuncInvoked bool ListOperatingSystemsForPlatformFunc ListOperatingSystemsForPlatformFunc ListOperatingSystemsForPlatformFuncInvoked bool UpdateHostOperatingSystemFunc UpdateHostOperatingSystemFunc UpdateHostOperatingSystemFuncInvoked bool CleanupHostOperatingSystemsFunc CleanupHostOperatingSystemsFunc CleanupHostOperatingSystemsFuncInvoked bool MDMTurnOffFunc MDMTurnOffFunc MDMTurnOffFuncInvoked bool NewActivityFunc NewActivityFunc NewActivityFuncInvoked bool ListHostUpcomingActivitiesFunc ListHostUpcomingActivitiesFunc ListHostUpcomingActivitiesFuncInvoked bool CancelHostUpcomingActivityFunc CancelHostUpcomingActivityFunc CancelHostUpcomingActivityFuncInvoked bool IsExecutionPendingForHostFunc IsExecutionPendingForHostFunc IsExecutionPendingForHostFuncInvoked bool GetHostUpcomingActivityMetaFunc GetHostUpcomingActivityMetaFunc GetHostUpcomingActivityMetaFuncInvoked bool UnblockHostsUpcomingActivityQueueFunc UnblockHostsUpcomingActivityQueueFunc UnblockHostsUpcomingActivityQueueFuncInvoked bool ShouldSendStatisticsFunc ShouldSendStatisticsFunc ShouldSendStatisticsFuncInvoked bool RecordStatisticsSentFunc RecordStatisticsSentFunc RecordStatisticsSentFuncInvoked bool CleanupStatisticsFunc CleanupStatisticsFunc CleanupStatisticsFuncInvoked bool GetTableRowCountsFunc GetTableRowCountsFunc GetTableRowCountsFuncInvoked bool ApplyPolicySpecsFunc ApplyPolicySpecsFunc ApplyPolicySpecsFuncInvoked bool NewGlobalPolicyFunc NewGlobalPolicyFunc NewGlobalPolicyFuncInvoked bool PolicyFunc PolicyFunc PolicyFuncInvoked bool PolicyLiteFunc PolicyLiteFunc PolicyLiteFuncInvoked bool SavePolicyFunc SavePolicyFunc SavePolicyFuncInvoked bool ListGlobalPoliciesFunc ListGlobalPoliciesFunc ListGlobalPoliciesFuncInvoked bool PoliciesByIDFunc PoliciesByIDFunc PoliciesByIDFuncInvoked bool DeleteGlobalPoliciesFunc DeleteGlobalPoliciesFunc DeleteGlobalPoliciesFuncInvoked bool CountPoliciesFunc CountPoliciesFunc CountPoliciesFuncInvoked bool CountMergedTeamPoliciesFunc CountMergedTeamPoliciesFunc CountMergedTeamPoliciesFuncInvoked bool UpdateHostPolicyCountsFunc UpdateHostPolicyCountsFunc UpdateHostPolicyCountsFuncInvoked bool PolicyQueriesForHostFunc PolicyQueriesForHostFunc PolicyQueriesForHostFuncInvoked bool GetTeamHostsPolicyMembershipsFunc GetTeamHostsPolicyMembershipsFunc GetTeamHostsPolicyMembershipsFuncInvoked bool GetPoliciesWithAssociatedInstallerFunc GetPoliciesWithAssociatedInstallerFunc GetPoliciesWithAssociatedInstallerFuncInvoked bool GetPoliciesWithAssociatedVPPFunc GetPoliciesWithAssociatedVPPFunc GetPoliciesWithAssociatedVPPFuncInvoked bool GetPoliciesWithAssociatedScriptFunc GetPoliciesWithAssociatedScriptFunc GetPoliciesWithAssociatedScriptFuncInvoked bool GetCalendarPoliciesFunc GetCalendarPoliciesFunc GetCalendarPoliciesFuncInvoked bool GetPoliciesForConditionalAccessFunc GetPoliciesForConditionalAccessFunc GetPoliciesForConditionalAccessFuncInvoked bool ConditionalAccessBypassDeviceFunc ConditionalAccessBypassDeviceFunc ConditionalAccessBypassDeviceFuncInvoked bool ConditionalAccessConsumeBypassFunc ConditionalAccessConsumeBypassFunc ConditionalAccessConsumeBypassFuncInvoked bool ConditionalAccessClearBypassesFunc ConditionalAccessClearBypassesFunc ConditionalAccessClearBypassesFuncInvoked bool ConditionalAccessBypassedAtFunc ConditionalAccessBypassedAtFunc ConditionalAccessBypassedAtFuncInvoked bool AsyncBatchInsertPolicyMembershipFunc AsyncBatchInsertPolicyMembershipFunc AsyncBatchInsertPolicyMembershipFuncInvoked bool AsyncBatchUpdatePolicyTimestampFunc AsyncBatchUpdatePolicyTimestampFunc AsyncBatchUpdatePolicyTimestampFuncInvoked bool MigrateTablesFunc MigrateTablesFunc MigrateTablesFuncInvoked bool MigrateDataFunc MigrateDataFunc MigrateDataFuncInvoked bool MigrationStatusFunc MigrationStatusFunc MigrationStatusFuncInvoked bool ListSoftwareFunc ListSoftwareFunc ListSoftwareFuncInvoked bool CountSoftwareFunc CountSoftwareFunc CountSoftwareFuncInvoked bool DeleteSoftwareVulnerabilitiesFunc DeleteSoftwareVulnerabilitiesFunc DeleteSoftwareVulnerabilitiesFuncInvoked bool DeleteOutOfDateVulnerabilitiesFunc DeleteOutOfDateVulnerabilitiesFunc DeleteOutOfDateVulnerabilitiesFuncInvoked bool CreateOrUpdateCalendarEventFunc CreateOrUpdateCalendarEventFunc CreateOrUpdateCalendarEventFuncInvoked bool GetCalendarEventFunc GetCalendarEventFunc GetCalendarEventFuncInvoked bool GetCalendarEventDetailsByUUIDFunc GetCalendarEventDetailsByUUIDFunc GetCalendarEventDetailsByUUIDFuncInvoked bool DeleteCalendarEventFunc DeleteCalendarEventFunc DeleteCalendarEventFuncInvoked bool UpdateCalendarEventFunc UpdateCalendarEventFunc UpdateCalendarEventFuncInvoked bool GetHostCalendarEventFunc GetHostCalendarEventFunc GetHostCalendarEventFuncInvoked bool GetHostCalendarEventByEmailFunc GetHostCalendarEventByEmailFunc GetHostCalendarEventByEmailFuncInvoked bool UpdateHostCalendarWebhookStatusFunc UpdateHostCalendarWebhookStatusFunc UpdateHostCalendarWebhookStatusFuncInvoked bool ListCalendarEventsFunc ListCalendarEventsFunc ListCalendarEventsFuncInvoked bool ListOutOfDateCalendarEventsFunc ListOutOfDateCalendarEventsFunc ListOutOfDateCalendarEventsFuncInvoked bool NewTeamPolicyFunc NewTeamPolicyFunc NewTeamPolicyFuncInvoked bool ListTeamPoliciesFunc ListTeamPoliciesFunc ListTeamPoliciesFuncInvoked bool ListMergedTeamPoliciesFunc ListMergedTeamPoliciesFunc ListMergedTeamPoliciesFuncInvoked bool DeleteTeamPoliciesFunc DeleteTeamPoliciesFunc DeleteTeamPoliciesFuncInvoked bool TeamPolicyFunc TeamPolicyFunc TeamPolicyFuncInvoked bool CleanupPolicyMembershipFunc CleanupPolicyMembershipFunc CleanupPolicyMembershipFuncInvoked bool IsPolicyFailingFunc IsPolicyFailingFunc IsPolicyFailingFuncInvoked bool CountHostSoftwareInstallAttemptsFunc CountHostSoftwareInstallAttemptsFunc CountHostSoftwareInstallAttemptsFuncInvoked bool CountHostScriptAttemptsFunc CountHostScriptAttemptsFunc CountHostScriptAttemptsFuncInvoked bool IncrementPolicyViolationDaysFunc IncrementPolicyViolationDaysFunc IncrementPolicyViolationDaysFuncInvoked bool InitializePolicyViolationDaysFunc InitializePolicyViolationDaysFunc InitializePolicyViolationDaysFuncInvoked bool LockFunc LockFunc LockFuncInvoked bool UnlockFunc UnlockFunc UnlockFuncInvoked bool DBLocksFunc DBLocksFunc DBLocksFuncInvoked bool GetLatestCronStatsFunc GetLatestCronStatsFunc GetLatestCronStatsFuncInvoked bool InsertCronStatsFunc InsertCronStatsFunc InsertCronStatsFuncInvoked bool UpdateCronStatsFunc UpdateCronStatsFunc UpdateCronStatsFuncInvoked bool UpdateAllCronStatsForInstanceFunc UpdateAllCronStatsForInstanceFunc UpdateAllCronStatsForInstanceFuncInvoked bool CleanupCronStatsFunc CleanupCronStatsFunc CleanupCronStatsFuncInvoked bool UpdateQueryAggregatedStatsFunc UpdateQueryAggregatedStatsFunc UpdateQueryAggregatedStatsFuncInvoked bool LoadHostByNodeKeyFunc LoadHostByNodeKeyFunc LoadHostByNodeKeyFuncInvoked bool LoadHostByOrbitNodeKeyFunc LoadHostByOrbitNodeKeyFunc LoadHostByOrbitNodeKeyFuncInvoked bool HostLiteFunc HostLiteFunc HostLiteFuncInvoked bool UpdateHostOsqueryIntervalsFunc UpdateHostOsqueryIntervalsFunc UpdateHostOsqueryIntervalsFuncInvoked bool TeamAgentOptionsFunc TeamAgentOptionsFunc TeamAgentOptionsFuncInvoked bool TeamFeaturesFunc TeamFeaturesFunc TeamFeaturesFuncInvoked bool TeamMDMConfigFunc TeamMDMConfigFunc TeamMDMConfigFuncInvoked bool SaveHostPackStatsFunc SaveHostPackStatsFunc SaveHostPackStatsFuncInvoked bool AsyncBatchSaveHostsScheduledQueryStatsFunc AsyncBatchSaveHostsScheduledQueryStatsFunc AsyncBatchSaveHostsScheduledQueryStatsFuncInvoked bool UpdateHostSoftwareFunc UpdateHostSoftwareFunc UpdateHostSoftwareFuncInvoked bool UpdateHostSoftwareInstalledPathsFunc UpdateHostSoftwareInstalledPathsFunc UpdateHostSoftwareInstalledPathsFuncInvoked bool UpdateHostFunc UpdateHostFunc UpdateHostFuncInvoked bool ListScheduledQueriesInPackFunc ListScheduledQueriesInPackFunc ListScheduledQueriesInPackFuncInvoked bool UpdateHostRefetchRequestedFunc UpdateHostRefetchRequestedFunc UpdateHostRefetchRequestedFuncInvoked bool UpdateHostRefetchCriticalQueriesUntilFunc UpdateHostRefetchCriticalQueriesUntilFunc UpdateHostRefetchCriticalQueriesUntilFuncInvoked bool FlippingPoliciesForHostFunc FlippingPoliciesForHostFunc FlippingPoliciesForHostFuncInvoked bool RecordPolicyQueryExecutionsFunc RecordPolicyQueryExecutionsFunc RecordPolicyQueryExecutionsFuncInvoked bool RecordLabelQueryExecutionsFunc RecordLabelQueryExecutionsFunc RecordLabelQueryExecutionsFuncInvoked bool SaveHostUsersFunc SaveHostUsersFunc SaveHostUsersFuncInvoked bool SaveHostAdditionalFunc SaveHostAdditionalFunc SaveHostAdditionalFuncInvoked bool SetOrUpdateMunkiInfoFunc SetOrUpdateMunkiInfoFunc SetOrUpdateMunkiInfoFuncInvoked bool SetOrUpdateMDMDataFunc SetOrUpdateMDMDataFunc SetOrUpdateMDMDataFuncInvoked bool UpdateMDMDataFunc UpdateMDMDataFunc UpdateMDMDataFuncInvoked bool UpdateMDMInstalledFromDEPFunc UpdateMDMInstalledFromDEPFunc UpdateMDMInstalledFromDEPFuncInvoked bool GetHostEmailsFunc GetHostEmailsFunc GetHostEmailsFuncInvoked bool SetOrUpdateHostDisksSpaceFunc SetOrUpdateHostDisksSpaceFunc SetOrUpdateHostDisksSpaceFuncInvoked bool GetConfigEnableDiskEncryptionFunc GetConfigEnableDiskEncryptionFunc GetConfigEnableDiskEncryptionFuncInvoked bool SetOrUpdateHostDiskTpmPINFunc SetOrUpdateHostDiskTpmPINFunc SetOrUpdateHostDiskTpmPINFuncInvoked bool SetOrUpdateHostDisksEncryptionFunc SetOrUpdateHostDisksEncryptionFunc SetOrUpdateHostDisksEncryptionFuncInvoked bool SetOrUpdateHostDiskEncryptionKeyFunc SetOrUpdateHostDiskEncryptionKeyFunc SetOrUpdateHostDiskEncryptionKeyFuncInvoked bool SaveLUKSDataFunc SaveLUKSDataFunc SaveLUKSDataFuncInvoked bool DeleteLUKSDataFunc DeleteLUKSDataFunc DeleteLUKSDataFuncInvoked bool GetUnverifiedDiskEncryptionKeysFunc GetUnverifiedDiskEncryptionKeysFunc GetUnverifiedDiskEncryptionKeysFuncInvoked bool SetHostsDiskEncryptionKeyStatusFunc SetHostsDiskEncryptionKeyStatusFunc SetHostsDiskEncryptionKeyStatusFuncInvoked bool GetHostDiskEncryptionKeyFunc GetHostDiskEncryptionKeyFunc GetHostDiskEncryptionKeyFuncInvoked bool GetHostArchivedDiskEncryptionKeyFunc GetHostArchivedDiskEncryptionKeyFunc GetHostArchivedDiskEncryptionKeyFuncInvoked bool IsHostDiskEncryptionKeyArchivedFunc IsHostDiskEncryptionKeyArchivedFunc IsHostDiskEncryptionKeyArchivedFuncInvoked bool IsHostPendingEscrowFunc IsHostPendingEscrowFunc IsHostPendingEscrowFuncInvoked bool ClearPendingEscrowFunc ClearPendingEscrowFunc ClearPendingEscrowFuncInvoked bool ReportEscrowErrorFunc ReportEscrowErrorFunc ReportEscrowErrorFuncInvoked bool QueueEscrowFunc QueueEscrowFunc QueueEscrowFuncInvoked bool AssertHasNoEncryptionKeyStoredFunc AssertHasNoEncryptionKeyStoredFunc AssertHasNoEncryptionKeyStoredFuncInvoked bool GetHostCertAssociationsToExpireFunc GetHostCertAssociationsToExpireFunc GetHostCertAssociationsToExpireFuncInvoked bool SetCommandForPendingSCEPRenewalFunc SetCommandForPendingSCEPRenewalFunc SetCommandForPendingSCEPRenewalFuncInvoked bool CleanSCEPRenewRefsFunc CleanSCEPRenewRefsFunc CleanSCEPRenewRefsFuncInvoked bool UpdateHostMDMProfilesVerificationFunc UpdateHostMDMProfilesVerificationFunc UpdateHostMDMProfilesVerificationFuncInvoked bool GetHostMDMProfilesExpectedForVerificationFunc GetHostMDMProfilesExpectedForVerificationFunc GetHostMDMProfilesExpectedForVerificationFuncInvoked bool GetHostMDMProfilesRetryCountsFunc GetHostMDMProfilesRetryCountsFunc GetHostMDMProfilesRetryCountsFuncInvoked bool GetHostMDMProfileRetryCountByCommandUUIDFunc GetHostMDMProfileRetryCountByCommandUUIDFunc GetHostMDMProfileRetryCountByCommandUUIDFuncInvoked bool SetOrUpdateHostOrbitInfoFunc SetOrUpdateHostOrbitInfoFunc SetOrUpdateHostOrbitInfoFuncInvoked bool GetHostOrbitInfoFunc GetHostOrbitInfoFunc GetHostOrbitInfoFuncInvoked bool ReplaceHostDeviceMappingFunc ReplaceHostDeviceMappingFunc ReplaceHostDeviceMappingFuncInvoked bool ReplaceHostBatteriesFunc ReplaceHostBatteriesFunc ReplaceHostBatteriesFuncInvoked bool VerifyEnrollSecretFunc VerifyEnrollSecretFunc VerifyEnrollSecretFuncInvoked bool IsEnrollSecretAvailableFunc IsEnrollSecretAvailableFunc IsEnrollSecretAvailableFuncInvoked bool EnrollOsqueryFunc EnrollOsqueryFunc EnrollOsqueryFuncInvoked bool EnrollOrbitFunc EnrollOrbitFunc EnrollOrbitFuncInvoked bool SerialUpdateHostFunc SerialUpdateHostFunc SerialUpdateHostFuncInvoked bool NewJobFunc NewJobFunc NewJobFuncInvoked bool GetQueuedJobsFunc GetQueuedJobsFunc GetQueuedJobsFuncInvoked bool GetFilteredQueuedJobsFunc GetFilteredQueuedJobsFunc GetFilteredQueuedJobsFuncInvoked bool UpdateJobFunc UpdateJobFunc UpdateJobFuncInvoked bool CleanupWorkerJobsFunc CleanupWorkerJobsFunc CleanupWorkerJobsFuncInvoked bool GetJobFunc GetJobFunc GetJobFuncInvoked bool InnoDBStatusFunc InnoDBStatusFunc InnoDBStatusFuncInvoked bool ProcessListFunc ProcessListFunc ProcessListFuncInvoked bool ListWindowsUpdatesByHostIDFunc ListWindowsUpdatesByHostIDFunc ListWindowsUpdatesByHostIDFuncInvoked bool InsertWindowsUpdatesFunc InsertWindowsUpdatesFunc InsertWindowsUpdatesFuncInvoked bool ListOSVulnerabilitiesByOSFunc ListOSVulnerabilitiesByOSFunc ListOSVulnerabilitiesByOSFuncInvoked bool ListVulnsByOsNameAndVersionFunc ListVulnsByOsNameAndVersionFunc ListVulnsByOsNameAndVersionFuncInvoked bool ListVulnsByMultipleOSVersionsFunc ListVulnsByMultipleOSVersionsFunc ListVulnsByMultipleOSVersionsFuncInvoked bool InsertOSVulnerabilitiesFunc InsertOSVulnerabilitiesFunc InsertOSVulnerabilitiesFuncInvoked bool DeleteOSVulnerabilitiesFunc DeleteOSVulnerabilitiesFunc DeleteOSVulnerabilitiesFuncInvoked bool InsertOSVulnerabilityFunc InsertOSVulnerabilityFunc InsertOSVulnerabilityFuncInvoked bool DeleteOutOfDateOSVulnerabilitiesFunc DeleteOutOfDateOSVulnerabilitiesFunc DeleteOutOfDateOSVulnerabilitiesFuncInvoked bool ListKernelsByOSFunc ListKernelsByOSFunc ListKernelsByOSFuncInvoked bool InsertKernelSoftwareMappingFunc InsertKernelSoftwareMappingFunc InsertKernelSoftwareMappingFuncInvoked bool ListVulnerabilitiesFunc ListVulnerabilitiesFunc ListVulnerabilitiesFuncInvoked bool VulnerabilityFunc VulnerabilityFunc VulnerabilityFuncInvoked bool CountVulnerabilitiesFunc CountVulnerabilitiesFunc CountVulnerabilitiesFuncInvoked bool UpdateVulnerabilityHostCountsFunc UpdateVulnerabilityHostCountsFunc UpdateVulnerabilityHostCountsFuncInvoked bool IsCVEKnownToFleetFunc IsCVEKnownToFleetFunc IsCVEKnownToFleetFuncInvoked bool NewMDMAppleConfigProfileFunc NewMDMAppleConfigProfileFunc NewMDMAppleConfigProfileFuncInvoked bool BulkUpsertMDMAppleConfigProfilesFunc BulkUpsertMDMAppleConfigProfilesFunc BulkUpsertMDMAppleConfigProfilesFuncInvoked bool GetMDMAppleConfigProfileByDeprecatedIDFunc GetMDMAppleConfigProfileByDeprecatedIDFunc GetMDMAppleConfigProfileByDeprecatedIDFuncInvoked bool GetMDMAppleConfigProfileFunc GetMDMAppleConfigProfileFunc GetMDMAppleConfigProfileFuncInvoked bool GetMDMAppleDeclarationFunc GetMDMAppleDeclarationFunc GetMDMAppleDeclarationFuncInvoked bool ListMDMAppleConfigProfilesFunc ListMDMAppleConfigProfilesFunc ListMDMAppleConfigProfilesFuncInvoked bool DeleteMDMAppleConfigProfileByDeprecatedIDFunc DeleteMDMAppleConfigProfileByDeprecatedIDFunc DeleteMDMAppleConfigProfileByDeprecatedIDFuncInvoked bool DeleteMDMAppleConfigProfileFunc DeleteMDMAppleConfigProfileFunc DeleteMDMAppleConfigProfileFuncInvoked bool DeleteMDMAppleDeclarationFunc DeleteMDMAppleDeclarationFunc DeleteMDMAppleDeclarationFuncInvoked bool DeleteMDMAppleDeclarationByNameFunc DeleteMDMAppleDeclarationByNameFunc DeleteMDMAppleDeclarationByNameFuncInvoked bool BulkDeleteMDMAppleHostsConfigProfilesFunc BulkDeleteMDMAppleHostsConfigProfilesFunc BulkDeleteMDMAppleHostsConfigProfilesFuncInvoked bool DeleteMDMAppleConfigProfileByTeamAndIdentifierFunc DeleteMDMAppleConfigProfileByTeamAndIdentifierFunc DeleteMDMAppleConfigProfileByTeamAndIdentifierFuncInvoked bool GetHostMDMAppleProfilesFunc GetHostMDMAppleProfilesFunc GetHostMDMAppleProfilesFuncInvoked bool CleanupDiskEncryptionKeysOnTeamChangeFunc CleanupDiskEncryptionKeysOnTeamChangeFunc CleanupDiskEncryptionKeysOnTeamChangeFuncInvoked bool NewMDMAppleEnrollmentProfileFunc NewMDMAppleEnrollmentProfileFunc NewMDMAppleEnrollmentProfileFuncInvoked bool GetMDMAppleEnrollmentProfileByTokenFunc GetMDMAppleEnrollmentProfileByTokenFunc GetMDMAppleEnrollmentProfileByTokenFuncInvoked bool GetMDMAppleEnrollmentProfileByTypeFunc GetMDMAppleEnrollmentProfileByTypeFunc GetMDMAppleEnrollmentProfileByTypeFuncInvoked bool ListMDMAppleEnrollmentProfilesFunc ListMDMAppleEnrollmentProfilesFunc ListMDMAppleEnrollmentProfilesFuncInvoked bool GetMDMAppleCommandResultsFunc GetMDMAppleCommandResultsFunc GetMDMAppleCommandResultsFuncInvoked bool GetVPPCommandResultsFunc GetVPPCommandResultsFunc GetVPPCommandResultsFuncInvoked bool ListMDMAppleCommandsFunc ListMDMAppleCommandsFunc ListMDMAppleCommandsFuncInvoked bool NewMDMAppleInstallerFunc NewMDMAppleInstallerFunc NewMDMAppleInstallerFuncInvoked bool MDMAppleInstallerFunc MDMAppleInstallerFunc MDMAppleInstallerFuncInvoked bool MDMAppleInstallerDetailsByIDFunc MDMAppleInstallerDetailsByIDFunc MDMAppleInstallerDetailsByIDFuncInvoked bool DeleteMDMAppleInstallerFunc DeleteMDMAppleInstallerFunc DeleteMDMAppleInstallerFuncInvoked bool MDMAppleInstallerDetailsByTokenFunc MDMAppleInstallerDetailsByTokenFunc MDMAppleInstallerDetailsByTokenFuncInvoked bool ListMDMAppleInstallersFunc ListMDMAppleInstallersFunc ListMDMAppleInstallersFuncInvoked bool BatchSetMDMAppleProfilesFunc BatchSetMDMAppleProfilesFunc BatchSetMDMAppleProfilesFuncInvoked bool MDMAppleListDevicesFunc MDMAppleListDevicesFunc MDMAppleListDevicesFuncInvoked bool UpsertMDMAppleHostDEPAssignmentsFunc UpsertMDMAppleHostDEPAssignmentsFunc UpsertMDMAppleHostDEPAssignmentsFuncInvoked bool IngestMDMAppleDevicesFromDEPSyncFunc IngestMDMAppleDevicesFromDEPSyncFunc IngestMDMAppleDevicesFromDEPSyncFuncInvoked bool SetHostMDMMigrationCompletedFunc SetHostMDMMigrationCompletedFunc SetHostMDMMigrationCompletedFuncInvoked bool IngestMDMAppleDeviceFromOTAEnrollmentFunc IngestMDMAppleDeviceFromOTAEnrollmentFunc IngestMDMAppleDeviceFromOTAEnrollmentFuncInvoked bool MDMAppleUpsertHostFunc MDMAppleUpsertHostFunc MDMAppleUpsertHostFuncInvoked bool RestoreMDMApplePendingDEPHostFunc RestoreMDMApplePendingDEPHostFunc RestoreMDMApplePendingDEPHostFuncInvoked bool MDMResetEnrollmentFunc MDMResetEnrollmentFunc MDMResetEnrollmentFuncInvoked bool ListMDMAppleDEPSerialsInTeamFunc ListMDMAppleDEPSerialsInTeamFunc ListMDMAppleDEPSerialsInTeamFuncInvoked bool ListMDMAppleDEPSerialsInHostIDsFunc ListMDMAppleDEPSerialsInHostIDsFunc ListMDMAppleDEPSerialsInHostIDsFuncInvoked bool GetHostDEPAssignmentFunc GetHostDEPAssignmentFunc GetHostDEPAssignmentFuncInvoked bool GetNanoMDMEnrollmentFunc GetNanoMDMEnrollmentFunc GetNanoMDMEnrollmentFuncInvoked bool GetNanoMDMUserEnrollmentFunc GetNanoMDMUserEnrollmentFunc GetNanoMDMUserEnrollmentFuncInvoked bool GetNanoMDMUserEnrollmentUsernameAndUUIDFunc GetNanoMDMUserEnrollmentUsernameAndUUIDFunc GetNanoMDMUserEnrollmentUsernameAndUUIDFuncInvoked bool UpdateNanoMDMUserEnrollmentUsernameFunc UpdateNanoMDMUserEnrollmentUsernameFunc UpdateNanoMDMUserEnrollmentUsernameFuncInvoked bool GetNanoMDMEnrollmentTimesFunc GetNanoMDMEnrollmentTimesFunc GetNanoMDMEnrollmentTimesFuncInvoked bool IncreasePolicyAutomationIterationFunc IncreasePolicyAutomationIterationFunc IncreasePolicyAutomationIterationFuncInvoked bool OutdatedAutomationBatchFunc OutdatedAutomationBatchFunc OutdatedAutomationBatchFuncInvoked bool ListMDMAppleProfilesToInstallFunc ListMDMAppleProfilesToInstallFunc ListMDMAppleProfilesToInstallFuncInvoked bool ListMDMAppleProfilesToRemoveFunc ListMDMAppleProfilesToRemoveFunc ListMDMAppleProfilesToRemoveFuncInvoked bool ListMDMAppleProfilesToInstallAndRemoveFunc ListMDMAppleProfilesToInstallAndRemoveFunc ListMDMAppleProfilesToInstallAndRemoveFuncInvoked bool BulkUpsertMDMAppleHostProfilesFunc BulkUpsertMDMAppleHostProfilesFunc BulkUpsertMDMAppleHostProfilesFuncInvoked bool BulkSetPendingMDMHostProfilesFunc BulkSetPendingMDMHostProfilesFunc BulkSetPendingMDMHostProfilesFuncInvoked bool GetMDMAppleProfilesContentsFunc GetMDMAppleProfilesContentsFunc GetMDMAppleProfilesContentsFuncInvoked bool UpdateOrDeleteHostMDMAppleProfileFunc UpdateOrDeleteHostMDMAppleProfileFunc UpdateOrDeleteHostMDMAppleProfileFuncInvoked bool GetMDMAppleCommandRequestTypeFunc GetMDMAppleCommandRequestTypeFunc GetMDMAppleCommandRequestTypeFuncInvoked bool GetMDMAppleProfilesSummaryFunc GetMDMAppleProfilesSummaryFunc GetMDMAppleProfilesSummaryFuncInvoked bool InsertMDMIdPAccountFunc InsertMDMIdPAccountFunc InsertMDMIdPAccountFuncInvoked bool AssociateHostMDMIdPAccountDBFunc AssociateHostMDMIdPAccountDBFunc AssociateHostMDMIdPAccountDBFuncInvoked bool GetMDMIdPAccountByUUIDFunc GetMDMIdPAccountByUUIDFunc GetMDMIdPAccountByUUIDFuncInvoked bool GetMDMIdPAccountByEmailFunc GetMDMIdPAccountByEmailFunc GetMDMIdPAccountByEmailFuncInvoked bool GetMDMIdPAccountsByHostUUIDsFunc GetMDMIdPAccountsByHostUUIDsFunc GetMDMIdPAccountsByHostUUIDsFuncInvoked bool GetMDMAppleFileVaultSummaryFunc GetMDMAppleFileVaultSummaryFunc GetMDMAppleFileVaultSummaryFuncInvoked bool InsertMDMAppleBootstrapPackageFunc InsertMDMAppleBootstrapPackageFunc InsertMDMAppleBootstrapPackageFuncInvoked bool CopyDefaultMDMAppleBootstrapPackageFunc CopyDefaultMDMAppleBootstrapPackageFunc CopyDefaultMDMAppleBootstrapPackageFuncInvoked bool DeleteMDMAppleBootstrapPackageFunc DeleteMDMAppleBootstrapPackageFunc DeleteMDMAppleBootstrapPackageFuncInvoked bool GetMDMAppleBootstrapPackageMetaFunc GetMDMAppleBootstrapPackageMetaFunc GetMDMAppleBootstrapPackageMetaFuncInvoked bool GetMDMAppleBootstrapPackageBytesFunc GetMDMAppleBootstrapPackageBytesFunc GetMDMAppleBootstrapPackageBytesFuncInvoked bool GetMDMAppleBootstrapPackageSummaryFunc GetMDMAppleBootstrapPackageSummaryFunc GetMDMAppleBootstrapPackageSummaryFuncInvoked bool RecordHostBootstrapPackageFunc RecordHostBootstrapPackageFunc RecordHostBootstrapPackageFuncInvoked bool RecordSkippedHostBootstrapPackageFunc RecordSkippedHostBootstrapPackageFunc RecordSkippedHostBootstrapPackageFuncInvoked bool GetHostBootstrapPackageCommandFunc GetHostBootstrapPackageCommandFunc GetHostBootstrapPackageCommandFuncInvoked bool CleanupUnusedBootstrapPackagesFunc CleanupUnusedBootstrapPackagesFunc CleanupUnusedBootstrapPackagesFuncInvoked bool GetHostMDMMacOSSetupFunc GetHostMDMMacOSSetupFunc GetHostMDMMacOSSetupFuncInvoked bool MDMGetEULAMetadataFunc MDMGetEULAMetadataFunc MDMGetEULAMetadataFuncInvoked bool MDMGetEULABytesFunc MDMGetEULABytesFunc MDMGetEULABytesFuncInvoked bool MDMInsertEULAFunc MDMInsertEULAFunc MDMInsertEULAFuncInvoked bool MDMDeleteEULAFunc MDMDeleteEULAFunc MDMDeleteEULAFuncInvoked bool SetOrUpdateMDMAppleSetupAssistantFunc SetOrUpdateMDMAppleSetupAssistantFunc SetOrUpdateMDMAppleSetupAssistantFuncInvoked bool GetMDMAppleSetupAssistantFunc GetMDMAppleSetupAssistantFunc GetMDMAppleSetupAssistantFuncInvoked bool GetMDMAppleSetupAssistantProfileForABMTokenFunc GetMDMAppleSetupAssistantProfileForABMTokenFunc GetMDMAppleSetupAssistantProfileForABMTokenFuncInvoked bool DeleteMDMAppleSetupAssistantFunc DeleteMDMAppleSetupAssistantFunc DeleteMDMAppleSetupAssistantFuncInvoked bool SetMDMAppleSetupAssistantProfileUUIDFunc SetMDMAppleSetupAssistantProfileUUIDFunc SetMDMAppleSetupAssistantProfileUUIDFuncInvoked bool SetMDMAppleDefaultSetupAssistantProfileUUIDFunc SetMDMAppleDefaultSetupAssistantProfileUUIDFunc SetMDMAppleDefaultSetupAssistantProfileUUIDFuncInvoked bool GetMDMAppleDefaultSetupAssistantFunc GetMDMAppleDefaultSetupAssistantFunc GetMDMAppleDefaultSetupAssistantFuncInvoked bool GetMatchingHostSerialsFunc GetMatchingHostSerialsFunc GetMatchingHostSerialsFuncInvoked bool GetMatchingHostSerialsMarkedDeletedFunc GetMatchingHostSerialsMarkedDeletedFunc GetMatchingHostSerialsMarkedDeletedFuncInvoked bool DeleteHostDEPAssignmentsFromAnotherABMFunc DeleteHostDEPAssignmentsFromAnotherABMFunc DeleteHostDEPAssignmentsFromAnotherABMFuncInvoked bool DeleteHostDEPAssignmentsFunc DeleteHostDEPAssignmentsFunc DeleteHostDEPAssignmentsFuncInvoked bool UpdateHostDEPAssignProfileResponsesFunc UpdateHostDEPAssignProfileResponsesFunc UpdateHostDEPAssignProfileResponsesFuncInvoked bool UpdateHostDEPAssignProfileResponsesSameABMFunc UpdateHostDEPAssignProfileResponsesSameABMFunc UpdateHostDEPAssignProfileResponsesSameABMFuncInvoked bool ScreenDEPAssignProfileSerialsForCooldownFunc ScreenDEPAssignProfileSerialsForCooldownFunc ScreenDEPAssignProfileSerialsForCooldownFuncInvoked bool GetDEPAssignProfileExpiredCooldownsFunc GetDEPAssignProfileExpiredCooldownsFunc GetDEPAssignProfileExpiredCooldownsFuncInvoked bool UpdateDEPAssignProfileRetryPendingFunc UpdateDEPAssignProfileRetryPendingFunc UpdateDEPAssignProfileRetryPendingFuncInvoked bool InsertMDMAppleDDMRequestFunc InsertMDMAppleDDMRequestFunc InsertMDMAppleDDMRequestFuncInvoked bool MDMAppleDDMDeclarationsTokenFunc MDMAppleDDMDeclarationsTokenFunc MDMAppleDDMDeclarationsTokenFuncInvoked bool MDMAppleDDMDeclarationItemsFunc MDMAppleDDMDeclarationItemsFunc MDMAppleDDMDeclarationItemsFuncInvoked bool MDMAppleDDMDeclarationsResponseFunc MDMAppleDDMDeclarationsResponseFunc MDMAppleDDMDeclarationsResponseFuncInvoked bool MDMAppleBatchSetHostDeclarationStateFunc MDMAppleBatchSetHostDeclarationStateFunc MDMAppleBatchSetHostDeclarationStateFuncInvoked bool MDMAppleHostDeclarationsGetAndClearResyncFunc MDMAppleHostDeclarationsGetAndClearResyncFunc MDMAppleHostDeclarationsGetAndClearResyncFuncInvoked bool MDMAppleStoreDDMStatusReportFunc MDMAppleStoreDDMStatusReportFunc MDMAppleStoreDDMStatusReportFuncInvoked bool MDMAppleSetPendingDeclarationsAsFunc MDMAppleSetPendingDeclarationsAsFunc MDMAppleSetPendingDeclarationsAsFuncInvoked bool MDMAppleSetRemoveDeclarationsAsPendingFunc MDMAppleSetRemoveDeclarationsAsPendingFunc MDMAppleSetRemoveDeclarationsAsPendingFuncInvoked bool GetMDMAppleOSUpdatesSettingsByHostSerialFunc GetMDMAppleOSUpdatesSettingsByHostSerialFunc GetMDMAppleOSUpdatesSettingsByHostSerialFuncInvoked bool GetCAConfigAssetFunc GetCAConfigAssetFunc GetCAConfigAssetFuncInvoked bool SaveCAConfigAssetsFunc SaveCAConfigAssetsFunc SaveCAConfigAssetsFuncInvoked bool DeleteCAConfigAssetsFunc DeleteCAConfigAssetsFunc DeleteCAConfigAssetsFuncInvoked bool GetABMTokenByOrgNameFunc GetABMTokenByOrgNameFunc GetABMTokenByOrgNameFuncInvoked bool SaveABMTokenFunc SaveABMTokenFunc SaveABMTokenFuncInvoked bool InsertVPPTokenFunc InsertVPPTokenFunc InsertVPPTokenFuncInvoked bool ListVPPTokensFunc ListVPPTokensFunc ListVPPTokensFuncInvoked bool GetVPPTokenFunc GetVPPTokenFunc GetVPPTokenFuncInvoked bool GetVPPTokenByTeamIDFunc GetVPPTokenByTeamIDFunc GetVPPTokenByTeamIDFuncInvoked bool UpdateVPPTokenTeamsFunc UpdateVPPTokenTeamsFunc UpdateVPPTokenTeamsFuncInvoked bool UpdateVPPTokenFunc UpdateVPPTokenFunc UpdateVPPTokenFuncInvoked bool DeleteVPPTokenFunc DeleteVPPTokenFunc DeleteVPPTokenFuncInvoked bool SetABMTokenTermsExpiredForOrgNameFunc SetABMTokenTermsExpiredForOrgNameFunc SetABMTokenTermsExpiredForOrgNameFuncInvoked bool CountABMTokensWithTermsExpiredFunc CountABMTokensWithTermsExpiredFunc CountABMTokensWithTermsExpiredFuncInvoked bool InsertABMTokenFunc InsertABMTokenFunc InsertABMTokenFuncInvoked bool ListABMTokensFunc ListABMTokensFunc ListABMTokensFuncInvoked bool DeleteABMTokenFunc DeleteABMTokenFunc DeleteABMTokenFuncInvoked bool GetABMTokenByIDFunc GetABMTokenByIDFunc GetABMTokenByIDFuncInvoked bool GetABMTokenCountFunc GetABMTokenCountFunc GetABMTokenCountFuncInvoked bool GetABMTokenOrgNamesAssociatedWithTeamFunc GetABMTokenOrgNamesAssociatedWithTeamFunc GetABMTokenOrgNamesAssociatedWithTeamFuncInvoked bool ClearMDMUpcomingActivitiesDBFunc ClearMDMUpcomingActivitiesDBFunc ClearMDMUpcomingActivitiesDBFuncInvoked bool GetMDMAppleEnrolledDeviceDeletedFromFleetFunc GetMDMAppleEnrolledDeviceDeletedFromFleetFunc GetMDMAppleEnrolledDeviceDeletedFromFleetFuncInvoked bool GetMDMAppleHostMDMEnrollRefFunc GetMDMAppleHostMDMEnrollRefFunc GetMDMAppleHostMDMEnrollRefFuncInvoked bool UpdateMDMAppleHostMDMEnrollRefFunc UpdateMDMAppleHostMDMEnrollRefFunc UpdateMDMAppleHostMDMEnrollRefFuncInvoked bool DeactivateMDMAppleHostSCEPRenewCommandsFunc DeactivateMDMAppleHostSCEPRenewCommandsFunc DeactivateMDMAppleHostSCEPRenewCommandsFuncInvoked bool ListMDMAppleEnrolledIPhoneIpadDeletedFromFleetFunc ListMDMAppleEnrolledIPhoneIpadDeletedFromFleetFunc ListMDMAppleEnrolledIPhoneIpadDeletedFromFleetFuncInvoked bool ReconcileMDMAppleEnrollRefFunc ReconcileMDMAppleEnrollRefFunc ReconcileMDMAppleEnrollRefFuncInvoked bool GetMDMIdPAccountByHostUUIDFunc GetMDMIdPAccountByHostUUIDFunc GetMDMIdPAccountByHostUUIDFuncInvoked bool AssociateHostMDMIdPAccountFunc AssociateHostMDMIdPAccountFunc AssociateHostMDMIdPAccountFuncInvoked bool WSTEPStoreCertificateFunc WSTEPStoreCertificateFunc WSTEPStoreCertificateFuncInvoked bool WSTEPNewSerialFunc WSTEPNewSerialFunc WSTEPNewSerialFuncInvoked bool WSTEPAssociateCertHashFunc WSTEPAssociateCertHashFunc WSTEPAssociateCertHashFuncInvoked bool MDMWindowsInsertEnrolledDeviceFunc MDMWindowsInsertEnrolledDeviceFunc MDMWindowsInsertEnrolledDeviceFuncInvoked bool MDMWindowsDeleteEnrolledDeviceOnReenrollmentFunc MDMWindowsDeleteEnrolledDeviceOnReenrollmentFunc MDMWindowsDeleteEnrolledDeviceOnReenrollmentFuncInvoked bool MDMWindowsGetEnrolledDeviceWithDeviceIDFunc MDMWindowsGetEnrolledDeviceWithDeviceIDFunc MDMWindowsGetEnrolledDeviceWithDeviceIDFuncInvoked bool MDMWindowsGetEnrolledDeviceWithHostUUIDFunc MDMWindowsGetEnrolledDeviceWithHostUUIDFunc MDMWindowsGetEnrolledDeviceWithHostUUIDFuncInvoked bool MDMWindowsDeleteEnrolledDeviceWithDeviceIDFunc MDMWindowsDeleteEnrolledDeviceWithDeviceIDFunc MDMWindowsDeleteEnrolledDeviceWithDeviceIDFuncInvoked bool MDMWindowsInsertCommandForHostsFunc MDMWindowsInsertCommandForHostsFunc MDMWindowsInsertCommandForHostsFuncInvoked bool MDMWindowsGetPendingCommandsFunc MDMWindowsGetPendingCommandsFunc MDMWindowsGetPendingCommandsFuncInvoked bool MDMWindowsSaveResponseFunc MDMWindowsSaveResponseFunc MDMWindowsSaveResponseFuncInvoked bool GetMDMWindowsCommandResultsFunc GetMDMWindowsCommandResultsFunc GetMDMWindowsCommandResultsFuncInvoked bool UpdateMDMWindowsEnrollmentsHostUUIDFunc UpdateMDMWindowsEnrollmentsHostUUIDFunc UpdateMDMWindowsEnrollmentsHostUUIDFuncInvoked bool GetMDMWindowsConfigProfileFunc GetMDMWindowsConfigProfileFunc GetMDMWindowsConfigProfileFuncInvoked bool DeleteMDMWindowsConfigProfileFunc DeleteMDMWindowsConfigProfileFunc DeleteMDMWindowsConfigProfileFuncInvoked bool DeleteMDMWindowsConfigProfileByTeamAndNameFunc DeleteMDMWindowsConfigProfileByTeamAndNameFunc DeleteMDMWindowsConfigProfileByTeamAndNameFuncInvoked bool GetHostMDMWindowsProfilesFunc GetHostMDMWindowsProfilesFunc GetHostMDMWindowsProfilesFuncInvoked bool ListMDMConfigProfilesFunc ListMDMConfigProfilesFunc ListMDMConfigProfilesFuncInvoked bool ResendHostMDMProfileFunc ResendHostMDMProfileFunc ResendHostMDMProfileFuncInvoked bool BatchResendMDMProfileToHostsFunc BatchResendMDMProfileToHostsFunc BatchResendMDMProfileToHostsFuncInvoked bool GetMDMConfigProfileStatusFunc GetMDMConfigProfileStatusFunc GetMDMConfigProfileStatusFuncInvoked bool GetHostMDMProfileInstallStatusFunc GetHostMDMProfileInstallStatusFunc GetHostMDMProfileInstallStatusFuncInvoked bool GetLinuxDiskEncryptionSummaryFunc GetLinuxDiskEncryptionSummaryFunc GetLinuxDiskEncryptionSummaryFuncInvoked bool GetMDMCommandPlatformFunc GetMDMCommandPlatformFunc GetMDMCommandPlatformFuncInvoked bool ListMDMCommandsFunc ListMDMCommandsFunc ListMDMCommandsFuncInvoked bool GetMDMWindowsBitLockerSummaryFunc GetMDMWindowsBitLockerSummaryFunc GetMDMWindowsBitLockerSummaryFuncInvoked bool GetMDMWindowsBitLockerStatusFunc GetMDMWindowsBitLockerStatusFunc GetMDMWindowsBitLockerStatusFuncInvoked bool GetMDMWindowsProfilesSummaryFunc GetMDMWindowsProfilesSummaryFunc GetMDMWindowsProfilesSummaryFuncInvoked bool ListMDMWindowsProfilesToInstallFunc ListMDMWindowsProfilesToInstallFunc ListMDMWindowsProfilesToInstallFuncInvoked bool ListMDMWindowsProfilesToRemoveFunc ListMDMWindowsProfilesToRemoveFunc ListMDMWindowsProfilesToRemoveFuncInvoked bool BulkUpsertMDMWindowsHostProfilesFunc BulkUpsertMDMWindowsHostProfilesFunc BulkUpsertMDMWindowsHostProfilesFuncInvoked bool GetMDMWindowsProfilesContentsFunc GetMDMWindowsProfilesContentsFunc GetMDMWindowsProfilesContentsFuncInvoked bool BulkDeleteMDMWindowsHostsConfigProfilesFunc BulkDeleteMDMWindowsHostsConfigProfilesFunc BulkDeleteMDMWindowsHostsConfigProfilesFuncInvoked bool NewMDMWindowsConfigProfileFunc NewMDMWindowsConfigProfileFunc NewMDMWindowsConfigProfileFuncInvoked bool SetOrUpdateMDMWindowsConfigProfileFunc SetOrUpdateMDMWindowsConfigProfileFunc SetOrUpdateMDMWindowsConfigProfileFuncInvoked bool BatchSetMDMProfilesFunc BatchSetMDMProfilesFunc BatchSetMDMProfilesFuncInvoked bool NewMDMAppleDeclarationFunc NewMDMAppleDeclarationFunc NewMDMAppleDeclarationFuncInvoked bool SetOrUpdateMDMAppleDeclarationFunc SetOrUpdateMDMAppleDeclarationFunc SetOrUpdateMDMAppleDeclarationFuncInvoked bool NewHostScriptExecutionRequestFunc NewHostScriptExecutionRequestFunc NewHostScriptExecutionRequestFuncInvoked bool SetHostScriptExecutionResultFunc SetHostScriptExecutionResultFunc SetHostScriptExecutionResultFuncInvoked bool GetHostScriptExecutionResultFunc GetHostScriptExecutionResultFunc GetHostScriptExecutionResultFuncInvoked bool GetSelfServiceUninstallScriptExecutionResultFunc GetSelfServiceUninstallScriptExecutionResultFunc GetSelfServiceUninstallScriptExecutionResultFuncInvoked bool ListPendingHostScriptExecutionsFunc ListPendingHostScriptExecutionsFunc ListPendingHostScriptExecutionsFuncInvoked bool ListReadyToExecuteScriptsForHostFunc ListReadyToExecuteScriptsForHostFunc ListReadyToExecuteScriptsForHostFuncInvoked bool NewScriptFunc NewScriptFunc NewScriptFuncInvoked bool UpdateScriptContentsFunc UpdateScriptContentsFunc UpdateScriptContentsFuncInvoked bool ScriptFunc ScriptFunc ScriptFuncInvoked bool GetScriptContentsFunc GetScriptContentsFunc GetScriptContentsFuncInvoked bool GetAnyScriptContentsFunc GetAnyScriptContentsFunc GetAnyScriptContentsFuncInvoked bool DeleteScriptFunc DeleteScriptFunc DeleteScriptFuncInvoked bool ListScriptsFunc ListScriptsFunc ListScriptsFuncInvoked bool GetScriptIDByNameFunc GetScriptIDByNameFunc GetScriptIDByNameFuncInvoked bool GetHostScriptDetailsFunc GetHostScriptDetailsFunc GetHostScriptDetailsFuncInvoked bool BatchSetScriptsFunc BatchSetScriptsFunc BatchSetScriptsFuncInvoked bool BatchExecuteScriptFunc BatchExecuteScriptFunc BatchExecuteScriptFuncInvoked bool BatchScheduleScriptFunc BatchScheduleScriptFunc BatchScheduleScriptFuncInvoked bool GetBatchActivityFunc GetBatchActivityFunc GetBatchActivityFuncInvoked bool GetBatchActivityHostResultsFunc GetBatchActivityHostResultsFunc GetBatchActivityHostResultsFuncInvoked bool RunScheduledBatchActivityFunc RunScheduledBatchActivityFunc RunScheduledBatchActivityFuncInvoked bool BatchExecuteSummaryFunc BatchExecuteSummaryFunc BatchExecuteSummaryFuncInvoked bool CancelBatchScriptFunc CancelBatchScriptFunc CancelBatchScriptFuncInvoked bool ListBatchScriptExecutionsFunc ListBatchScriptExecutionsFunc ListBatchScriptExecutionsFuncInvoked bool CountBatchScriptExecutionsFunc CountBatchScriptExecutionsFunc CountBatchScriptExecutionsFuncInvoked bool MarkActivitiesAsCompletedFunc MarkActivitiesAsCompletedFunc MarkActivitiesAsCompletedFuncInvoked bool GetHostLockWipeStatusFunc GetHostLockWipeStatusFunc GetHostLockWipeStatusFuncInvoked bool GetHostsLockWipeStatusBatchFunc GetHostsLockWipeStatusBatchFunc GetHostsLockWipeStatusBatchFuncInvoked bool LockHostViaScriptFunc LockHostViaScriptFunc LockHostViaScriptFuncInvoked bool UnlockHostViaScriptFunc UnlockHostViaScriptFunc UnlockHostViaScriptFuncInvoked bool UnlockHostManuallyFunc UnlockHostManuallyFunc UnlockHostManuallyFuncInvoked bool CleanAppleMDMLockFunc CleanAppleMDMLockFunc CleanAppleMDMLockFuncInvoked bool InsertHostLocationDataFunc InsertHostLocationDataFunc InsertHostLocationDataFuncInvoked bool GetHostLocationDataFunc GetHostLocationDataFunc GetHostLocationDataFuncInvoked bool DeleteHostLocationDataFunc DeleteHostLocationDataFunc DeleteHostLocationDataFuncInvoked bool CleanupUnusedScriptContentsFunc CleanupUnusedScriptContentsFunc CleanupUnusedScriptContentsFuncInvoked bool CleanupActivitiesAndAssociatedDataFunc CleanupActivitiesAndAssociatedDataFunc CleanupActivitiesAndAssociatedDataFuncInvoked bool WipeHostViaScriptFunc WipeHostViaScriptFunc WipeHostViaScriptFuncInvoked bool WipeHostViaWindowsMDMFunc WipeHostViaWindowsMDMFunc WipeHostViaWindowsMDMFuncInvoked bool UpdateHostLockWipeStatusFromAppleMDMResultFunc UpdateHostLockWipeStatusFromAppleMDMResultFunc UpdateHostLockWipeStatusFromAppleMDMResultFuncInvoked bool GetIncludedHostIDMapForSoftwareInstallerFunc GetIncludedHostIDMapForSoftwareInstallerFunc GetIncludedHostIDMapForSoftwareInstallerFuncInvoked bool GetExcludedHostIDMapForSoftwareInstallerFunc GetExcludedHostIDMapForSoftwareInstallerFunc GetExcludedHostIDMapForSoftwareInstallerFuncInvoked bool ClearSoftwareInstallerAutoInstallPolicyStatusForHostsFunc ClearSoftwareInstallerAutoInstallPolicyStatusForHostsFunc ClearSoftwareInstallerAutoInstallPolicyStatusForHostsFuncInvoked bool GetSoftwareInstallDetailsFunc GetSoftwareInstallDetailsFunc GetSoftwareInstallDetailsFuncInvoked bool ListPendingSoftwareInstallsFunc ListPendingSoftwareInstallsFunc ListPendingSoftwareInstallsFuncInvoked bool ListReadyToExecuteSoftwareInstallsFunc ListReadyToExecuteSoftwareInstallsFunc ListReadyToExecuteSoftwareInstallsFuncInvoked bool GetHostLastInstallDataFunc GetHostLastInstallDataFunc GetHostLastInstallDataFuncInvoked bool MatchOrCreateSoftwareInstallerFunc MatchOrCreateSoftwareInstallerFunc MatchOrCreateSoftwareInstallerFuncInvoked bool GetSoftwareInstallerMetadataByIDFunc GetSoftwareInstallerMetadataByIDFunc GetSoftwareInstallerMetadataByIDFuncInvoked bool ValidateOrbitSoftwareInstallerAccessFunc ValidateOrbitSoftwareInstallerAccessFunc ValidateOrbitSoftwareInstallerAccessFuncInvoked bool GetSoftwareInstallerMetadataByTeamAndTitleIDFunc GetSoftwareInstallerMetadataByTeamAndTitleIDFunc GetSoftwareInstallerMetadataByTeamAndTitleIDFuncInvoked bool InsertHostInHouseAppInstallFunc InsertHostInHouseAppInstallFunc InsertHostInHouseAppInstallFuncInvoked bool GetSoftwareInstallersPendingUninstallScriptPopulationFunc GetSoftwareInstallersPendingUninstallScriptPopulationFunc GetSoftwareInstallersPendingUninstallScriptPopulationFuncInvoked bool GetMSIInstallersWithoutUpgradeCodeFunc GetMSIInstallersWithoutUpgradeCodeFunc GetMSIInstallersWithoutUpgradeCodeFuncInvoked bool UpdateSoftwareInstallerWithoutPackageIDsFunc UpdateSoftwareInstallerWithoutPackageIDsFunc UpdateSoftwareInstallerWithoutPackageIDsFuncInvoked bool UpdateInstallerUpgradeCodeFunc UpdateInstallerUpgradeCodeFunc UpdateInstallerUpgradeCodeFuncInvoked bool ProcessInstallerUpdateSideEffectsFunc ProcessInstallerUpdateSideEffectsFunc ProcessInstallerUpdateSideEffectsFuncInvoked bool SaveInstallerUpdatesFunc SaveInstallerUpdatesFunc SaveInstallerUpdatesFuncInvoked bool UpdateInstallerSelfServiceFlagFunc UpdateInstallerSelfServiceFlagFunc UpdateInstallerSelfServiceFlagFuncInvoked bool GetVPPAppByTeamAndTitleIDFunc GetVPPAppByTeamAndTitleIDFunc GetVPPAppByTeamAndTitleIDFuncInvoked bool GetVPPAppMetadataByTeamAndTitleIDFunc GetVPPAppMetadataByTeamAndTitleIDFunc GetVPPAppMetadataByTeamAndTitleIDFuncInvoked bool MapAdamIDsPendingInstallFunc MapAdamIDsPendingInstallFunc MapAdamIDsPendingInstallFuncInvoked bool MapAdamIDsPendingInstallVerificationFunc MapAdamIDsPendingInstallVerificationFunc MapAdamIDsPendingInstallVerificationFuncInvoked bool MapAdamIDsRecentInstallsFunc MapAdamIDsRecentInstallsFunc MapAdamIDsRecentInstallsFuncInvoked bool GetTitleInfoFromVPPAppsTeamsIDFunc GetTitleInfoFromVPPAppsTeamsIDFunc GetTitleInfoFromVPPAppsTeamsIDFuncInvoked bool GetVPPAppMetadataByAdamIDPlatformTeamIDFunc GetVPPAppMetadataByAdamIDPlatformTeamIDFunc GetVPPAppMetadataByAdamIDPlatformTeamIDFuncInvoked bool DeleteSoftwareInstallerFunc DeleteSoftwareInstallerFunc DeleteSoftwareInstallerFuncInvoked bool DeleteVPPAppFromTeamFunc DeleteVPPAppFromTeamFunc DeleteVPPAppFromTeamFuncInvoked bool GetAndroidAppsInScopeForHostFunc GetAndroidAppsInScopeForHostFunc GetAndroidAppsInScopeForHostFuncInvoked bool GetSummaryHostSoftwareInstallsFunc GetSummaryHostSoftwareInstallsFunc GetSummaryHostSoftwareInstallsFuncInvoked bool GetSummaryHostVPPAppInstallsFunc GetSummaryHostVPPAppInstallsFunc GetSummaryHostVPPAppInstallsFuncInvoked bool GetSoftwareInstallResultsFunc GetSoftwareInstallResultsFunc GetSoftwareInstallResultsFuncInvoked bool CleanupUnusedSoftwareInstallersFunc CleanupUnusedSoftwareInstallersFunc CleanupUnusedSoftwareInstallersFuncInvoked bool SaveInHouseAppUpdatesFunc SaveInHouseAppUpdatesFunc SaveInHouseAppUpdatesFuncInvoked bool GetInHouseAppMetadataByTeamAndTitleIDFunc GetInHouseAppMetadataByTeamAndTitleIDFunc GetInHouseAppMetadataByTeamAndTitleIDFuncInvoked bool RemovePendingInHouseAppInstallsFunc RemovePendingInHouseAppInstallsFunc RemovePendingInHouseAppInstallsFuncInvoked bool GetSummaryHostInHouseAppInstallsFunc GetSummaryHostInHouseAppInstallsFunc GetSummaryHostInHouseAppInstallsFuncInvoked bool DeleteInHouseAppFunc DeleteInHouseAppFunc DeleteInHouseAppFuncInvoked bool CleanupUnusedSoftwareTitleIconsFunc CleanupUnusedSoftwareTitleIconsFunc CleanupUnusedSoftwareTitleIconsFuncInvoked bool BatchSetSoftwareInstallersFunc BatchSetSoftwareInstallersFunc BatchSetSoftwareInstallersFuncInvoked bool BatchSetInHouseAppsInstallersFunc BatchSetInHouseAppsInstallersFunc BatchSetInHouseAppsInstallersFuncInvoked bool GetSoftwareInstallersFunc GetSoftwareInstallersFunc GetSoftwareInstallersFuncInvoked bool HasSelfServiceSoftwareInstallersFunc HasSelfServiceSoftwareInstallersFunc HasSelfServiceSoftwareInstallersFuncInvoked bool CreateOrUpdateSoftwareTitleIconFunc CreateOrUpdateSoftwareTitleIconFunc CreateOrUpdateSoftwareTitleIconFuncInvoked bool GetSoftwareTitleIconFunc GetSoftwareTitleIconFunc GetSoftwareTitleIconFuncInvoked bool GetTeamIdsForIconStorageIdFunc GetTeamIdsForIconStorageIdFunc GetTeamIdsForIconStorageIdFuncInvoked bool GetSoftwareIconsByTeamAndTitleIdsFunc GetSoftwareIconsByTeamAndTitleIdsFunc GetSoftwareIconsByTeamAndTitleIdsFuncInvoked bool DeleteSoftwareTitleIconFunc DeleteSoftwareTitleIconFunc DeleteSoftwareTitleIconFuncInvoked bool DeleteIconsAssociatedWithTitlesWithoutInstallersFunc DeleteIconsAssociatedWithTitlesWithoutInstallersFunc DeleteIconsAssociatedWithTitlesWithoutInstallersFuncInvoked bool ActivityDetailsForSoftwareTitleIconFunc ActivityDetailsForSoftwareTitleIconFunc ActivityDetailsForSoftwareTitleIconFuncInvoked bool BatchInsertVPPAppsFunc BatchInsertVPPAppsFunc BatchInsertVPPAppsFuncInvoked bool GetAssignedVPPAppsFunc GetAssignedVPPAppsFunc GetAssignedVPPAppsFuncInvoked bool GetVPPAppsFunc GetVPPAppsFunc GetVPPAppsFuncInvoked bool SetTeamVPPAppsFunc SetTeamVPPAppsFunc SetTeamVPPAppsFuncInvoked bool InsertVPPAppWithTeamFunc InsertVPPAppWithTeamFunc InsertVPPAppWithTeamFuncInvoked bool GetVPPAppsToInstallDuringSetupExperienceFunc GetVPPAppsToInstallDuringSetupExperienceFunc GetVPPAppsToInstallDuringSetupExperienceFuncInvoked bool GetAllVPPAppsFunc GetAllVPPAppsFunc GetAllVPPAppsFuncInvoked bool InsertVPPAppsFunc InsertVPPAppsFunc InsertVPPAppsFuncInvoked bool InsertHostVPPSoftwareInstallFunc InsertHostVPPSoftwareInstallFunc InsertHostVPPSoftwareInstallFuncInvoked bool GetPastActivityDataForVPPAppInstallFunc GetPastActivityDataForVPPAppInstallFunc GetPastActivityDataForVPPAppInstallFuncInvoked bool GetVPPAppInstallStatusByCommandUUIDFunc GetVPPAppInstallStatusByCommandUUIDFunc GetVPPAppInstallStatusByCommandUUIDFuncInvoked bool IsAutoUpdateVPPInstallFunc IsAutoUpdateVPPInstallFunc IsAutoUpdateVPPInstallFuncInvoked bool GetVPPTokenByLocationFunc GetVPPTokenByLocationFunc GetVPPTokenByLocationFuncInvoked bool GetIncludedHostIDMapForVPPAppFunc GetIncludedHostIDMapForVPPAppFunc GetIncludedHostIDMapForVPPAppFuncInvoked bool GetIncludedHostUUIDMapForAppStoreAppFunc GetIncludedHostUUIDMapForAppStoreAppFunc GetIncludedHostUUIDMapForAppStoreAppFuncInvoked bool GetExcludedHostIDMapForVPPAppFunc GetExcludedHostIDMapForVPPAppFunc GetExcludedHostIDMapForVPPAppFuncInvoked bool ClearVPPAppAutoInstallPolicyStatusForHostsFunc ClearVPPAppAutoInstallPolicyStatusForHostsFunc ClearVPPAppAutoInstallPolicyStatusForHostsFuncInvoked bool SetSetupExperienceSoftwareTitlesFunc SetSetupExperienceSoftwareTitlesFunc SetSetupExperienceSoftwareTitlesFuncInvoked bool ListSetupExperienceSoftwareTitlesFunc ListSetupExperienceSoftwareTitlesFunc ListSetupExperienceSoftwareTitlesFuncInvoked bool SetHostAwaitingConfigurationFunc SetHostAwaitingConfigurationFunc SetHostAwaitingConfigurationFuncInvoked bool GetHostAwaitingConfigurationFunc GetHostAwaitingConfigurationFunc GetHostAwaitingConfigurationFuncInvoked bool GetTeamsWithInstallerByHashFunc GetTeamsWithInstallerByHashFunc GetTeamsWithInstallerByHashFuncInvoked bool TeamIDsWithSetupExperienceIdPEnabledFunc TeamIDsWithSetupExperienceIdPEnabledFunc TeamIDsWithSetupExperienceIdPEnabledFuncInvoked bool ListSetupExperienceResultsByHostUUIDFunc ListSetupExperienceResultsByHostUUIDFunc ListSetupExperienceResultsByHostUUIDFuncInvoked bool UpdateSetupExperienceStatusResultFunc UpdateSetupExperienceStatusResultFunc UpdateSetupExperienceStatusResultFuncInvoked bool EnqueueSetupExperienceItemsFunc EnqueueSetupExperienceItemsFunc EnqueueSetupExperienceItemsFuncInvoked bool ResetSetupExperienceItemsAfterFailureFunc ResetSetupExperienceItemsAfterFailureFunc ResetSetupExperienceItemsAfterFailureFuncInvoked bool CancelPendingSetupExperienceStepsFunc CancelPendingSetupExperienceStepsFunc CancelPendingSetupExperienceStepsFuncInvoked bool GetSetupExperienceScriptFunc GetSetupExperienceScriptFunc GetSetupExperienceScriptFuncInvoked bool GetSetupExperienceScriptByIDFunc GetSetupExperienceScriptByIDFunc GetSetupExperienceScriptByIDFuncInvoked bool SetSetupExperienceScriptFunc SetSetupExperienceScriptFunc SetSetupExperienceScriptFuncInvoked bool DeleteSetupExperienceScriptFunc DeleteSetupExperienceScriptFunc DeleteSetupExperienceScriptFuncInvoked bool MaybeUpdateSetupExperienceScriptStatusFunc MaybeUpdateSetupExperienceScriptStatusFunc MaybeUpdateSetupExperienceScriptStatusFuncInvoked bool MaybeUpdateSetupExperienceSoftwareInstallStatusFunc MaybeUpdateSetupExperienceSoftwareInstallStatusFunc MaybeUpdateSetupExperienceSoftwareInstallStatusFuncInvoked bool MaybeUpdateSetupExperienceVPPStatusFunc MaybeUpdateSetupExperienceVPPStatusFunc MaybeUpdateSetupExperienceVPPStatusFuncInvoked bool ListAvailableFleetMaintainedAppsFunc ListAvailableFleetMaintainedAppsFunc ListAvailableFleetMaintainedAppsFuncInvoked bool ClearRemovedFleetMaintainedAppsFunc ClearRemovedFleetMaintainedAppsFunc ClearRemovedFleetMaintainedAppsFuncInvoked bool GetSetupExperienceCountFunc GetSetupExperienceCountFunc GetSetupExperienceCountFuncInvoked bool GetMaintainedAppByIDFunc GetMaintainedAppByIDFunc GetMaintainedAppByIDFuncInvoked bool GetMaintainedAppBySlugFunc GetMaintainedAppBySlugFunc GetMaintainedAppBySlugFuncInvoked bool UpsertMaintainedAppFunc UpsertMaintainedAppFunc UpsertMaintainedAppFuncInvoked bool BulkUpsertMDMManagedCertificatesFunc BulkUpsertMDMManagedCertificatesFunc BulkUpsertMDMManagedCertificatesFuncInvoked bool GetAppleHostMDMCertificateProfileFunc GetAppleHostMDMCertificateProfileFunc GetAppleHostMDMCertificateProfileFuncInvoked bool GetWindowsHostMDMCertificateProfileFunc GetWindowsHostMDMCertificateProfileFunc GetWindowsHostMDMCertificateProfileFuncInvoked bool CleanUpMDMManagedCertificatesFunc CleanUpMDMManagedCertificatesFunc CleanUpMDMManagedCertificatesFuncInvoked bool RenewMDMManagedCertificatesFunc RenewMDMManagedCertificatesFunc RenewMDMManagedCertificatesFuncInvoked bool ListHostMDMManagedCertificatesFunc ListHostMDMManagedCertificatesFunc ListHostMDMManagedCertificatesFuncInvoked bool ResendHostCertificateProfileFunc ResendHostCertificateProfileFunc ResendHostCertificateProfileFuncInvoked bool UpsertSecretVariablesFunc UpsertSecretVariablesFunc UpsertSecretVariablesFuncInvoked bool CreateSecretVariableFunc CreateSecretVariableFunc CreateSecretVariableFuncInvoked bool ListSecretVariablesFunc ListSecretVariablesFunc ListSecretVariablesFuncInvoked bool DeleteSecretVariableFunc DeleteSecretVariableFunc DeleteSecretVariableFuncInvoked bool GetSecretVariablesFunc GetSecretVariablesFunc GetSecretVariablesFuncInvoked bool ValidateEmbeddedSecretsFunc ValidateEmbeddedSecretsFunc ValidateEmbeddedSecretsFuncInvoked bool ExpandEmbeddedSecretsFunc ExpandEmbeddedSecretsFunc ExpandEmbeddedSecretsFuncInvoked bool ExpandEmbeddedSecretsAndUpdatedAtFunc ExpandEmbeddedSecretsAndUpdatedAtFunc ExpandEmbeddedSecretsAndUpdatedAtFuncInvoked bool CreateEnterpriseFunc CreateEnterpriseFunc CreateEnterpriseFuncInvoked bool GetEnterpriseByIDFunc GetEnterpriseByIDFunc GetEnterpriseByIDFuncInvoked bool GetEnterpriseBySignupTokenFunc GetEnterpriseBySignupTokenFunc GetEnterpriseBySignupTokenFuncInvoked bool GetEnterpriseFunc GetEnterpriseFunc GetEnterpriseFuncInvoked bool UpdateEnterpriseFunc UpdateEnterpriseFunc UpdateEnterpriseFuncInvoked bool DeleteAllEnterprisesFunc DeleteAllEnterprisesFunc DeleteAllEnterprisesFuncInvoked bool DeleteOtherEnterprisesFunc DeleteOtherEnterprisesFunc DeleteOtherEnterprisesFuncInvoked bool CreateDeviceTxFunc CreateDeviceTxFunc CreateDeviceTxFuncInvoked bool UpdateDeviceTxFunc UpdateDeviceTxFunc UpdateDeviceTxFuncInvoked bool AndroidHostLiteFunc AndroidHostLiteFunc AndroidHostLiteFuncInvoked bool AndroidHostLiteByHostUUIDFunc AndroidHostLiteByHostUUIDFunc AndroidHostLiteByHostUUIDFuncInvoked bool BulkSetAndroidHostsUnenrolledFunc BulkSetAndroidHostsUnenrolledFunc BulkSetAndroidHostsUnenrolledFuncInvoked bool SetAndroidHostUnenrolledFunc SetAndroidHostUnenrolledFunc SetAndroidHostUnenrolledFuncInvoked bool NewAndroidHostFunc NewAndroidHostFunc NewAndroidHostFuncInvoked bool SetAndroidEnabledAndConfiguredFunc SetAndroidEnabledAndConfiguredFunc SetAndroidEnabledAndConfiguredFuncInvoked bool UpdateAndroidHostFunc UpdateAndroidHostFunc UpdateAndroidHostFuncInvoked bool BulkUpsertMDMAndroidHostProfilesFunc BulkUpsertMDMAndroidHostProfilesFunc BulkUpsertMDMAndroidHostProfilesFuncInvoked bool BulkDeleteMDMAndroidHostProfilesFunc BulkDeleteMDMAndroidHostProfilesFunc BulkDeleteMDMAndroidHostProfilesFuncInvoked bool ListHostMDMAndroidProfilesPendingOrFailedInstallWithVersionFunc ListHostMDMAndroidProfilesPendingOrFailedInstallWithVersionFunc ListHostMDMAndroidProfilesPendingOrFailedInstallWithVersionFuncInvoked bool GetAndroidPolicyRequestByUUIDFunc GetAndroidPolicyRequestByUUIDFunc GetAndroidPolicyRequestByUUIDFuncInvoked bool GetLatestAppleMDMCommandOfTypeFunc GetLatestAppleMDMCommandOfTypeFunc GetLatestAppleMDMCommandOfTypeFuncInvoked bool SetLockCommandForLostModeCheckinFunc SetLockCommandForLostModeCheckinFunc SetLockCommandForLostModeCheckinFuncInvoked bool ListHostMDMAndroidVPPAppsPendingInstallWithVersionFunc ListHostMDMAndroidVPPAppsPendingInstallWithVersionFunc ListHostMDMAndroidVPPAppsPendingInstallWithVersionFuncInvoked bool BulkSetVPPInstallsAsVerifiedFunc BulkSetVPPInstallsAsVerifiedFunc BulkSetVPPInstallsAsVerifiedFuncInvoked bool BulkSetVPPInstallsAsFailedFunc BulkSetVPPInstallsAsFailedFunc BulkSetVPPInstallsAsFailedFuncInvoked bool GetPastActivityDataForAndroidVPPAppInstallFunc GetPastActivityDataForAndroidVPPAppInstallFunc GetPastActivityDataForAndroidVPPAppInstallFuncInvoked bool MarkAllPendingAndroidVPPInstallsAsFailedFunc MarkAllPendingAndroidVPPInstallsAsFailedFunc MarkAllPendingAndroidVPPInstallsAsFailedFuncInvoked bool MarkAllPendingVPPInstallsAsFailedForAndroidHostFunc MarkAllPendingVPPInstallsAsFailedForAndroidHostFunc MarkAllPendingVPPInstallsAsFailedForAndroidHostFuncInvoked bool NewMDMAndroidConfigProfileFunc NewMDMAndroidConfigProfileFunc NewMDMAndroidConfigProfileFuncInvoked bool GetMDMAndroidConfigProfileFunc GetMDMAndroidConfigProfileFunc GetMDMAndroidConfigProfileFuncInvoked bool DeleteMDMAndroidConfigProfileFunc DeleteMDMAndroidConfigProfileFunc DeleteMDMAndroidConfigProfileFuncInvoked bool GetMDMAndroidProfilesSummaryFunc GetMDMAndroidProfilesSummaryFunc GetMDMAndroidProfilesSummaryFuncInvoked bool GetHostCertificateTemplatesFunc GetHostCertificateTemplatesFunc GetHostCertificateTemplatesFuncInvoked bool CreatePendingCertificateTemplatesForExistingHostsFunc CreatePendingCertificateTemplatesForExistingHostsFunc CreatePendingCertificateTemplatesForExistingHostsFuncInvoked bool CreatePendingCertificateTemplatesForNewHostFunc CreatePendingCertificateTemplatesForNewHostFunc CreatePendingCertificateTemplatesForNewHostFuncInvoked bool RevertStaleCertificateTemplatesFunc RevertStaleCertificateTemplatesFunc RevertStaleCertificateTemplatesFuncInvoked bool GetHostMDMAndroidProfilesFunc GetHostMDMAndroidProfilesFunc GetHostMDMAndroidProfilesFuncInvoked bool NewAndroidPolicyRequestFunc NewAndroidPolicyRequestFunc NewAndroidPolicyRequestFuncInvoked bool ListMDMAndroidProfilesToSendFunc ListMDMAndroidProfilesToSendFunc ListMDMAndroidProfilesToSendFuncInvoked bool GetMDMAndroidProfilesContentsFunc GetMDMAndroidProfilesContentsFunc GetMDMAndroidProfilesContentsFuncInvoked bool ListAndroidEnrolledDevicesForReconcileFunc ListAndroidEnrolledDevicesForReconcileFunc ListAndroidEnrolledDevicesForReconcileFuncInvoked bool InsertAndroidSetupExperienceSoftwareInstallFunc InsertAndroidSetupExperienceSoftwareInstallFunc InsertAndroidSetupExperienceSoftwareInstallFuncInvoked bool GetAndroidAppConfigurationFunc GetAndroidAppConfigurationFunc GetAndroidAppConfigurationFuncInvoked bool GetAndroidAppConfigurationByAppTeamIDFunc GetAndroidAppConfigurationByAppTeamIDFunc GetAndroidAppConfigurationByAppTeamIDFuncInvoked bool HasAndroidAppConfigurationChangedFunc HasAndroidAppConfigurationChangedFunc HasAndroidAppConfigurationChangedFuncInvoked bool SetAndroidAppInstallPendingApplyConfigFunc SetAndroidAppInstallPendingApplyConfigFunc SetAndroidAppInstallPendingApplyConfigFuncInvoked bool BulkGetAndroidAppConfigurationsFunc BulkGetAndroidAppConfigurationsFunc BulkGetAndroidAppConfigurationsFuncInvoked bool DeleteAndroidAppConfigurationFunc DeleteAndroidAppConfigurationFunc DeleteAndroidAppConfigurationFuncInvoked bool ListMDMAndroidUUIDsToHostIDsFunc ListMDMAndroidUUIDsToHostIDsFunc ListMDMAndroidUUIDsToHostIDsFuncInvoked bool CreateScimUserFunc CreateScimUserFunc CreateScimUserFuncInvoked bool ScimUserByIDFunc ScimUserByIDFunc ScimUserByIDFuncInvoked bool ScimUserByUserNameFunc ScimUserByUserNameFunc ScimUserByUserNameFuncInvoked bool ScimUserByUserNameOrEmailFunc ScimUserByUserNameOrEmailFunc ScimUserByUserNameOrEmailFuncInvoked bool ScimUserByHostIDFunc ScimUserByHostIDFunc ScimUserByHostIDFuncInvoked bool ScimUsersExistFunc ScimUsersExistFunc ScimUsersExistFuncInvoked bool ReplaceScimUserFunc ReplaceScimUserFunc ReplaceScimUserFuncInvoked bool DeleteScimUserFunc DeleteScimUserFunc DeleteScimUserFuncInvoked bool ListScimUsersFunc ListScimUsersFunc ListScimUsersFuncInvoked bool CreateScimGroupFunc CreateScimGroupFunc CreateScimGroupFuncInvoked bool ScimGroupByIDFunc ScimGroupByIDFunc ScimGroupByIDFuncInvoked bool ScimGroupByDisplayNameFunc ScimGroupByDisplayNameFunc ScimGroupByDisplayNameFuncInvoked bool ReplaceScimGroupFunc ReplaceScimGroupFunc ReplaceScimGroupFuncInvoked bool DeleteScimGroupFunc DeleteScimGroupFunc DeleteScimGroupFuncInvoked bool ListScimGroupsFunc ListScimGroupsFunc ListScimGroupsFuncInvoked bool ScimLastRequestFunc ScimLastRequestFunc ScimLastRequestFuncInvoked bool UpdateScimLastRequestFunc UpdateScimLastRequestFunc UpdateScimLastRequestFuncInvoked bool MaybeAssociateHostWithScimUserFunc MaybeAssociateHostWithScimUserFunc MaybeAssociateHostWithScimUserFuncInvoked bool NewChallengeFunc NewChallengeFunc NewChallengeFuncInvoked bool ConsumeChallengeFunc ConsumeChallengeFunc ConsumeChallengeFuncInvoked bool CleanupExpiredChallengesFunc CleanupExpiredChallengesFunc CleanupExpiredChallengesFuncInvoked bool ConditionalAccessMicrosoftCreateIntegrationFunc ConditionalAccessMicrosoftCreateIntegrationFunc ConditionalAccessMicrosoftCreateIntegrationFuncInvoked bool ConditionalAccessMicrosoftGetFunc ConditionalAccessMicrosoftGetFunc ConditionalAccessMicrosoftGetFuncInvoked bool ConditionalAccessMicrosoftMarkSetupDoneFunc ConditionalAccessMicrosoftMarkSetupDoneFunc ConditionalAccessMicrosoftMarkSetupDoneFuncInvoked bool ConditionalAccessMicrosoftDeleteFunc ConditionalAccessMicrosoftDeleteFunc ConditionalAccessMicrosoftDeleteFuncInvoked bool LoadHostConditionalAccessStatusFunc LoadHostConditionalAccessStatusFunc LoadHostConditionalAccessStatusFuncInvoked bool CreateHostConditionalAccessStatusFunc CreateHostConditionalAccessStatusFunc CreateHostConditionalAccessStatusFuncInvoked bool SetHostConditionalAccessStatusFunc SetHostConditionalAccessStatusFunc SetHostConditionalAccessStatusFuncInvoked bool GetHostIdentityCertBySerialNumberFunc GetHostIdentityCertBySerialNumberFunc GetHostIdentityCertBySerialNumberFuncInvoked bool GetHostIdentityCertByNameFunc GetHostIdentityCertByNameFunc GetHostIdentityCertByNameFuncInvoked bool UpdateHostIdentityCertHostIDBySerialFunc UpdateHostIdentityCertHostIDBySerialFunc UpdateHostIdentityCertHostIDBySerialFuncInvoked bool GetMDMSCEPCertBySerialFunc GetMDMSCEPCertBySerialFunc GetMDMSCEPCertBySerialFuncInvoked bool GetConditionalAccessCertHostIDBySerialNumberFunc GetConditionalAccessCertHostIDBySerialNumberFunc GetConditionalAccessCertHostIDBySerialNumberFuncInvoked bool GetConditionalAccessCertCreatedAtByHostIDFunc GetConditionalAccessCertCreatedAtByHostIDFunc GetConditionalAccessCertCreatedAtByHostIDFuncInvoked bool RevokeOldConditionalAccessCertsFunc RevokeOldConditionalAccessCertsFunc RevokeOldConditionalAccessCertsFuncInvoked bool NewCertificateAuthorityFunc NewCertificateAuthorityFunc NewCertificateAuthorityFuncInvoked bool GetCertificateAuthorityByIDFunc GetCertificateAuthorityByIDFunc GetCertificateAuthorityByIDFuncInvoked bool GetAllCertificateAuthoritiesFunc GetAllCertificateAuthoritiesFunc GetAllCertificateAuthoritiesFuncInvoked bool GetGroupedCertificateAuthoritiesFunc GetGroupedCertificateAuthoritiesFunc GetGroupedCertificateAuthoritiesFuncInvoked bool ListCertificateAuthoritiesFunc ListCertificateAuthoritiesFunc ListCertificateAuthoritiesFuncInvoked bool DeleteCertificateAuthorityFunc DeleteCertificateAuthorityFunc DeleteCertificateAuthorityFuncInvoked bool UpdateCertificateAuthorityByIDFunc UpdateCertificateAuthorityByIDFunc UpdateCertificateAuthorityByIDFuncInvoked bool BatchApplyCertificateAuthoritiesFunc BatchApplyCertificateAuthoritiesFunc BatchApplyCertificateAuthoritiesFuncInvoked bool UpsertCertificateStatusFunc UpsertCertificateStatusFunc UpsertCertificateStatusFuncInvoked bool BatchUpsertCertificateTemplatesFunc BatchUpsertCertificateTemplatesFunc BatchUpsertCertificateTemplatesFuncInvoked bool BatchDeleteCertificateTemplatesFunc BatchDeleteCertificateTemplatesFunc BatchDeleteCertificateTemplatesFuncInvoked bool CreateCertificateTemplateFunc CreateCertificateTemplateFunc CreateCertificateTemplateFuncInvoked bool DeleteCertificateTemplateFunc DeleteCertificateTemplateFunc DeleteCertificateTemplateFuncInvoked bool GetCertificateTemplateByIdFunc GetCertificateTemplateByIdFunc GetCertificateTemplateByIdFuncInvoked bool GetCertificateTemplateByIdForHostFunc GetCertificateTemplateByIdForHostFunc GetCertificateTemplateByIdForHostFuncInvoked bool GetCertificateTemplatesByTeamIDFunc GetCertificateTemplatesByTeamIDFunc GetCertificateTemplatesByTeamIDFuncInvoked bool GetCertificateTemplatesByIdsAndTeamFunc GetCertificateTemplatesByIdsAndTeamFunc GetCertificateTemplatesByIdsAndTeamFuncInvoked bool GetCertificateTemplateByTeamIDAndNameFunc GetCertificateTemplateByTeamIDAndNameFunc GetCertificateTemplateByTeamIDAndNameFuncInvoked bool ListAndroidHostUUIDsWithDeliverableCertificateTemplatesFunc ListAndroidHostUUIDsWithDeliverableCertificateTemplatesFunc ListAndroidHostUUIDsWithDeliverableCertificateTemplatesFuncInvoked bool ListCertificateTemplatesForHostsFunc ListCertificateTemplatesForHostsFunc ListCertificateTemplatesForHostsFuncInvoked bool GetCertificateTemplateForHostFunc GetCertificateTemplateForHostFunc GetCertificateTemplateForHostFuncInvoked bool GetHostCertificateTemplateRecordFunc GetHostCertificateTemplateRecordFunc GetHostCertificateTemplateRecordFuncInvoked bool BulkInsertHostCertificateTemplatesFunc BulkInsertHostCertificateTemplatesFunc BulkInsertHostCertificateTemplatesFuncInvoked bool DeleteHostCertificateTemplatesFunc DeleteHostCertificateTemplatesFunc DeleteHostCertificateTemplatesFuncInvoked bool DeleteHostCertificateTemplateFunc DeleteHostCertificateTemplateFunc DeleteHostCertificateTemplateFuncInvoked bool ListAndroidHostUUIDsWithPendingCertificateTemplatesFunc ListAndroidHostUUIDsWithPendingCertificateTemplatesFunc ListAndroidHostUUIDsWithPendingCertificateTemplatesFuncInvoked bool GetAndTransitionCertificateTemplatesToDeliveringFunc GetAndTransitionCertificateTemplatesToDeliveringFunc GetAndTransitionCertificateTemplatesToDeliveringFuncInvoked bool TransitionCertificateTemplatesToDeliveredFunc TransitionCertificateTemplatesToDeliveredFunc TransitionCertificateTemplatesToDeliveredFuncInvoked bool RevertHostCertificateTemplatesToPendingFunc RevertHostCertificateTemplatesToPendingFunc RevertHostCertificateTemplatesToPendingFuncInvoked bool SetHostCertificateTemplatesToPendingRemoveFunc SetHostCertificateTemplatesToPendingRemoveFunc SetHostCertificateTemplatesToPendingRemoveFuncInvoked bool SetHostCertificateTemplatesToPendingRemoveForHostFunc SetHostCertificateTemplatesToPendingRemoveForHostFunc SetHostCertificateTemplatesToPendingRemoveForHostFuncInvoked bool GetAndroidCertificateTemplatesForRenewalFunc GetAndroidCertificateTemplatesForRenewalFunc GetAndroidCertificateTemplatesForRenewalFuncInvoked bool SetAndroidCertificateTemplatesForRenewalFunc SetAndroidCertificateTemplatesForRenewalFunc SetAndroidCertificateTemplatesForRenewalFuncInvoked bool GetOrCreateFleetChallengeForCertificateTemplateFunc GetOrCreateFleetChallengeForCertificateTemplateFunc GetOrCreateFleetChallengeForCertificateTemplateFuncInvoked bool GetCurrentTimeFunc GetCurrentTimeFunc GetCurrentTimeFuncInvoked bool UpdateOrDeleteHostMDMWindowsProfileFunc UpdateOrDeleteHostMDMWindowsProfileFunc UpdateOrDeleteHostMDMWindowsProfileFuncInvoked bool GetWindowsMDMCommandsForResendingFunc GetWindowsMDMCommandsForResendingFunc GetWindowsMDMCommandsForResendingFuncInvoked bool ResendWindowsMDMCommandFunc ResendWindowsMDMCommandFunc ResendWindowsMDMCommandFuncInvoked bool GetHostVPPInstallByCommandUUIDFunc GetHostVPPInstallByCommandUUIDFunc GetHostVPPInstallByCommandUUIDFuncInvoked bool RetryVPPInstallFunc RetryVPPInstallFunc RetryVPPInstallFuncInvoked bool MDMWindowsUpdateEnrolledDeviceCredentialsFunc MDMWindowsUpdateEnrolledDeviceCredentialsFunc MDMWindowsUpdateEnrolledDeviceCredentialsFuncInvoked bool MDMWindowsAcknowledgeEnrolledDeviceCredentialsFunc MDMWindowsAcknowledgeEnrolledDeviceCredentialsFunc MDMWindowsAcknowledgeEnrolledDeviceCredentialsFuncInvoked bool mu sync.Mutex } func (s *DataStore) AppConfig(ctx context.Context) (*fleet.AppConfig, error) { s.mu.Lock() s.AppConfigFuncInvoked = true s.mu.Unlock() return s.AppConfigFunc(ctx) } func (s *DataStore) InsertMDMConfigAssets(ctx context.Context, assets []fleet.MDMConfigAsset, tx sqlx.ExtContext) error { s.mu.Lock() s.InsertMDMConfigAssetsFuncInvoked = true s.mu.Unlock() return s.InsertMDMConfigAssetsFunc(ctx, assets, tx) } func (s *DataStore) InsertOrReplaceMDMConfigAsset(ctx context.Context, asset fleet.MDMConfigAsset) error { s.mu.Lock() s.InsertOrReplaceMDMConfigAssetFuncInvoked = true s.mu.Unlock() return s.InsertOrReplaceMDMConfigAssetFunc(ctx, asset) } func (s *DataStore) GetAllMDMConfigAssetsByName(ctx context.Context, assetNames []fleet.MDMAssetName, queryerContext sqlx.QueryerContext) (map[fleet.MDMAssetName]fleet.MDMConfigAsset, error) { s.mu.Lock() s.GetAllMDMConfigAssetsByNameFuncInvoked = true s.mu.Unlock() return s.GetAllMDMConfigAssetsByNameFunc(ctx, assetNames, queryerContext) } func (s *DataStore) GetAllMDMConfigAssetsHashes(ctx context.Context, assetNames []fleet.MDMAssetName) (map[fleet.MDMAssetName]string, error) { s.mu.Lock() s.GetAllMDMConfigAssetsHashesFuncInvoked = true s.mu.Unlock() return s.GetAllMDMConfigAssetsHashesFunc(ctx, assetNames) } func (s *DataStore) DeleteMDMConfigAssetsByName(ctx context.Context, assetNames []fleet.MDMAssetName) error { s.mu.Lock() s.DeleteMDMConfigAssetsByNameFuncInvoked = true s.mu.Unlock() return s.DeleteMDMConfigAssetsByNameFunc(ctx, assetNames) } func (s *DataStore) HardDeleteMDMConfigAsset(ctx context.Context, assetName fleet.MDMAssetName) error { s.mu.Lock() s.HardDeleteMDMConfigAssetFuncInvoked = true s.mu.Unlock() return s.HardDeleteMDMConfigAssetFunc(ctx, assetName) } func (s *DataStore) ReplaceMDMConfigAssets(ctx context.Context, assets []fleet.MDMConfigAsset, tx sqlx.ExtContext) error { s.mu.Lock() s.ReplaceMDMConfigAssetsFuncInvoked = true s.mu.Unlock() return s.ReplaceMDMConfigAssetsFunc(ctx, assets, tx) } func (s *DataStore) GetAllCAConfigAssetsByType(ctx context.Context, assetType fleet.CAConfigAssetType) (map[string]fleet.CAConfigAsset, error) { s.mu.Lock() s.GetAllCAConfigAssetsByTypeFuncInvoked = true s.mu.Unlock() return s.GetAllCAConfigAssetsByTypeFunc(ctx, assetType) } func (s *DataStore) HealthCheck() error { s.mu.Lock() s.HealthCheckFuncInvoked = true s.mu.Unlock() return s.HealthCheckFunc() } func (s *DataStore) NewCarve(ctx context.Context, metadata *fleet.CarveMetadata) (*fleet.CarveMetadata, error) { s.mu.Lock() s.NewCarveFuncInvoked = true s.mu.Unlock() return s.NewCarveFunc(ctx, metadata) } func (s *DataStore) UpdateCarve(ctx context.Context, metadata *fleet.CarveMetadata) error { s.mu.Lock() s.UpdateCarveFuncInvoked = true s.mu.Unlock() return s.UpdateCarveFunc(ctx, metadata) } func (s *DataStore) Carve(ctx context.Context, carveId int64) (*fleet.CarveMetadata, error) { s.mu.Lock() s.CarveFuncInvoked = true s.mu.Unlock() return s.CarveFunc(ctx, carveId) } func (s *DataStore) CarveBySessionId(ctx context.Context, sessionId string) (*fleet.CarveMetadata, error) { s.mu.Lock() s.CarveBySessionIdFuncInvoked = true s.mu.Unlock() return s.CarveBySessionIdFunc(ctx, sessionId) } func (s *DataStore) CarveByName(ctx context.Context, name string) (*fleet.CarveMetadata, error) { s.mu.Lock() s.CarveByNameFuncInvoked = true s.mu.Unlock() return s.CarveByNameFunc(ctx, name) } func (s *DataStore) ListCarves(ctx context.Context, opt fleet.CarveListOptions) ([]*fleet.CarveMetadata, error) { s.mu.Lock() s.ListCarvesFuncInvoked = true s.mu.Unlock() return s.ListCarvesFunc(ctx, opt) } func (s *DataStore) NewBlock(ctx context.Context, metadata *fleet.CarveMetadata, blockId int64, data []byte) error { s.mu.Lock() s.NewBlockFuncInvoked = true s.mu.Unlock() return s.NewBlockFunc(ctx, metadata, blockId, data) } func (s *DataStore) GetBlock(ctx context.Context, metadata *fleet.CarveMetadata, blockId int64) ([]byte, error) { s.mu.Lock() s.GetBlockFuncInvoked = true s.mu.Unlock() return s.GetBlockFunc(ctx, metadata, blockId) } func (s *DataStore) CleanupCarves(ctx context.Context, now time.Time) (expired int, err error) { s.mu.Lock() s.CleanupCarvesFuncInvoked = true s.mu.Unlock() return s.CleanupCarvesFunc(ctx, now) } func (s *DataStore) NewUser(ctx context.Context, user *fleet.User) (*fleet.User, error) { s.mu.Lock() s.NewUserFuncInvoked = true s.mu.Unlock() return s.NewUserFunc(ctx, user) } func (s *DataStore) HasUsers(ctx context.Context) (bool, error) { s.mu.Lock() s.HasUsersFuncInvoked = true s.mu.Unlock() return s.HasUsersFunc(ctx) } func (s *DataStore) ListUsers(ctx context.Context, opt fleet.UserListOptions) ([]*fleet.User, error) { s.mu.Lock() s.ListUsersFuncInvoked = true s.mu.Unlock() return s.ListUsersFunc(ctx, opt) } func (s *DataStore) UsersByIDs(ctx context.Context, ids []uint) ([]*fleet.UserSummary, error) { s.mu.Lock() s.UsersByIDsFuncInvoked = true s.mu.Unlock() return s.UsersByIDsFunc(ctx, ids) } func (s *DataStore) UserByEmail(ctx context.Context, email string) (*fleet.User, error) { s.mu.Lock() s.UserByEmailFuncInvoked = true s.mu.Unlock() return s.UserByEmailFunc(ctx, email) } func (s *DataStore) UserByID(ctx context.Context, id uint) (*fleet.User, error) { s.mu.Lock() s.UserByIDFuncInvoked = true s.mu.Unlock() return s.UserByIDFunc(ctx, id) } func (s *DataStore) UserOrDeletedUserByID(ctx context.Context, id uint) (*fleet.User, error) { s.mu.Lock() s.UserOrDeletedUserByIDFuncInvoked = true s.mu.Unlock() return s.UserOrDeletedUserByIDFunc(ctx, id) } func (s *DataStore) SaveUser(ctx context.Context, user *fleet.User) error { s.mu.Lock() s.SaveUserFuncInvoked = true s.mu.Unlock() return s.SaveUserFunc(ctx, user) } func (s *DataStore) SaveUsers(ctx context.Context, users []*fleet.User) error { s.mu.Lock() s.SaveUsersFuncInvoked = true s.mu.Unlock() return s.SaveUsersFunc(ctx, users) } func (s *DataStore) DeleteUser(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteUserFuncInvoked = true s.mu.Unlock() return s.DeleteUserFunc(ctx, id) } func (s *DataStore) CountGlobalAdmins(ctx context.Context) (int, error) { s.mu.Lock() s.CountGlobalAdminsFuncInvoked = true s.mu.Unlock() return s.CountGlobalAdminsFunc(ctx) } func (s *DataStore) PendingEmailChange(ctx context.Context, userID uint, newEmail string, token string) error { s.mu.Lock() s.PendingEmailChangeFuncInvoked = true s.mu.Unlock() return s.PendingEmailChangeFunc(ctx, userID, newEmail, token) } func (s *DataStore) ConfirmPendingEmailChange(ctx context.Context, userID uint, token string) (string, error) { s.mu.Lock() s.ConfirmPendingEmailChangeFuncInvoked = true s.mu.Unlock() return s.ConfirmPendingEmailChangeFunc(ctx, userID, token) } func (s *DataStore) UserSettings(ctx context.Context, userID uint) (*fleet.UserSettings, error) { s.mu.Lock() s.UserSettingsFuncInvoked = true s.mu.Unlock() return s.UserSettingsFunc(ctx, userID) } func (s *DataStore) ApplyQueries(ctx context.Context, authorID uint, queries []*fleet.Query, queriesToDiscardResults map[uint]struct{}) error { s.mu.Lock() s.ApplyQueriesFuncInvoked = true s.mu.Unlock() return s.ApplyQueriesFunc(ctx, authorID, queries, queriesToDiscardResults) } func (s *DataStore) NewQuery(ctx context.Context, query *fleet.Query, opts ...fleet.OptionalArg) (*fleet.Query, error) { s.mu.Lock() s.NewQueryFuncInvoked = true s.mu.Unlock() return s.NewQueryFunc(ctx, query, opts...) } func (s *DataStore) SaveQuery(ctx context.Context, query *fleet.Query, shouldDiscardResults bool, shouldDeleteStats bool) error { s.mu.Lock() s.SaveQueryFuncInvoked = true s.mu.Unlock() return s.SaveQueryFunc(ctx, query, shouldDiscardResults, shouldDeleteStats) } func (s *DataStore) DeleteQuery(ctx context.Context, teamID *uint, name string) error { s.mu.Lock() s.DeleteQueryFuncInvoked = true s.mu.Unlock() return s.DeleteQueryFunc(ctx, teamID, name) } func (s *DataStore) DeleteQueries(ctx context.Context, ids []uint) (uint, error) { s.mu.Lock() s.DeleteQueriesFuncInvoked = true s.mu.Unlock() return s.DeleteQueriesFunc(ctx, ids) } func (s *DataStore) Query(ctx context.Context, id uint) (*fleet.Query, error) { s.mu.Lock() s.QueryFuncInvoked = true s.mu.Unlock() return s.QueryFunc(ctx, id) } func (s *DataStore) ListQueries(ctx context.Context, opt fleet.ListQueryOptions) ([]*fleet.Query, int, int, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListQueriesFuncInvoked = true s.mu.Unlock() return s.ListQueriesFunc(ctx, opt) } func (s *DataStore) ListScheduledQueriesForAgents(ctx context.Context, teamID *uint, hostID *uint, queryReportsDisabled bool) ([]*fleet.Query, error) { s.mu.Lock() s.ListScheduledQueriesForAgentsFuncInvoked = true s.mu.Unlock() return s.ListScheduledQueriesForAgentsFunc(ctx, teamID, hostID, queryReportsDisabled) } func (s *DataStore) QueryByName(ctx context.Context, teamID *uint, name string) (*fleet.Query, error) { s.mu.Lock() s.QueryByNameFuncInvoked = true s.mu.Unlock() return s.QueryByNameFunc(ctx, teamID, name) } func (s *DataStore) ObserverCanRunQuery(ctx context.Context, queryID uint) (bool, error) { s.mu.Lock() s.ObserverCanRunQueryFuncInvoked = true s.mu.Unlock() return s.ObserverCanRunQueryFunc(ctx, queryID) } func (s *DataStore) CleanupGlobalDiscardQueryResults(ctx context.Context) error { s.mu.Lock() s.CleanupGlobalDiscardQueryResultsFuncInvoked = true s.mu.Unlock() return s.CleanupGlobalDiscardQueryResultsFunc(ctx) } func (s *DataStore) IsSavedQuery(ctx context.Context, queryID uint) (bool, error) { s.mu.Lock() s.IsSavedQueryFuncInvoked = true s.mu.Unlock() return s.IsSavedQueryFunc(ctx, queryID) } func (s *DataStore) GetLiveQueryStats(ctx context.Context, queryID uint, hostIDs []uint) ([]*fleet.LiveQueryStats, error) { s.mu.Lock() s.GetLiveQueryStatsFuncInvoked = true s.mu.Unlock() return s.GetLiveQueryStatsFunc(ctx, queryID, hostIDs) } func (s *DataStore) UpdateLiveQueryStats(ctx context.Context, queryID uint, stats []*fleet.LiveQueryStats) error { s.mu.Lock() s.UpdateLiveQueryStatsFuncInvoked = true s.mu.Unlock() return s.UpdateLiveQueryStatsFunc(ctx, queryID, stats) } func (s *DataStore) CalculateAggregatedPerfStatsPercentiles(ctx context.Context, aggregate fleet.AggregatedStatsType, queryID uint) error { s.mu.Lock() s.CalculateAggregatedPerfStatsPercentilesFuncInvoked = true s.mu.Unlock() return s.CalculateAggregatedPerfStatsPercentilesFunc(ctx, aggregate, queryID) } func (s *DataStore) NewDistributedQueryCampaign(ctx context.Context, camp *fleet.DistributedQueryCampaign) (*fleet.DistributedQueryCampaign, error) { s.mu.Lock() s.NewDistributedQueryCampaignFuncInvoked = true s.mu.Unlock() return s.NewDistributedQueryCampaignFunc(ctx, camp) } func (s *DataStore) DistributedQueryCampaign(ctx context.Context, id uint) (*fleet.DistributedQueryCampaign, error) { s.mu.Lock() s.DistributedQueryCampaignFuncInvoked = true s.mu.Unlock() return s.DistributedQueryCampaignFunc(ctx, id) } func (s *DataStore) SaveDistributedQueryCampaign(ctx context.Context, camp *fleet.DistributedQueryCampaign) error { s.mu.Lock() s.SaveDistributedQueryCampaignFuncInvoked = true s.mu.Unlock() return s.SaveDistributedQueryCampaignFunc(ctx, camp) } func (s *DataStore) DistributedQueryCampaignTargetIDs(ctx context.Context, id uint) (targets *fleet.HostTargets, err error) { s.mu.Lock() s.DistributedQueryCampaignTargetIDsFuncInvoked = true s.mu.Unlock() return s.DistributedQueryCampaignTargetIDsFunc(ctx, id) } func (s *DataStore) NewDistributedQueryCampaignTarget(ctx context.Context, target *fleet.DistributedQueryCampaignTarget) (*fleet.DistributedQueryCampaignTarget, error) { s.mu.Lock() s.NewDistributedQueryCampaignTargetFuncInvoked = true s.mu.Unlock() return s.NewDistributedQueryCampaignTargetFunc(ctx, target) } func (s *DataStore) CleanupDistributedQueryCampaigns(ctx context.Context, now time.Time) (expired uint, err error) { s.mu.Lock() s.CleanupDistributedQueryCampaignsFuncInvoked = true s.mu.Unlock() return s.CleanupDistributedQueryCampaignsFunc(ctx, now) } func (s *DataStore) CleanupCompletedCampaignTargets(ctx context.Context, olderThan time.Time) (deleted uint, err error) { s.mu.Lock() s.CleanupCompletedCampaignTargetsFuncInvoked = true s.mu.Unlock() return s.CleanupCompletedCampaignTargetsFunc(ctx, olderThan) } func (s *DataStore) GetCompletedCampaigns(ctx context.Context, filter []uint) ([]uint, error) { s.mu.Lock() s.GetCompletedCampaignsFuncInvoked = true s.mu.Unlock() return s.GetCompletedCampaignsFunc(ctx, filter) } func (s *DataStore) DistributedQueryCampaignsForQuery(ctx context.Context, queryID uint) ([]*fleet.DistributedQueryCampaign, error) { s.mu.Lock() s.DistributedQueryCampaignsForQueryFuncInvoked = true s.mu.Unlock() return s.DistributedQueryCampaignsForQueryFunc(ctx, queryID) } func (s *DataStore) ApplyPackSpecs(ctx context.Context, specs []*fleet.PackSpec) error { s.mu.Lock() s.ApplyPackSpecsFuncInvoked = true s.mu.Unlock() return s.ApplyPackSpecsFunc(ctx, specs) } func (s *DataStore) GetPackSpecs(ctx context.Context) ([]*fleet.PackSpec, error) { s.mu.Lock() s.GetPackSpecsFuncInvoked = true s.mu.Unlock() return s.GetPackSpecsFunc(ctx) } func (s *DataStore) GetPackSpec(ctx context.Context, name string) (*fleet.PackSpec, error) { s.mu.Lock() s.GetPackSpecFuncInvoked = true s.mu.Unlock() return s.GetPackSpecFunc(ctx, name) } func (s *DataStore) NewPack(ctx context.Context, pack *fleet.Pack, opts ...fleet.OptionalArg) (*fleet.Pack, error) { s.mu.Lock() s.NewPackFuncInvoked = true s.mu.Unlock() return s.NewPackFunc(ctx, pack, opts...) } func (s *DataStore) SavePack(ctx context.Context, pack *fleet.Pack) error { s.mu.Lock() s.SavePackFuncInvoked = true s.mu.Unlock() return s.SavePackFunc(ctx, pack) } func (s *DataStore) DeletePack(ctx context.Context, name string) error { s.mu.Lock() s.DeletePackFuncInvoked = true s.mu.Unlock() return s.DeletePackFunc(ctx, name) } func (s *DataStore) Pack(ctx context.Context, pid uint) (*fleet.Pack, error) { s.mu.Lock() s.PackFuncInvoked = true s.mu.Unlock() return s.PackFunc(ctx, pid) } func (s *DataStore) ListPacks(ctx context.Context, opt fleet.PackListOptions) ([]*fleet.Pack, error) { s.mu.Lock() s.ListPacksFuncInvoked = true s.mu.Unlock() return s.ListPacksFunc(ctx, opt) } func (s *DataStore) PackByName(ctx context.Context, name string, opts ...fleet.OptionalArg) (*fleet.Pack, bool, error) { s.mu.Lock() s.PackByNameFuncInvoked = true s.mu.Unlock() return s.PackByNameFunc(ctx, name, opts...) } func (s *DataStore) ListPacksForHost(ctx context.Context, hid uint) (packs []*fleet.Pack, err error) { s.mu.Lock() s.ListPacksForHostFuncInvoked = true s.mu.Unlock() return s.ListPacksForHostFunc(ctx, hid) } func (s *DataStore) ApplyLabelSpecs(ctx context.Context, specs []*fleet.LabelSpec) error { s.mu.Lock() s.ApplyLabelSpecsFuncInvoked = true s.mu.Unlock() return s.ApplyLabelSpecsFunc(ctx, specs) } func (s *DataStore) ApplyLabelSpecsWithAuthor(ctx context.Context, specs []*fleet.LabelSpec, authorId *uint) error { s.mu.Lock() s.ApplyLabelSpecsWithAuthorFuncInvoked = true s.mu.Unlock() return s.ApplyLabelSpecsWithAuthorFunc(ctx, specs, authorId) } func (s *DataStore) SetAsideLabels(ctx context.Context, notOnTeamID *uint, names []string, user fleet.User) error { s.mu.Lock() s.SetAsideLabelsFuncInvoked = true s.mu.Unlock() return s.SetAsideLabelsFunc(ctx, notOnTeamID, names, user) } func (s *DataStore) GetLabelSpecs(ctx context.Context, filter fleet.TeamFilter) ([]*fleet.LabelSpec, error) { s.mu.Lock() s.GetLabelSpecsFuncInvoked = true s.mu.Unlock() return s.GetLabelSpecsFunc(ctx, filter) } func (s *DataStore) GetLabelSpec(ctx context.Context, filter fleet.TeamFilter, name string) (*fleet.LabelSpec, error) { s.mu.Lock() s.GetLabelSpecFuncInvoked = true s.mu.Unlock() return s.GetLabelSpecFunc(ctx, filter, name) } func (s *DataStore) AddLabelsToHost(ctx context.Context, hostID uint, labelIDs []uint) error { s.mu.Lock() s.AddLabelsToHostFuncInvoked = true s.mu.Unlock() return s.AddLabelsToHostFunc(ctx, hostID, labelIDs) } func (s *DataStore) RemoveLabelsFromHost(ctx context.Context, hostID uint, labelIDs []uint) error { s.mu.Lock() s.RemoveLabelsFromHostFuncInvoked = true s.mu.Unlock() return s.RemoveLabelsFromHostFunc(ctx, hostID, labelIDs) } func (s *DataStore) UpdateLabelMembershipByHostIDs(ctx context.Context, label fleet.Label, hostIds []uint, teamFilter fleet.TeamFilter) (*fleet.Label, []uint, error) { s.mu.Lock() s.UpdateLabelMembershipByHostIDsFuncInvoked = true s.mu.Unlock() return s.UpdateLabelMembershipByHostIDsFunc(ctx, label, hostIds, teamFilter) } func (s *DataStore) UpdateLabelMembershipByHostCriteria(ctx context.Context, hvl fleet.HostVitalsLabel) (*fleet.Label, error) { s.mu.Lock() s.UpdateLabelMembershipByHostCriteriaFuncInvoked = true s.mu.Unlock() return s.UpdateLabelMembershipByHostCriteriaFunc(ctx, hvl) } func (s *DataStore) NewLabel(ctx context.Context, label *fleet.Label, opts ...fleet.OptionalArg) (*fleet.Label, error) { s.mu.Lock() s.NewLabelFuncInvoked = true s.mu.Unlock() return s.NewLabelFunc(ctx, label, opts...) } func (s *DataStore) SaveLabel(ctx context.Context, label *fleet.Label, teamFilter fleet.TeamFilter) (*fleet.LabelWithTeamName, []uint, error) { s.mu.Lock() s.SaveLabelFuncInvoked = true s.mu.Unlock() return s.SaveLabelFunc(ctx, label, teamFilter) } func (s *DataStore) DeleteLabel(ctx context.Context, name string, filter fleet.TeamFilter) error { s.mu.Lock() s.DeleteLabelFuncInvoked = true s.mu.Unlock() return s.DeleteLabelFunc(ctx, name, filter) } func (s *DataStore) LabelByName(ctx context.Context, name string, filter fleet.TeamFilter) (*fleet.Label, error) { s.mu.Lock() s.LabelByNameFuncInvoked = true s.mu.Unlock() return s.LabelByNameFunc(ctx, name, filter) } func (s *DataStore) Label(ctx context.Context, lid uint, teamFilter fleet.TeamFilter) (*fleet.LabelWithTeamName, []uint, error) { s.mu.Lock() s.LabelFuncInvoked = true s.mu.Unlock() return s.LabelFunc(ctx, lid, teamFilter) } func (s *DataStore) ListLabels(ctx context.Context, filter fleet.TeamFilter, opt fleet.ListOptions, includeHostCounts bool) ([]*fleet.Label, error) { s.mu.Lock() s.ListLabelsFuncInvoked = true s.mu.Unlock() return s.ListLabelsFunc(ctx, filter, opt, includeHostCounts) } func (s *DataStore) LabelsSummary(ctx context.Context, filter fleet.TeamFilter) ([]*fleet.LabelSummary, error) { s.mu.Lock() s.LabelsSummaryFuncInvoked = true s.mu.Unlock() return s.LabelsSummaryFunc(ctx, filter) } func (s *DataStore) GetEnrollmentIDsWithPendingMDMAppleCommands(ctx context.Context) ([]string, error) { s.mu.Lock() s.GetEnrollmentIDsWithPendingMDMAppleCommandsFuncInvoked = true s.mu.Unlock() return s.GetEnrollmentIDsWithPendingMDMAppleCommandsFunc(ctx) } func (s *DataStore) LabelQueriesForHost(ctx context.Context, host *fleet.Host) (map[string]string, error) { s.mu.Lock() s.LabelQueriesForHostFuncInvoked = true s.mu.Unlock() return s.LabelQueriesForHostFunc(ctx, host) } func (s *DataStore) ListLabelsForHost(ctx context.Context, hid uint) ([]*fleet.Label, error) { s.mu.Lock() s.ListLabelsForHostFuncInvoked = true s.mu.Unlock() return s.ListLabelsForHostFunc(ctx, hid) } func (s *DataStore) ListHostsInLabel(ctx context.Context, filter fleet.TeamFilter, lid uint, opt fleet.HostListOptions) ([]*fleet.Host, error) { s.mu.Lock() s.ListHostsInLabelFuncInvoked = true s.mu.Unlock() return s.ListHostsInLabelFunc(ctx, filter, lid, opt) } func (s *DataStore) SearchLabels(ctx context.Context, filter fleet.TeamFilter, query string, omit ...uint) ([]*fleet.Label, error) { s.mu.Lock() s.SearchLabelsFuncInvoked = true s.mu.Unlock() return s.SearchLabelsFunc(ctx, filter, query, omit...) } func (s *DataStore) LabelIDsByName(ctx context.Context, labels []string, filter fleet.TeamFilter) (map[string]uint, error) { s.mu.Lock() s.LabelIDsByNameFuncInvoked = true s.mu.Unlock() return s.LabelIDsByNameFunc(ctx, labels, filter) } func (s *DataStore) LabelsByName(ctx context.Context, names []string, filter fleet.TeamFilter) (map[string]*fleet.Label, error) { s.mu.Lock() s.LabelsByNameFuncInvoked = true s.mu.Unlock() return s.LabelsByNameFunc(ctx, names, filter) } func (s *DataStore) AsyncBatchInsertLabelMembership(ctx context.Context, batch [][2]uint) error { s.mu.Lock() s.AsyncBatchInsertLabelMembershipFuncInvoked = true s.mu.Unlock() return s.AsyncBatchInsertLabelMembershipFunc(ctx, batch) } func (s *DataStore) AsyncBatchDeleteLabelMembership(ctx context.Context, batch [][2]uint) error { s.mu.Lock() s.AsyncBatchDeleteLabelMembershipFuncInvoked = true s.mu.Unlock() return s.AsyncBatchDeleteLabelMembershipFunc(ctx, batch) } func (s *DataStore) AsyncBatchUpdateLabelTimestamp(ctx context.Context, ids []uint, ts time.Time) error { s.mu.Lock() s.AsyncBatchUpdateLabelTimestampFuncInvoked = true s.mu.Unlock() return s.AsyncBatchUpdateLabelTimestampFunc(ctx, ids, ts) } func (s *DataStore) NewHost(ctx context.Context, host *fleet.Host) (*fleet.Host, error) { s.mu.Lock() s.NewHostFuncInvoked = true s.mu.Unlock() return s.NewHostFunc(ctx, host) } func (s *DataStore) DeleteHost(ctx context.Context, hid uint) error { s.mu.Lock() s.DeleteHostFuncInvoked = true s.mu.Unlock() return s.DeleteHostFunc(ctx, hid) } func (s *DataStore) Host(ctx context.Context, id uint) (*fleet.Host, error) { s.mu.Lock() s.HostFuncInvoked = true s.mu.Unlock() return s.HostFunc(ctx, id) } func (s *DataStore) GetHostHealth(ctx context.Context, id uint) (*fleet.HostHealth, error) { s.mu.Lock() s.GetHostHealthFuncInvoked = true s.mu.Unlock() return s.GetHostHealthFunc(ctx, id) } func (s *DataStore) ListHosts(ctx context.Context, filter fleet.TeamFilter, opt fleet.HostListOptions) ([]*fleet.Host, error) { s.mu.Lock() s.ListHostsFuncInvoked = true s.mu.Unlock() return s.ListHostsFunc(ctx, filter, opt) } func (s *DataStore) ListBatchScriptHosts(ctx context.Context, batchScriptExecutionID string, batchScriptExecutionStatus fleet.BatchScriptExecutionStatus, opt fleet.ListOptions) ([]fleet.BatchScriptHost, *fleet.PaginationMetadata, uint, error) { s.mu.Lock() s.ListBatchScriptHostsFuncInvoked = true s.mu.Unlock() return s.ListBatchScriptHostsFunc(ctx, batchScriptExecutionID, batchScriptExecutionStatus, opt) } func (s *DataStore) ListHostsLiteByUUIDs(ctx context.Context, filter fleet.TeamFilter, uuids []string) ([]*fleet.Host, error) { s.mu.Lock() s.ListHostsLiteByUUIDsFuncInvoked = true s.mu.Unlock() return s.ListHostsLiteByUUIDsFunc(ctx, filter, uuids) } func (s *DataStore) ListHostsLiteByIDs(ctx context.Context, ids []uint) ([]*fleet.Host, error) { s.mu.Lock() s.ListHostsLiteByIDsFuncInvoked = true s.mu.Unlock() return s.ListHostsLiteByIDsFunc(ctx, ids) } func (s *DataStore) ListHostUsers(ctx context.Context, hostID uint) ([]fleet.HostUser, error) { s.mu.Lock() s.ListHostUsersFuncInvoked = true s.mu.Unlock() return s.ListHostUsersFunc(ctx, hostID) } func (s *DataStore) MarkHostsSeen(ctx context.Context, hostIDs []uint, t time.Time) error { s.mu.Lock() s.MarkHostsSeenFuncInvoked = true s.mu.Unlock() return s.MarkHostsSeenFunc(ctx, hostIDs, t) } func (s *DataStore) SearchHosts(ctx context.Context, filter fleet.TeamFilter, query string, omit ...uint) ([]*fleet.Host, error) { s.mu.Lock() s.SearchHostsFuncInvoked = true s.mu.Unlock() return s.SearchHostsFunc(ctx, filter, query, omit...) } func (s *DataStore) EnrolledHostIDs(ctx context.Context) ([]uint, error) { s.mu.Lock() s.EnrolledHostIDsFuncInvoked = true s.mu.Unlock() return s.EnrolledHostIDsFunc(ctx) } func (s *DataStore) CountEnrolledHosts(ctx context.Context) (int, error) { s.mu.Lock() s.CountEnrolledHostsFuncInvoked = true s.mu.Unlock() return s.CountEnrolledHostsFunc(ctx) } func (s *DataStore) CleanupIncomingHosts(ctx context.Context, now time.Time) ([]uint, error) { s.mu.Lock() s.CleanupIncomingHostsFuncInvoked = true s.mu.Unlock() return s.CleanupIncomingHostsFunc(ctx, now) } func (s *DataStore) GenerateHostStatusStatistics(ctx context.Context, filter fleet.TeamFilter, now time.Time, platform *string, lowDiskSpace *int) (*fleet.HostSummary, error) { s.mu.Lock() s.GenerateHostStatusStatisticsFuncInvoked = true s.mu.Unlock() return s.GenerateHostStatusStatisticsFunc(ctx, filter, now, platform, lowDiskSpace) } func (s *DataStore) HostIDsByIdentifier(ctx context.Context, filter fleet.TeamFilter, hostnames []string) ([]uint, error) { s.mu.Lock() s.HostIDsByIdentifierFuncInvoked = true s.mu.Unlock() return s.HostIDsByIdentifierFunc(ctx, filter, hostnames) } func (s *DataStore) HostIDsByOSID(ctx context.Context, osID uint, offset int, limit int) ([]uint, error) { s.mu.Lock() s.HostIDsByOSIDFuncInvoked = true s.mu.Unlock() return s.HostIDsByOSIDFunc(ctx, osID, offset, limit) } func (s *DataStore) HostMemberOfAllLabels(ctx context.Context, hostID uint, labelNames []string) (bool, error) { s.mu.Lock() s.HostMemberOfAllLabelsFuncInvoked = true s.mu.Unlock() return s.HostMemberOfAllLabelsFunc(ctx, hostID, labelNames) } func (s *DataStore) HostIDsByOSVersion(ctx context.Context, osVersion fleet.OSVersion, offset int, limit int) ([]uint, error) { s.mu.Lock() s.HostIDsByOSVersionFuncInvoked = true s.mu.Unlock() return s.HostIDsByOSVersionFunc(ctx, osVersion, offset, limit) } func (s *DataStore) HostByIdentifier(ctx context.Context, identifier string) (*fleet.Host, error) { s.mu.Lock() s.HostByIdentifierFuncInvoked = true s.mu.Unlock() return s.HostByIdentifierFunc(ctx, identifier) } func (s *DataStore) HostLiteByIdentifier(ctx context.Context, identifier string) (*fleet.HostLite, error) { s.mu.Lock() s.HostLiteByIdentifierFuncInvoked = true s.mu.Unlock() return s.HostLiteByIdentifierFunc(ctx, identifier) } func (s *DataStore) HostLiteByID(ctx context.Context, id uint) (*fleet.HostLite, error) { s.mu.Lock() s.HostLiteByIDFuncInvoked = true s.mu.Unlock() return s.HostLiteByIDFunc(ctx, id) } func (s *DataStore) AddHostsToTeam(ctx context.Context, params *fleet.AddHostsToTeamParams) error { s.mu.Lock() s.AddHostsToTeamFuncInvoked = true s.mu.Unlock() return s.AddHostsToTeamFunc(ctx, params) } func (s *DataStore) HostnamesByIdentifiers(ctx context.Context, identifiers []string) ([]string, error) { s.mu.Lock() s.HostnamesByIdentifiersFuncInvoked = true s.mu.Unlock() return s.HostnamesByIdentifiersFunc(ctx, identifiers) } func (s *DataStore) UpdateHostIssuesFailingPolicies(ctx context.Context, hostIDs []uint) error { s.mu.Lock() s.UpdateHostIssuesFailingPoliciesFuncInvoked = true s.mu.Unlock() return s.UpdateHostIssuesFailingPoliciesFunc(ctx, hostIDs) } func (s *DataStore) UpdateHostIssuesFailingPoliciesForSingleHost(ctx context.Context, hostID uint) error { s.mu.Lock() s.UpdateHostIssuesFailingPoliciesForSingleHostFuncInvoked = true s.mu.Unlock() return s.UpdateHostIssuesFailingPoliciesForSingleHostFunc(ctx, hostID) } func (s *DataStore) GetHostIssuesLastUpdated(ctx context.Context, hostId uint) (time.Time, error) { s.mu.Lock() s.GetHostIssuesLastUpdatedFuncInvoked = true s.mu.Unlock() return s.GetHostIssuesLastUpdatedFunc(ctx, hostId) } func (s *DataStore) UpdateHostIssuesVulnerabilities(ctx context.Context) error { s.mu.Lock() s.UpdateHostIssuesVulnerabilitiesFuncInvoked = true s.mu.Unlock() return s.UpdateHostIssuesVulnerabilitiesFunc(ctx) } func (s *DataStore) CleanupHostIssues(ctx context.Context) error { s.mu.Lock() s.CleanupHostIssuesFuncInvoked = true s.mu.Unlock() return s.CleanupHostIssuesFunc(ctx) } func (s *DataStore) TotalAndUnseenHostsSince(ctx context.Context, teamID *uint, daysCount int) (total int, unseen []uint, err error) { s.mu.Lock() s.TotalAndUnseenHostsSinceFuncInvoked = true s.mu.Unlock() return s.TotalAndUnseenHostsSinceFunc(ctx, teamID, daysCount) } func (s *DataStore) DeleteHosts(ctx context.Context, ids []uint) error { s.mu.Lock() s.DeleteHostsFuncInvoked = true s.mu.Unlock() return s.DeleteHostsFunc(ctx, ids) } func (s *DataStore) CountHosts(ctx context.Context, filter fleet.TeamFilter, opt fleet.HostListOptions) (int, error) { s.mu.Lock() s.CountHostsFuncInvoked = true s.mu.Unlock() return s.CountHostsFunc(ctx, filter, opt) } func (s *DataStore) CountHostsInLabel(ctx context.Context, filter fleet.TeamFilter, lid uint, opt fleet.HostListOptions) (int, error) { s.mu.Lock() s.CountHostsInLabelFuncInvoked = true s.mu.Unlock() return s.CountHostsInLabelFunc(ctx, filter, lid, opt) } func (s *DataStore) ListHostDeviceMapping(ctx context.Context, id uint) ([]*fleet.HostDeviceMapping, error) { s.mu.Lock() s.ListHostDeviceMappingFuncInvoked = true s.mu.Unlock() return s.ListHostDeviceMappingFunc(ctx, id) } func (s *DataStore) SetOrUpdateCustomHostDeviceMapping(ctx context.Context, hostID uint, email string, source string) ([]*fleet.HostDeviceMapping, error) { s.mu.Lock() s.SetOrUpdateCustomHostDeviceMappingFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateCustomHostDeviceMappingFunc(ctx, hostID, email, source) } func (s *DataStore) SetOrUpdateIDPHostDeviceMapping(ctx context.Context, hostID uint, email string) error { s.mu.Lock() s.SetOrUpdateIDPHostDeviceMappingFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateIDPHostDeviceMappingFunc(ctx, hostID, email) } func (s *DataStore) DeleteHostIDP(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteHostIDPFuncInvoked = true s.mu.Unlock() return s.DeleteHostIDPFunc(ctx, id) } func (s *DataStore) SetOrUpdateHostSCIMUserMapping(ctx context.Context, hostID uint, scimUserID uint) error { s.mu.Lock() s.SetOrUpdateHostSCIMUserMappingFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateHostSCIMUserMappingFunc(ctx, hostID, scimUserID) } func (s *DataStore) DeleteHostSCIMUserMapping(ctx context.Context, hostID uint) error { s.mu.Lock() s.DeleteHostSCIMUserMappingFuncInvoked = true s.mu.Unlock() return s.DeleteHostSCIMUserMappingFunc(ctx, hostID) } func (s *DataStore) ListHostBatteries(ctx context.Context, id uint) ([]*fleet.HostBattery, error) { s.mu.Lock() s.ListHostBatteriesFuncInvoked = true s.mu.Unlock() return s.ListHostBatteriesFunc(ctx, id) } func (s *DataStore) ListUpcomingHostMaintenanceWindows(ctx context.Context, hid uint) ([]*fleet.HostMaintenanceWindow, error) { s.mu.Lock() s.ListUpcomingHostMaintenanceWindowsFuncInvoked = true s.mu.Unlock() return s.ListUpcomingHostMaintenanceWindowsFunc(ctx, hid) } func (s *DataStore) LoadHostByDeviceAuthToken(ctx context.Context, authToken string, tokenTTL time.Duration) (*fleet.Host, error) { s.mu.Lock() s.LoadHostByDeviceAuthTokenFuncInvoked = true s.mu.Unlock() return s.LoadHostByDeviceAuthTokenFunc(ctx, authToken, tokenTTL) } func (s *DataStore) SetOrUpdateDeviceAuthToken(ctx context.Context, hostID uint, authToken string) error { s.mu.Lock() s.SetOrUpdateDeviceAuthTokenFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateDeviceAuthTokenFunc(ctx, hostID, authToken) } func (s *DataStore) GetDeviceAuthToken(ctx context.Context, hostID uint) (string, error) { s.mu.Lock() s.GetDeviceAuthTokenFuncInvoked = true s.mu.Unlock() return s.GetDeviceAuthTokenFunc(ctx, hostID) } func (s *DataStore) FailingPoliciesCount(ctx context.Context, host *fleet.Host) (uint, error) { s.mu.Lock() s.FailingPoliciesCountFuncInvoked = true s.mu.Unlock() return s.FailingPoliciesCountFunc(ctx, host) } func (s *DataStore) ListPoliciesForHost(ctx context.Context, host *fleet.Host) ([]*fleet.HostPolicy, error) { s.mu.Lock() s.ListPoliciesForHostFuncInvoked = true s.mu.Unlock() return s.ListPoliciesForHostFunc(ctx, host) } func (s *DataStore) GetHostMunkiVersion(ctx context.Context, hostID uint) (string, error) { s.mu.Lock() s.GetHostMunkiVersionFuncInvoked = true s.mu.Unlock() return s.GetHostMunkiVersionFunc(ctx, hostID) } func (s *DataStore) GetHostMunkiIssues(ctx context.Context, hostID uint) ([]*fleet.HostMunkiIssue, error) { s.mu.Lock() s.GetHostMunkiIssuesFuncInvoked = true s.mu.Unlock() return s.GetHostMunkiIssuesFunc(ctx, hostID) } func (s *DataStore) GetHostMDM(ctx context.Context, hostID uint) (*fleet.HostMDM, error) { s.mu.Lock() s.GetHostMDMFuncInvoked = true s.mu.Unlock() return s.GetHostMDMFunc(ctx, hostID) } func (s *DataStore) GetHostMDMCheckinInfo(ctx context.Context, hostUUID string) (*fleet.HostMDMCheckinInfo, error) { s.mu.Lock() s.GetHostMDMCheckinInfoFuncInvoked = true s.mu.Unlock() return s.GetHostMDMCheckinInfoFunc(ctx, hostUUID) } func (s *DataStore) GetHostMDMIdentifiers(ctx context.Context, identifer string, teamFilter fleet.TeamFilter) ([]*fleet.HostMDMIdentifiers, error) { s.mu.Lock() s.GetHostMDMIdentifiersFuncInvoked = true s.mu.Unlock() return s.GetHostMDMIdentifiersFunc(ctx, identifer, teamFilter) } func (s *DataStore) ListIOSAndIPadOSToRefetch(ctx context.Context, refetchInterval time.Duration) (devices []fleet.AppleDevicesToRefetch, err error) { s.mu.Lock() s.ListIOSAndIPadOSToRefetchFuncInvoked = true s.mu.Unlock() return s.ListIOSAndIPadOSToRefetchFunc(ctx, refetchInterval) } func (s *DataStore) AddHostMDMCommands(ctx context.Context, commands []fleet.HostMDMCommand) error { s.mu.Lock() s.AddHostMDMCommandsFuncInvoked = true s.mu.Unlock() return s.AddHostMDMCommandsFunc(ctx, commands) } func (s *DataStore) GetHostMDMCommands(ctx context.Context, hostID uint) (commands []fleet.HostMDMCommand, err error) { s.mu.Lock() s.GetHostMDMCommandsFuncInvoked = true s.mu.Unlock() return s.GetHostMDMCommandsFunc(ctx, hostID) } func (s *DataStore) RemoveHostMDMCommand(ctx context.Context, command fleet.HostMDMCommand) error { s.mu.Lock() s.RemoveHostMDMCommandFuncInvoked = true s.mu.Unlock() return s.RemoveHostMDMCommandFunc(ctx, command) } func (s *DataStore) CleanupHostMDMCommands(ctx context.Context) error { s.mu.Lock() s.CleanupHostMDMCommandsFuncInvoked = true s.mu.Unlock() return s.CleanupHostMDMCommandsFunc(ctx) } func (s *DataStore) CleanupHostMDMAppleProfiles(ctx context.Context) error { s.mu.Lock() s.CleanupHostMDMAppleProfilesFuncInvoked = true s.mu.Unlock() return s.CleanupHostMDMAppleProfilesFunc(ctx) } func (s *DataStore) IsHostConnectedToFleetMDM(ctx context.Context, host *fleet.Host) (bool, error) { s.mu.Lock() s.IsHostConnectedToFleetMDMFuncInvoked = true s.mu.Unlock() return s.IsHostConnectedToFleetMDMFunc(ctx, host) } func (s *DataStore) ListHostCertificates(ctx context.Context, hostID uint, opts fleet.ListOptions) ([]*fleet.HostCertificateRecord, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListHostCertificatesFuncInvoked = true s.mu.Unlock() return s.ListHostCertificatesFunc(ctx, hostID, opts) } func (s *DataStore) UpdateHostCertificates(ctx context.Context, hostID uint, hostUUID string, certs []*fleet.HostCertificateRecord) error { s.mu.Lock() s.UpdateHostCertificatesFuncInvoked = true s.mu.Unlock() return s.UpdateHostCertificatesFunc(ctx, hostID, hostUUID, certs) } func (s *DataStore) AreHostsConnectedToFleetMDM(ctx context.Context, hosts []*fleet.Host) (map[string]bool, error) { s.mu.Lock() s.AreHostsConnectedToFleetMDMFuncInvoked = true s.mu.Unlock() return s.AreHostsConnectedToFleetMDMFunc(ctx, hosts) } func (s *DataStore) AggregatedMunkiVersion(ctx context.Context, teamID *uint) ([]fleet.AggregatedMunkiVersion, time.Time, error) { s.mu.Lock() s.AggregatedMunkiVersionFuncInvoked = true s.mu.Unlock() return s.AggregatedMunkiVersionFunc(ctx, teamID) } func (s *DataStore) AggregatedMunkiIssues(ctx context.Context, teamID *uint) ([]fleet.AggregatedMunkiIssue, time.Time, error) { s.mu.Lock() s.AggregatedMunkiIssuesFuncInvoked = true s.mu.Unlock() return s.AggregatedMunkiIssuesFunc(ctx, teamID) } func (s *DataStore) AggregatedMDMStatus(ctx context.Context, teamID *uint, platform string) (fleet.AggregatedMDMStatus, time.Time, error) { s.mu.Lock() s.AggregatedMDMStatusFuncInvoked = true s.mu.Unlock() return s.AggregatedMDMStatusFunc(ctx, teamID, platform) } func (s *DataStore) AggregatedMDMSolutions(ctx context.Context, teamID *uint, platform string) ([]fleet.AggregatedMDMSolutions, time.Time, error) { s.mu.Lock() s.AggregatedMDMSolutionsFuncInvoked = true s.mu.Unlock() return s.AggregatedMDMSolutionsFunc(ctx, teamID, platform) } func (s *DataStore) GenerateAggregatedMunkiAndMDM(ctx context.Context) error { s.mu.Lock() s.GenerateAggregatedMunkiAndMDMFuncInvoked = true s.mu.Unlock() return s.GenerateAggregatedMunkiAndMDMFunc(ctx) } func (s *DataStore) GetMunkiIssue(ctx context.Context, munkiIssueID uint) (*fleet.MunkiIssue, error) { s.mu.Lock() s.GetMunkiIssueFuncInvoked = true s.mu.Unlock() return s.GetMunkiIssueFunc(ctx, munkiIssueID) } func (s *DataStore) GetMDMSolution(ctx context.Context, mdmID uint) (*fleet.MDMSolution, error) { s.mu.Lock() s.GetMDMSolutionFuncInvoked = true s.mu.Unlock() return s.GetMDMSolutionFunc(ctx, mdmID) } func (s *DataStore) OSVersions(ctx context.Context, teamFilter *fleet.TeamFilter, platform *string, name *string, version *string) (*fleet.OSVersions, error) { s.mu.Lock() s.OSVersionsFuncInvoked = true s.mu.Unlock() return s.OSVersionsFunc(ctx, teamFilter, platform, name, version) } func (s *DataStore) OSVersionsByCVE(ctx context.Context, cve string, teamID *uint) ([]*fleet.VulnerableOS, time.Time, error) { s.mu.Lock() s.OSVersionsByCVEFuncInvoked = true s.mu.Unlock() return s.OSVersionsByCVEFunc(ctx, cve, teamID) } func (s *DataStore) SoftwareByCVE(ctx context.Context, cve string, teamID *uint) ([]*fleet.VulnerableSoftware, time.Time, error) { s.mu.Lock() s.SoftwareByCVEFuncInvoked = true s.mu.Unlock() return s.SoftwareByCVEFunc(ctx, cve, teamID) } func (s *DataStore) OSVersion(ctx context.Context, osVersionID uint, teamFilter *fleet.TeamFilter) (*fleet.OSVersion, *time.Time, error) { s.mu.Lock() s.OSVersionFuncInvoked = true s.mu.Unlock() return s.OSVersionFunc(ctx, osVersionID, teamFilter) } func (s *DataStore) UpdateOSVersions(ctx context.Context) error { s.mu.Lock() s.UpdateOSVersionsFuncInvoked = true s.mu.Unlock() return s.UpdateOSVersionsFunc(ctx) } func (s *DataStore) CountHostsInTargets(ctx context.Context, filter fleet.TeamFilter, targets fleet.HostTargets, now time.Time) (fleet.TargetMetrics, error) { s.mu.Lock() s.CountHostsInTargetsFuncInvoked = true s.mu.Unlock() return s.CountHostsInTargetsFunc(ctx, filter, targets, now) } func (s *DataStore) HostIDsInTargets(ctx context.Context, filter fleet.TeamFilter, targets fleet.HostTargets) ([]uint, error) { s.mu.Lock() s.HostIDsInTargetsFuncInvoked = true s.mu.Unlock() return s.HostIDsInTargetsFunc(ctx, filter, targets) } func (s *DataStore) NewPasswordResetRequest(ctx context.Context, req *fleet.PasswordResetRequest) (*fleet.PasswordResetRequest, error) { s.mu.Lock() s.NewPasswordResetRequestFuncInvoked = true s.mu.Unlock() return s.NewPasswordResetRequestFunc(ctx, req) } func (s *DataStore) DeletePasswordResetRequestsForUser(ctx context.Context, userID uint) error { s.mu.Lock() s.DeletePasswordResetRequestsForUserFuncInvoked = true s.mu.Unlock() return s.DeletePasswordResetRequestsForUserFunc(ctx, userID) } func (s *DataStore) FindPasswordResetByToken(ctx context.Context, token string) (*fleet.PasswordResetRequest, error) { s.mu.Lock() s.FindPasswordResetByTokenFuncInvoked = true s.mu.Unlock() return s.FindPasswordResetByTokenFunc(ctx, token) } func (s *DataStore) CleanupExpiredPasswordResetRequests(ctx context.Context) error { s.mu.Lock() s.CleanupExpiredPasswordResetRequestsFuncInvoked = true s.mu.Unlock() return s.CleanupExpiredPasswordResetRequestsFunc(ctx) } func (s *DataStore) SessionByKey(ctx context.Context, key string) (*fleet.Session, error) { s.mu.Lock() s.SessionByKeyFuncInvoked = true s.mu.Unlock() return s.SessionByKeyFunc(ctx, key) } func (s *DataStore) SessionByID(ctx context.Context, id uint) (*fleet.Session, error) { s.mu.Lock() s.SessionByIDFuncInvoked = true s.mu.Unlock() return s.SessionByIDFunc(ctx, id) } func (s *DataStore) ListSessionsForUser(ctx context.Context, id uint) ([]*fleet.Session, error) { s.mu.Lock() s.ListSessionsForUserFuncInvoked = true s.mu.Unlock() return s.ListSessionsForUserFunc(ctx, id) } func (s *DataStore) NewSession(ctx context.Context, userID uint, sessionKeySize int) (*fleet.Session, error) { s.mu.Lock() s.NewSessionFuncInvoked = true s.mu.Unlock() return s.NewSessionFunc(ctx, userID, sessionKeySize) } func (s *DataStore) DestroySession(ctx context.Context, session *fleet.Session) error { s.mu.Lock() s.DestroySessionFuncInvoked = true s.mu.Unlock() return s.DestroySessionFunc(ctx, session) } func (s *DataStore) DestroyAllSessionsForUser(ctx context.Context, id uint) error { s.mu.Lock() s.DestroyAllSessionsForUserFuncInvoked = true s.mu.Unlock() return s.DestroyAllSessionsForUserFunc(ctx, id) } func (s *DataStore) MarkSessionAccessed(ctx context.Context, session *fleet.Session) error { s.mu.Lock() s.MarkSessionAccessedFuncInvoked = true s.mu.Unlock() return s.MarkSessionAccessedFunc(ctx, session) } func (s *DataStore) SessionByMFAToken(ctx context.Context, token string, sessionKeySize int) (*fleet.Session, *fleet.User, error) { s.mu.Lock() s.SessionByMFATokenFuncInvoked = true s.mu.Unlock() return s.SessionByMFATokenFunc(ctx, token, sessionKeySize) } func (s *DataStore) NewMFAToken(ctx context.Context, userID uint) (string, error) { s.mu.Lock() s.NewMFATokenFuncInvoked = true s.mu.Unlock() return s.NewMFATokenFunc(ctx, userID) } func (s *DataStore) NewAppConfig(ctx context.Context, info *fleet.AppConfig) (*fleet.AppConfig, error) { s.mu.Lock() s.NewAppConfigFuncInvoked = true s.mu.Unlock() return s.NewAppConfigFunc(ctx, info) } func (s *DataStore) SaveAppConfig(ctx context.Context, info *fleet.AppConfig) error { s.mu.Lock() s.SaveAppConfigFuncInvoked = true s.mu.Unlock() return s.SaveAppConfigFunc(ctx, info) } func (s *DataStore) GetEnrollSecrets(ctx context.Context, teamID *uint) ([]*fleet.EnrollSecret, error) { s.mu.Lock() s.GetEnrollSecretsFuncInvoked = true s.mu.Unlock() return s.GetEnrollSecretsFunc(ctx, teamID) } func (s *DataStore) ApplyEnrollSecrets(ctx context.Context, teamID *uint, secrets []*fleet.EnrollSecret) error { s.mu.Lock() s.ApplyEnrollSecretsFuncInvoked = true s.mu.Unlock() return s.ApplyEnrollSecretsFunc(ctx, teamID, secrets) } func (s *DataStore) AggregateEnrollSecretPerTeam(ctx context.Context) ([]*fleet.EnrollSecret, error) { s.mu.Lock() s.AggregateEnrollSecretPerTeamFuncInvoked = true s.mu.Unlock() return s.AggregateEnrollSecretPerTeamFunc(ctx) } func (s *DataStore) GetYaraRules(ctx context.Context) ([]fleet.YaraRule, error) { s.mu.Lock() s.GetYaraRulesFuncInvoked = true s.mu.Unlock() return s.GetYaraRulesFunc(ctx) } func (s *DataStore) ApplyYaraRules(ctx context.Context, rules []fleet.YaraRule) error { s.mu.Lock() s.ApplyYaraRulesFuncInvoked = true s.mu.Unlock() return s.ApplyYaraRulesFunc(ctx, rules) } func (s *DataStore) YaraRuleByName(ctx context.Context, name string) (*fleet.YaraRule, error) { s.mu.Lock() s.YaraRuleByNameFuncInvoked = true s.mu.Unlock() return s.YaraRuleByNameFunc(ctx, name) } func (s *DataStore) NewInvite(ctx context.Context, i *fleet.Invite) (*fleet.Invite, error) { s.mu.Lock() s.NewInviteFuncInvoked = true s.mu.Unlock() return s.NewInviteFunc(ctx, i) } func (s *DataStore) ListInvites(ctx context.Context, opt fleet.ListOptions) ([]*fleet.Invite, error) { s.mu.Lock() s.ListInvitesFuncInvoked = true s.mu.Unlock() return s.ListInvitesFunc(ctx, opt) } func (s *DataStore) Invite(ctx context.Context, id uint) (*fleet.Invite, error) { s.mu.Lock() s.InviteFuncInvoked = true s.mu.Unlock() return s.InviteFunc(ctx, id) } func (s *DataStore) InviteByEmail(ctx context.Context, email string) (*fleet.Invite, error) { s.mu.Lock() s.InviteByEmailFuncInvoked = true s.mu.Unlock() return s.InviteByEmailFunc(ctx, email) } func (s *DataStore) InviteByToken(ctx context.Context, token string) (*fleet.Invite, error) { s.mu.Lock() s.InviteByTokenFuncInvoked = true s.mu.Unlock() return s.InviteByTokenFunc(ctx, token) } func (s *DataStore) DeleteInvite(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteInviteFuncInvoked = true s.mu.Unlock() return s.DeleteInviteFunc(ctx, id) } func (s *DataStore) UpdateInvite(ctx context.Context, id uint, i *fleet.Invite) (*fleet.Invite, error) { s.mu.Lock() s.UpdateInviteFuncInvoked = true s.mu.Unlock() return s.UpdateInviteFunc(ctx, id, i) } func (s *DataStore) ListScheduledQueriesInPackWithStats(ctx context.Context, id uint, opts fleet.ListOptions) ([]*fleet.ScheduledQuery, error) { s.mu.Lock() s.ListScheduledQueriesInPackWithStatsFuncInvoked = true s.mu.Unlock() return s.ListScheduledQueriesInPackWithStatsFunc(ctx, id, opts) } func (s *DataStore) NewScheduledQuery(ctx context.Context, sq *fleet.ScheduledQuery, opts ...fleet.OptionalArg) (*fleet.ScheduledQuery, error) { s.mu.Lock() s.NewScheduledQueryFuncInvoked = true s.mu.Unlock() return s.NewScheduledQueryFunc(ctx, sq, opts...) } func (s *DataStore) SaveScheduledQuery(ctx context.Context, sq *fleet.ScheduledQuery) (*fleet.ScheduledQuery, error) { s.mu.Lock() s.SaveScheduledQueryFuncInvoked = true s.mu.Unlock() return s.SaveScheduledQueryFunc(ctx, sq) } func (s *DataStore) DeleteScheduledQuery(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteScheduledQueryFuncInvoked = true s.mu.Unlock() return s.DeleteScheduledQueryFunc(ctx, id) } func (s *DataStore) ScheduledQuery(ctx context.Context, id uint) (*fleet.ScheduledQuery, error) { s.mu.Lock() s.ScheduledQueryFuncInvoked = true s.mu.Unlock() return s.ScheduledQueryFunc(ctx, id) } func (s *DataStore) CleanupExpiredHosts(ctx context.Context) ([]fleet.DeletedHostDetails, error) { s.mu.Lock() s.CleanupExpiredHostsFuncInvoked = true s.mu.Unlock() return s.CleanupExpiredHostsFunc(ctx) } func (s *DataStore) ScheduledQueryIDsByName(ctx context.Context, batchSize int, packAndSchedQueryNames ...[2]string) ([]uint, error) { s.mu.Lock() s.ScheduledQueryIDsByNameFuncInvoked = true s.mu.Unlock() return s.ScheduledQueryIDsByNameFunc(ctx, batchSize, packAndSchedQueryNames...) } func (s *DataStore) QueryResultRows(ctx context.Context, queryID uint, filter fleet.TeamFilter) ([]*fleet.ScheduledQueryResultRow, error) { s.mu.Lock() s.QueryResultRowsFuncInvoked = true s.mu.Unlock() return s.QueryResultRowsFunc(ctx, queryID, filter) } func (s *DataStore) QueryResultRowsForHost(ctx context.Context, queryID uint, hostID uint) ([]*fleet.ScheduledQueryResultRow, error) { s.mu.Lock() s.QueryResultRowsForHostFuncInvoked = true s.mu.Unlock() return s.QueryResultRowsForHostFunc(ctx, queryID, hostID) } func (s *DataStore) ResultCountForQuery(ctx context.Context, queryID uint) (int, error) { s.mu.Lock() s.ResultCountForQueryFuncInvoked = true s.mu.Unlock() return s.ResultCountForQueryFunc(ctx, queryID) } func (s *DataStore) ResultCountForQueryAndHost(ctx context.Context, queryID uint, hostID uint) (int, error) { s.mu.Lock() s.ResultCountForQueryAndHostFuncInvoked = true s.mu.Unlock() return s.ResultCountForQueryAndHostFunc(ctx, queryID, hostID) } func (s *DataStore) OverwriteQueryResultRows(ctx context.Context, rows []*fleet.ScheduledQueryResultRow, maxQueryReportRows int) (int, error) { s.mu.Lock() s.OverwriteQueryResultRowsFuncInvoked = true s.mu.Unlock() return s.OverwriteQueryResultRowsFunc(ctx, rows, maxQueryReportRows) } func (s *DataStore) CleanupDiscardedQueryResults(ctx context.Context) error { s.mu.Lock() s.CleanupDiscardedQueryResultsFuncInvoked = true s.mu.Unlock() return s.CleanupDiscardedQueryResultsFunc(ctx) } func (s *DataStore) CleanupExcessQueryResultRows(ctx context.Context, maxQueryReportRows int, opts ...fleet.CleanupExcessQueryResultRowsOptions) (map[uint]int, error) { s.mu.Lock() s.CleanupExcessQueryResultRowsFuncInvoked = true s.mu.Unlock() return s.CleanupExcessQueryResultRowsFunc(ctx, maxQueryReportRows, opts...) } func (s *DataStore) NewTeam(ctx context.Context, team *fleet.Team) (*fleet.Team, error) { s.mu.Lock() s.NewTeamFuncInvoked = true s.mu.Unlock() return s.NewTeamFunc(ctx, team) } func (s *DataStore) SaveTeam(ctx context.Context, team *fleet.Team) (*fleet.Team, error) { s.mu.Lock() s.SaveTeamFuncInvoked = true s.mu.Unlock() return s.SaveTeamFunc(ctx, team) } func (s *DataStore) TeamWithExtras(ctx context.Context, tid uint) (*fleet.Team, error) { s.mu.Lock() s.TeamWithExtrasFuncInvoked = true s.mu.Unlock() return s.TeamWithExtrasFunc(ctx, tid) } func (s *DataStore) TeamLite(ctx context.Context, tid uint) (*fleet.TeamLite, error) { s.mu.Lock() s.TeamLiteFuncInvoked = true s.mu.Unlock() return s.TeamLiteFunc(ctx, tid) } func (s *DataStore) DeleteTeam(ctx context.Context, tid uint) error { s.mu.Lock() s.DeleteTeamFuncInvoked = true s.mu.Unlock() return s.DeleteTeamFunc(ctx, tid) } func (s *DataStore) TeamByName(ctx context.Context, name string) (*fleet.Team, error) { s.mu.Lock() s.TeamByNameFuncInvoked = true s.mu.Unlock() return s.TeamByNameFunc(ctx, name) } func (s *DataStore) TeamByFilename(ctx context.Context, filename string) (*fleet.Team, error) { s.mu.Lock() s.TeamByFilenameFuncInvoked = true s.mu.Unlock() return s.TeamByFilenameFunc(ctx, filename) } func (s *DataStore) ListTeams(ctx context.Context, filter fleet.TeamFilter, opt fleet.ListOptions) ([]*fleet.Team, error) { s.mu.Lock() s.ListTeamsFuncInvoked = true s.mu.Unlock() return s.ListTeamsFunc(ctx, filter, opt) } func (s *DataStore) TeamsSummary(ctx context.Context) ([]*fleet.TeamSummary, error) { s.mu.Lock() s.TeamsSummaryFuncInvoked = true s.mu.Unlock() return s.TeamsSummaryFunc(ctx) } func (s *DataStore) SearchTeams(ctx context.Context, filter fleet.TeamFilter, matchQuery string, omit ...uint) ([]*fleet.Team, error) { s.mu.Lock() s.SearchTeamsFuncInvoked = true s.mu.Unlock() return s.SearchTeamsFunc(ctx, filter, matchQuery, omit...) } func (s *DataStore) TeamEnrollSecrets(ctx context.Context, teamID uint) ([]*fleet.EnrollSecret, error) { s.mu.Lock() s.TeamEnrollSecretsFuncInvoked = true s.mu.Unlock() return s.TeamEnrollSecretsFunc(ctx, teamID) } func (s *DataStore) DeleteIntegrationsFromTeams(ctx context.Context, deletedIntgs fleet.Integrations) error { s.mu.Lock() s.DeleteIntegrationsFromTeamsFuncInvoked = true s.mu.Unlock() return s.DeleteIntegrationsFromTeamsFunc(ctx, deletedIntgs) } func (s *DataStore) DefaultTeamConfig(ctx context.Context) (*fleet.TeamConfig, error) { s.mu.Lock() s.DefaultTeamConfigFuncInvoked = true s.mu.Unlock() return s.DefaultTeamConfigFunc(ctx) } func (s *DataStore) SaveDefaultTeamConfig(ctx context.Context, config *fleet.TeamConfig) error { s.mu.Lock() s.SaveDefaultTeamConfigFuncInvoked = true s.mu.Unlock() return s.SaveDefaultTeamConfigFunc(ctx, config) } func (s *DataStore) TeamExists(ctx context.Context, teamID uint) (bool, error) { s.mu.Lock() s.TeamExistsFuncInvoked = true s.mu.Unlock() return s.TeamExistsFunc(ctx, teamID) } func (s *DataStore) ListSoftwareTitles(ctx context.Context, opt fleet.SoftwareTitleListOptions, tmFilter fleet.TeamFilter) ([]fleet.SoftwareTitleListResult, int, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListSoftwareTitlesFuncInvoked = true s.mu.Unlock() return s.ListSoftwareTitlesFunc(ctx, opt, tmFilter) } func (s *DataStore) SoftwareTitleByID(ctx context.Context, id uint, teamID *uint, tmFilter fleet.TeamFilter) (*fleet.SoftwareTitle, error) { s.mu.Lock() s.SoftwareTitleByIDFuncInvoked = true s.mu.Unlock() return s.SoftwareTitleByIDFunc(ctx, id, teamID, tmFilter) } func (s *DataStore) SoftwareTitleNameForHostFilter(ctx context.Context, id uint) (name string, displayName string, err error) { s.mu.Lock() s.SoftwareTitleNameForHostFilterFuncInvoked = true s.mu.Unlock() return s.SoftwareTitleNameForHostFilterFunc(ctx, id) } func (s *DataStore) UpdateSoftwareTitleName(ctx context.Context, id uint, name string) error { s.mu.Lock() s.UpdateSoftwareTitleNameFuncInvoked = true s.mu.Unlock() return s.UpdateSoftwareTitleNameFunc(ctx, id, name) } func (s *DataStore) UpdateSoftwareTitleAutoUpdateConfig(ctx context.Context, titleID uint, teamID uint, config fleet.SoftwareAutoUpdateConfig) error { s.mu.Lock() s.UpdateSoftwareTitleAutoUpdateConfigFuncInvoked = true s.mu.Unlock() return s.UpdateSoftwareTitleAutoUpdateConfigFunc(ctx, titleID, teamID, config) } func (s *DataStore) ListSoftwareAutoUpdateSchedules(ctx context.Context, teamID uint, source string, optionalFilter ...fleet.SoftwareAutoUpdateScheduleFilter) ([]fleet.SoftwareAutoUpdateSchedule, error) { s.mu.Lock() s.ListSoftwareAutoUpdateSchedulesFuncInvoked = true s.mu.Unlock() return s.ListSoftwareAutoUpdateSchedulesFunc(ctx, teamID, source, optionalFilter...) } func (s *DataStore) InsertSoftwareInstallRequest(ctx context.Context, hostID uint, softwareInstallerID uint, opts fleet.HostSoftwareInstallOptions) (string, error) { s.mu.Lock() s.InsertSoftwareInstallRequestFuncInvoked = true s.mu.Unlock() return s.InsertSoftwareInstallRequestFunc(ctx, hostID, softwareInstallerID, opts) } func (s *DataStore) InsertSoftwareUninstallRequest(ctx context.Context, executionID string, hostID uint, softwareInstallerID uint, selfService bool) error { s.mu.Lock() s.InsertSoftwareUninstallRequestFuncInvoked = true s.mu.Unlock() return s.InsertSoftwareUninstallRequestFunc(ctx, executionID, hostID, softwareInstallerID, selfService) } func (s *DataStore) GetDetailsForUninstallFromExecutionID(ctx context.Context, executionID string) (string, bool, error) { s.mu.Lock() s.GetDetailsForUninstallFromExecutionIDFuncInvoked = true s.mu.Unlock() return s.GetDetailsForUninstallFromExecutionIDFunc(ctx, executionID) } func (s *DataStore) ListSoftwareForVulnDetection(ctx context.Context, filter fleet.VulnSoftwareFilter) ([]fleet.Software, error) { s.mu.Lock() s.ListSoftwareForVulnDetectionFuncInvoked = true s.mu.Unlock() return s.ListSoftwareForVulnDetectionFunc(ctx, filter) } func (s *DataStore) ListSoftwareVulnerabilitiesByHostIDsSource(ctx context.Context, hostIDs []uint, source fleet.VulnerabilitySource) (map[uint][]fleet.SoftwareVulnerability, error) { s.mu.Lock() s.ListSoftwareVulnerabilitiesByHostIDsSourceFuncInvoked = true s.mu.Unlock() return s.ListSoftwareVulnerabilitiesByHostIDsSourceFunc(ctx, hostIDs, source) } func (s *DataStore) LoadHostSoftware(ctx context.Context, host *fleet.Host, includeCVEScores bool) error { s.mu.Lock() s.LoadHostSoftwareFuncInvoked = true s.mu.Unlock() return s.LoadHostSoftwareFunc(ctx, host, includeCVEScores) } func (s *DataStore) AllSoftwareIterator(ctx context.Context, query fleet.SoftwareIterQueryOptions) (fleet.SoftwareIterator, error) { s.mu.Lock() s.AllSoftwareIteratorFuncInvoked = true s.mu.Unlock() return s.AllSoftwareIteratorFunc(ctx, query) } func (s *DataStore) UpsertSoftwareCPEs(ctx context.Context, cpes []fleet.SoftwareCPE) (int64, error) { s.mu.Lock() s.UpsertSoftwareCPEsFuncInvoked = true s.mu.Unlock() return s.UpsertSoftwareCPEsFunc(ctx, cpes) } func (s *DataStore) DeleteSoftwareCPEs(ctx context.Context, cpes []fleet.SoftwareCPE) (int64, error) { s.mu.Lock() s.DeleteSoftwareCPEsFuncInvoked = true s.mu.Unlock() return s.DeleteSoftwareCPEsFunc(ctx, cpes) } func (s *DataStore) ListSoftwareCPEs(ctx context.Context) ([]fleet.SoftwareCPE, error) { s.mu.Lock() s.ListSoftwareCPEsFuncInvoked = true s.mu.Unlock() return s.ListSoftwareCPEsFunc(ctx) } func (s *DataStore) InsertSoftwareVulnerability(ctx context.Context, vuln fleet.SoftwareVulnerability, source fleet.VulnerabilitySource) (bool, error) { s.mu.Lock() s.InsertSoftwareVulnerabilityFuncInvoked = true s.mu.Unlock() return s.InsertSoftwareVulnerabilityFunc(ctx, vuln, source) } func (s *DataStore) SoftwareByID(ctx context.Context, id uint, teamID *uint, includeCVEScores bool, tmFilter *fleet.TeamFilter) (*fleet.Software, error) { s.mu.Lock() s.SoftwareByIDFuncInvoked = true s.mu.Unlock() return s.SoftwareByIDFunc(ctx, id, teamID, includeCVEScores, tmFilter) } func (s *DataStore) ListSoftwareByHostIDShort(ctx context.Context, hostID uint) ([]fleet.Software, error) { s.mu.Lock() s.ListSoftwareByHostIDShortFuncInvoked = true s.mu.Unlock() return s.ListSoftwareByHostIDShortFunc(ctx, hostID) } func (s *DataStore) SyncHostsSoftware(ctx context.Context, updatedAt time.Time) error { s.mu.Lock() s.SyncHostsSoftwareFuncInvoked = true s.mu.Unlock() return s.SyncHostsSoftwareFunc(ctx, updatedAt) } func (s *DataStore) CleanupSoftwareTitles(ctx context.Context) error { s.mu.Lock() s.CleanupSoftwareTitlesFuncInvoked = true s.mu.Unlock() return s.CleanupSoftwareTitlesFunc(ctx) } func (s *DataStore) SyncHostsSoftwareTitles(ctx context.Context, updatedAt time.Time) error { s.mu.Lock() s.SyncHostsSoftwareTitlesFuncInvoked = true s.mu.Unlock() return s.SyncHostsSoftwareTitlesFunc(ctx, updatedAt) } func (s *DataStore) HostVulnSummariesBySoftwareIDs(ctx context.Context, softwareIDs []uint) ([]fleet.HostVulnerabilitySummary, error) { s.mu.Lock() s.HostVulnSummariesBySoftwareIDsFuncInvoked = true s.mu.Unlock() return s.HostVulnSummariesBySoftwareIDsFunc(ctx, softwareIDs) } func (s *DataStore) HostsByCVE(ctx context.Context, cve string) ([]fleet.HostVulnerabilitySummary, error) { s.mu.Lock() s.HostsByCVEFuncInvoked = true s.mu.Unlock() return s.HostsByCVEFunc(ctx, cve) } func (s *DataStore) InsertCVEMeta(ctx context.Context, cveMeta []fleet.CVEMeta) error { s.mu.Lock() s.InsertCVEMetaFuncInvoked = true s.mu.Unlock() return s.InsertCVEMetaFunc(ctx, cveMeta) } func (s *DataStore) ListCVEs(ctx context.Context, maxAge time.Duration) ([]fleet.CVEMeta, error) { s.mu.Lock() s.ListCVEsFuncInvoked = true s.mu.Unlock() return s.ListCVEsFunc(ctx, maxAge) } func (s *DataStore) ListHostSoftware(ctx context.Context, host *fleet.Host, opts fleet.HostSoftwareTitleListOptions) ([]*fleet.HostSoftwareWithInstaller, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListHostSoftwareFuncInvoked = true s.mu.Unlock() return s.ListHostSoftwareFunc(ctx, host, opts) } func (s *DataStore) IsSoftwareInstallerLabelScoped(ctx context.Context, installerID uint, hostID uint) (bool, error) { s.mu.Lock() s.IsSoftwareInstallerLabelScopedFuncInvoked = true s.mu.Unlock() return s.IsSoftwareInstallerLabelScopedFunc(ctx, installerID, hostID) } func (s *DataStore) IsVPPAppLabelScoped(ctx context.Context, vppAppTeamID uint, hostID uint) (bool, error) { s.mu.Lock() s.IsVPPAppLabelScopedFuncInvoked = true s.mu.Unlock() return s.IsVPPAppLabelScopedFunc(ctx, vppAppTeamID, hostID) } func (s *DataStore) IsInHouseAppLabelScoped(ctx context.Context, inHouseAppID uint, hostID uint) (bool, error) { s.mu.Lock() s.IsInHouseAppLabelScopedFuncInvoked = true s.mu.Unlock() return s.IsInHouseAppLabelScopedFunc(ctx, inHouseAppID, hostID) } func (s *DataStore) GetUnverifiedInHouseAppInstallsForHost(ctx context.Context, hostUUID string) ([]*fleet.HostVPPSoftwareInstall, error) { s.mu.Lock() s.GetUnverifiedInHouseAppInstallsForHostFuncInvoked = true s.mu.Unlock() return s.GetUnverifiedInHouseAppInstallsForHostFunc(ctx, hostUUID) } func (s *DataStore) SetInHouseAppInstallAsVerified(ctx context.Context, hostID uint, installUUID string, verificationUUID string) error { s.mu.Lock() s.SetInHouseAppInstallAsVerifiedFuncInvoked = true s.mu.Unlock() return s.SetInHouseAppInstallAsVerifiedFunc(ctx, hostID, installUUID, verificationUUID) } func (s *DataStore) SetInHouseAppInstallAsFailed(ctx context.Context, hostID uint, installUUID string, verificationUUID string) error { s.mu.Lock() s.SetInHouseAppInstallAsFailedFuncInvoked = true s.mu.Unlock() return s.SetInHouseAppInstallAsFailedFunc(ctx, hostID, installUUID, verificationUUID) } func (s *DataStore) ReplaceInHouseAppInstallVerificationUUID(ctx context.Context, oldVerifyUUID string, verifyCommandUUID string) error { s.mu.Lock() s.ReplaceInHouseAppInstallVerificationUUIDFuncInvoked = true s.mu.Unlock() return s.ReplaceInHouseAppInstallVerificationUUIDFunc(ctx, oldVerifyUUID, verifyCommandUUID) } func (s *DataStore) GetPastActivityDataForInHouseAppInstall(ctx context.Context, commandResults *mdm.CommandResults) (*fleet.User, *fleet.ActivityTypeInstalledSoftware, error) { s.mu.Lock() s.GetPastActivityDataForInHouseAppInstallFuncInvoked = true s.mu.Unlock() return s.GetPastActivityDataForInHouseAppInstallFunc(ctx, commandResults) } func (s *DataStore) SetHostSoftwareInstallResult(ctx context.Context, result *fleet.HostSoftwareInstallResultPayload, attemptNumber *int) (wasCanceled bool, err error) { s.mu.Lock() s.SetHostSoftwareInstallResultFuncInvoked = true s.mu.Unlock() return s.SetHostSoftwareInstallResultFunc(ctx, result, attemptNumber) } func (s *DataStore) CreateIntermediateInstallFailureRecord(ctx context.Context, result *fleet.HostSoftwareInstallResultPayload) (string, error) { s.mu.Lock() s.CreateIntermediateInstallFailureRecordFuncInvoked = true s.mu.Unlock() return s.CreateIntermediateInstallFailureRecordFunc(ctx, result) } func (s *DataStore) NewSoftwareCategory(ctx context.Context, name string) (*fleet.SoftwareCategory, error) { s.mu.Lock() s.NewSoftwareCategoryFuncInvoked = true s.mu.Unlock() return s.NewSoftwareCategoryFunc(ctx, name) } func (s *DataStore) GetSoftwareCategoryIDs(ctx context.Context, names []string) ([]uint, error) { s.mu.Lock() s.GetSoftwareCategoryIDsFuncInvoked = true s.mu.Unlock() return s.GetSoftwareCategoryIDsFunc(ctx, names) } func (s *DataStore) GetCategoriesForSoftwareTitles(ctx context.Context, softwareTitleIDs []uint, team_id *uint) (map[uint][]string, error) { s.mu.Lock() s.GetCategoriesForSoftwareTitlesFuncInvoked = true s.mu.Unlock() return s.GetCategoriesForSoftwareTitlesFunc(ctx, softwareTitleIDs, team_id) } func (s *DataStore) AssociateMDMInstallToVerificationUUID(ctx context.Context, installUUID string, verifyCommandUUID string, hostUUID string) error { s.mu.Lock() s.AssociateMDMInstallToVerificationUUIDFuncInvoked = true s.mu.Unlock() return s.AssociateMDMInstallToVerificationUUIDFunc(ctx, installUUID, verifyCommandUUID, hostUUID) } func (s *DataStore) SetVPPInstallAsVerified(ctx context.Context, hostID uint, installUUID string, verificationUUID string) error { s.mu.Lock() s.SetVPPInstallAsVerifiedFuncInvoked = true s.mu.Unlock() return s.SetVPPInstallAsVerifiedFunc(ctx, hostID, installUUID, verificationUUID) } func (s *DataStore) ReplaceVPPInstallVerificationUUID(ctx context.Context, oldVerifyUUID string, verifyCommandUUID string) error { s.mu.Lock() s.ReplaceVPPInstallVerificationUUIDFuncInvoked = true s.mu.Unlock() return s.ReplaceVPPInstallVerificationUUIDFunc(ctx, oldVerifyUUID, verifyCommandUUID) } func (s *DataStore) IsHostPendingMDMInstallVerification(ctx context.Context, hostUUID string) (bool, error) { s.mu.Lock() s.IsHostPendingMDMInstallVerificationFuncInvoked = true s.mu.Unlock() return s.IsHostPendingMDMInstallVerificationFunc(ctx, hostUUID) } func (s *DataStore) GetUnverifiedVPPInstallsForHost(ctx context.Context, verificationUUID string) ([]*fleet.HostVPPSoftwareInstall, error) { s.mu.Lock() s.GetUnverifiedVPPInstallsForHostFuncInvoked = true s.mu.Unlock() return s.GetUnverifiedVPPInstallsForHostFunc(ctx, verificationUUID) } func (s *DataStore) SetVPPInstallAsFailed(ctx context.Context, hostID uint, installUUID string, verificationUUID string) error { s.mu.Lock() s.SetVPPInstallAsFailedFuncInvoked = true s.mu.Unlock() return s.SetVPPInstallAsFailedFunc(ctx, hostID, installUUID, verificationUUID) } func (s *DataStore) MarkAllPendingAppleVPPAndInHouseInstallsAsFailed(ctx context.Context, jobName string) error { s.mu.Lock() s.MarkAllPendingAppleVPPAndInHouseInstallsAsFailedFuncInvoked = true s.mu.Unlock() return s.MarkAllPendingAppleVPPAndInHouseInstallsAsFailedFunc(ctx, jobName) } func (s *DataStore) CheckConflictingInstallerExists(ctx context.Context, teamID *uint, bundleIdentifier string, platform string) (bool, error) { s.mu.Lock() s.CheckConflictingInstallerExistsFuncInvoked = true s.mu.Unlock() return s.CheckConflictingInstallerExistsFunc(ctx, teamID, bundleIdentifier, platform) } func (s *DataStore) CheckConflictingInHouseAppExists(ctx context.Context, teamID *uint, bundleIdentifier string, platform string) (bool, error) { s.mu.Lock() s.CheckConflictingInHouseAppExistsFuncInvoked = true s.mu.Unlock() return s.CheckConflictingInHouseAppExistsFunc(ctx, teamID, bundleIdentifier, platform) } func (s *DataStore) GetHostOperatingSystem(ctx context.Context, hostID uint) (*fleet.OperatingSystem, error) { s.mu.Lock() s.GetHostOperatingSystemFuncInvoked = true s.mu.Unlock() return s.GetHostOperatingSystemFunc(ctx, hostID) } func (s *DataStore) ListOperatingSystems(ctx context.Context) ([]fleet.OperatingSystem, error) { s.mu.Lock() s.ListOperatingSystemsFuncInvoked = true s.mu.Unlock() return s.ListOperatingSystemsFunc(ctx) } func (s *DataStore) ListOperatingSystemsForPlatform(ctx context.Context, platform string) ([]fleet.OperatingSystem, error) { s.mu.Lock() s.ListOperatingSystemsForPlatformFuncInvoked = true s.mu.Unlock() return s.ListOperatingSystemsForPlatformFunc(ctx, platform) } func (s *DataStore) UpdateHostOperatingSystem(ctx context.Context, hostID uint, hostOS fleet.OperatingSystem) error { s.mu.Lock() s.UpdateHostOperatingSystemFuncInvoked = true s.mu.Unlock() return s.UpdateHostOperatingSystemFunc(ctx, hostID, hostOS) } func (s *DataStore) CleanupHostOperatingSystems(ctx context.Context) error { s.mu.Lock() s.CleanupHostOperatingSystemsFuncInvoked = true s.mu.Unlock() return s.CleanupHostOperatingSystemsFunc(ctx) } func (s *DataStore) MDMTurnOff(ctx context.Context, uuid string) (users []*fleet.User, activities []fleet.ActivityDetails, err error) { s.mu.Lock() s.MDMTurnOffFuncInvoked = true s.mu.Unlock() return s.MDMTurnOffFunc(ctx, uuid) } func (s *DataStore) NewActivity(ctx context.Context, user *fleet.User, activity fleet.ActivityDetails, details []byte, createdAt time.Time) error { s.mu.Lock() s.NewActivityFuncInvoked = true s.mu.Unlock() return s.NewActivityFunc(ctx, user, activity, details, createdAt) } func (s *DataStore) ListHostUpcomingActivities(ctx context.Context, hostID uint, opt fleet.ListOptions) ([]*fleet.UpcomingActivity, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListHostUpcomingActivitiesFuncInvoked = true s.mu.Unlock() return s.ListHostUpcomingActivitiesFunc(ctx, hostID, opt) } func (s *DataStore) CancelHostUpcomingActivity(ctx context.Context, hostID uint, executionID string) (fleet.ActivityDetails, error) { s.mu.Lock() s.CancelHostUpcomingActivityFuncInvoked = true s.mu.Unlock() return s.CancelHostUpcomingActivityFunc(ctx, hostID, executionID) } func (s *DataStore) IsExecutionPendingForHost(ctx context.Context, hostID uint, scriptID uint) (bool, error) { s.mu.Lock() s.IsExecutionPendingForHostFuncInvoked = true s.mu.Unlock() return s.IsExecutionPendingForHostFunc(ctx, hostID, scriptID) } func (s *DataStore) GetHostUpcomingActivityMeta(ctx context.Context, hostID uint, executionID string) (*fleet.UpcomingActivityMeta, error) { s.mu.Lock() s.GetHostUpcomingActivityMetaFuncInvoked = true s.mu.Unlock() return s.GetHostUpcomingActivityMetaFunc(ctx, hostID, executionID) } func (s *DataStore) UnblockHostsUpcomingActivityQueue(ctx context.Context, maxHosts int) (int, error) { s.mu.Lock() s.UnblockHostsUpcomingActivityQueueFuncInvoked = true s.mu.Unlock() return s.UnblockHostsUpcomingActivityQueueFunc(ctx, maxHosts) } func (s *DataStore) ShouldSendStatistics(ctx context.Context, frequency time.Duration, config config.FleetConfig) (fleet.StatisticsPayload, bool, error) { s.mu.Lock() s.ShouldSendStatisticsFuncInvoked = true s.mu.Unlock() return s.ShouldSendStatisticsFunc(ctx, frequency, config) } func (s *DataStore) RecordStatisticsSent(ctx context.Context) error { s.mu.Lock() s.RecordStatisticsSentFuncInvoked = true s.mu.Unlock() return s.RecordStatisticsSentFunc(ctx) } func (s *DataStore) CleanupStatistics(ctx context.Context) error { s.mu.Lock() s.CleanupStatisticsFuncInvoked = true s.mu.Unlock() return s.CleanupStatisticsFunc(ctx) } func (s *DataStore) GetTableRowCounts(ctx context.Context) (map[string]uint, error) { s.mu.Lock() s.GetTableRowCountsFuncInvoked = true s.mu.Unlock() return s.GetTableRowCountsFunc(ctx) } func (s *DataStore) ApplyPolicySpecs(ctx context.Context, authorID uint, specs []*fleet.PolicySpec) error { s.mu.Lock() s.ApplyPolicySpecsFuncInvoked = true s.mu.Unlock() return s.ApplyPolicySpecsFunc(ctx, authorID, specs) } func (s *DataStore) NewGlobalPolicy(ctx context.Context, authorID *uint, args fleet.PolicyPayload) (*fleet.Policy, error) { s.mu.Lock() s.NewGlobalPolicyFuncInvoked = true s.mu.Unlock() return s.NewGlobalPolicyFunc(ctx, authorID, args) } func (s *DataStore) Policy(ctx context.Context, id uint) (*fleet.Policy, error) { s.mu.Lock() s.PolicyFuncInvoked = true s.mu.Unlock() return s.PolicyFunc(ctx, id) } func (s *DataStore) PolicyLite(ctx context.Context, id uint) (*fleet.PolicyLite, error) { s.mu.Lock() s.PolicyLiteFuncInvoked = true s.mu.Unlock() return s.PolicyLiteFunc(ctx, id) } func (s *DataStore) SavePolicy(ctx context.Context, p *fleet.Policy, shouldRemoveAllPolicyMemberships bool, removePolicyStats bool) error { s.mu.Lock() s.SavePolicyFuncInvoked = true s.mu.Unlock() return s.SavePolicyFunc(ctx, p, shouldRemoveAllPolicyMemberships, removePolicyStats) } func (s *DataStore) ListGlobalPolicies(ctx context.Context, opts fleet.ListOptions) ([]*fleet.Policy, error) { s.mu.Lock() s.ListGlobalPoliciesFuncInvoked = true s.mu.Unlock() return s.ListGlobalPoliciesFunc(ctx, opts) } func (s *DataStore) PoliciesByID(ctx context.Context, ids []uint) (map[uint]*fleet.Policy, error) { s.mu.Lock() s.PoliciesByIDFuncInvoked = true s.mu.Unlock() return s.PoliciesByIDFunc(ctx, ids) } func (s *DataStore) DeleteGlobalPolicies(ctx context.Context, ids []uint) ([]uint, error) { s.mu.Lock() s.DeleteGlobalPoliciesFuncInvoked = true s.mu.Unlock() return s.DeleteGlobalPoliciesFunc(ctx, ids) } func (s *DataStore) CountPolicies(ctx context.Context, teamID *uint, matchQuery string) (int, error) { s.mu.Lock() s.CountPoliciesFuncInvoked = true s.mu.Unlock() return s.CountPoliciesFunc(ctx, teamID, matchQuery) } func (s *DataStore) CountMergedTeamPolicies(ctx context.Context, teamID uint, matchQuery string) (int, error) { s.mu.Lock() s.CountMergedTeamPoliciesFuncInvoked = true s.mu.Unlock() return s.CountMergedTeamPoliciesFunc(ctx, teamID, matchQuery) } func (s *DataStore) UpdateHostPolicyCounts(ctx context.Context) error { s.mu.Lock() s.UpdateHostPolicyCountsFuncInvoked = true s.mu.Unlock() return s.UpdateHostPolicyCountsFunc(ctx) } func (s *DataStore) PolicyQueriesForHost(ctx context.Context, host *fleet.Host) (map[string]string, error) { s.mu.Lock() s.PolicyQueriesForHostFuncInvoked = true s.mu.Unlock() return s.PolicyQueriesForHostFunc(ctx, host) } func (s *DataStore) GetTeamHostsPolicyMemberships(ctx context.Context, domain string, teamID uint, policyIDs []uint, hostID *uint) ([]fleet.HostPolicyMembershipData, error) { s.mu.Lock() s.GetTeamHostsPolicyMembershipsFuncInvoked = true s.mu.Unlock() return s.GetTeamHostsPolicyMembershipsFunc(ctx, domain, teamID, policyIDs, hostID) } func (s *DataStore) GetPoliciesWithAssociatedInstaller(ctx context.Context, teamID uint, policyIDs []uint) ([]fleet.PolicySoftwareInstallerData, error) { s.mu.Lock() s.GetPoliciesWithAssociatedInstallerFuncInvoked = true s.mu.Unlock() return s.GetPoliciesWithAssociatedInstallerFunc(ctx, teamID, policyIDs) } func (s *DataStore) GetPoliciesWithAssociatedVPP(ctx context.Context, teamID uint, policyIDs []uint) ([]fleet.PolicyVPPData, error) { s.mu.Lock() s.GetPoliciesWithAssociatedVPPFuncInvoked = true s.mu.Unlock() return s.GetPoliciesWithAssociatedVPPFunc(ctx, teamID, policyIDs) } func (s *DataStore) GetPoliciesWithAssociatedScript(ctx context.Context, teamID uint, policyIDs []uint) ([]fleet.PolicyScriptData, error) { s.mu.Lock() s.GetPoliciesWithAssociatedScriptFuncInvoked = true s.mu.Unlock() return s.GetPoliciesWithAssociatedScriptFunc(ctx, teamID, policyIDs) } func (s *DataStore) GetCalendarPolicies(ctx context.Context, teamID uint) ([]fleet.PolicyCalendarData, error) { s.mu.Lock() s.GetCalendarPoliciesFuncInvoked = true s.mu.Unlock() return s.GetCalendarPoliciesFunc(ctx, teamID) } func (s *DataStore) GetPoliciesForConditionalAccess(ctx context.Context, teamID uint) ([]uint, error) { s.mu.Lock() s.GetPoliciesForConditionalAccessFuncInvoked = true s.mu.Unlock() return s.GetPoliciesForConditionalAccessFunc(ctx, teamID) } func (s *DataStore) ConditionalAccessBypassDevice(ctx context.Context, hostID uint) error { s.mu.Lock() s.ConditionalAccessBypassDeviceFuncInvoked = true s.mu.Unlock() return s.ConditionalAccessBypassDeviceFunc(ctx, hostID) } func (s *DataStore) ConditionalAccessConsumeBypass(ctx context.Context, hostID uint) (*time.Time, error) { s.mu.Lock() s.ConditionalAccessConsumeBypassFuncInvoked = true s.mu.Unlock() return s.ConditionalAccessConsumeBypassFunc(ctx, hostID) } func (s *DataStore) ConditionalAccessClearBypasses(ctx context.Context) error { s.mu.Lock() s.ConditionalAccessClearBypassesFuncInvoked = true s.mu.Unlock() return s.ConditionalAccessClearBypassesFunc(ctx) } func (s *DataStore) ConditionalAccessBypassedAt(ctx context.Context, hostID uint) (*time.Time, error) { s.mu.Lock() s.ConditionalAccessBypassedAtFuncInvoked = true s.mu.Unlock() return s.ConditionalAccessBypassedAtFunc(ctx, hostID) } func (s *DataStore) AsyncBatchInsertPolicyMembership(ctx context.Context, batch []fleet.PolicyMembershipResult) error { s.mu.Lock() s.AsyncBatchInsertPolicyMembershipFuncInvoked = true s.mu.Unlock() return s.AsyncBatchInsertPolicyMembershipFunc(ctx, batch) } func (s *DataStore) AsyncBatchUpdatePolicyTimestamp(ctx context.Context, ids []uint, ts time.Time) error { s.mu.Lock() s.AsyncBatchUpdatePolicyTimestampFuncInvoked = true s.mu.Unlock() return s.AsyncBatchUpdatePolicyTimestampFunc(ctx, ids, ts) } func (s *DataStore) MigrateTables(ctx context.Context) error { s.mu.Lock() s.MigrateTablesFuncInvoked = true s.mu.Unlock() return s.MigrateTablesFunc(ctx) } func (s *DataStore) MigrateData(ctx context.Context) error { s.mu.Lock() s.MigrateDataFuncInvoked = true s.mu.Unlock() return s.MigrateDataFunc(ctx) } func (s *DataStore) MigrationStatus(ctx context.Context) (*fleet.MigrationStatus, error) { s.mu.Lock() s.MigrationStatusFuncInvoked = true s.mu.Unlock() return s.MigrationStatusFunc(ctx) } func (s *DataStore) ListSoftware(ctx context.Context, opt fleet.SoftwareListOptions) ([]fleet.Software, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListSoftwareFuncInvoked = true s.mu.Unlock() return s.ListSoftwareFunc(ctx, opt) } func (s *DataStore) CountSoftware(ctx context.Context, opt fleet.SoftwareListOptions) (int, error) { s.mu.Lock() s.CountSoftwareFuncInvoked = true s.mu.Unlock() return s.CountSoftwareFunc(ctx, opt) } func (s *DataStore) DeleteSoftwareVulnerabilities(ctx context.Context, vulnerabilities []fleet.SoftwareVulnerability) error { s.mu.Lock() s.DeleteSoftwareVulnerabilitiesFuncInvoked = true s.mu.Unlock() return s.DeleteSoftwareVulnerabilitiesFunc(ctx, vulnerabilities) } func (s *DataStore) DeleteOutOfDateVulnerabilities(ctx context.Context, source fleet.VulnerabilitySource, olderThan time.Time) error { s.mu.Lock() s.DeleteOutOfDateVulnerabilitiesFuncInvoked = true s.mu.Unlock() return s.DeleteOutOfDateVulnerabilitiesFunc(ctx, source, olderThan) } func (s *DataStore) CreateOrUpdateCalendarEvent(ctx context.Context, uuid string, email string, startTime time.Time, endTime time.Time, data []byte, timeZone *string, hostID uint, webhookStatus fleet.CalendarWebhookStatus) (*fleet.CalendarEvent, error) { s.mu.Lock() s.CreateOrUpdateCalendarEventFuncInvoked = true s.mu.Unlock() return s.CreateOrUpdateCalendarEventFunc(ctx, uuid, email, startTime, endTime, data, timeZone, hostID, webhookStatus) } func (s *DataStore) GetCalendarEvent(ctx context.Context, email string) (*fleet.CalendarEvent, error) { s.mu.Lock() s.GetCalendarEventFuncInvoked = true s.mu.Unlock() return s.GetCalendarEventFunc(ctx, email) } func (s *DataStore) GetCalendarEventDetailsByUUID(ctx context.Context, uuid string) (*fleet.CalendarEventDetails, error) { s.mu.Lock() s.GetCalendarEventDetailsByUUIDFuncInvoked = true s.mu.Unlock() return s.GetCalendarEventDetailsByUUIDFunc(ctx, uuid) } func (s *DataStore) DeleteCalendarEvent(ctx context.Context, calendarEventID uint) error { s.mu.Lock() s.DeleteCalendarEventFuncInvoked = true s.mu.Unlock() return s.DeleteCalendarEventFunc(ctx, calendarEventID) } func (s *DataStore) UpdateCalendarEvent(ctx context.Context, calendarEventID uint, uuid string, startTime time.Time, endTime time.Time, data []byte, timeZone *string) error { s.mu.Lock() s.UpdateCalendarEventFuncInvoked = true s.mu.Unlock() return s.UpdateCalendarEventFunc(ctx, calendarEventID, uuid, startTime, endTime, data, timeZone) } func (s *DataStore) GetHostCalendarEvent(ctx context.Context, hostID uint) (*fleet.HostCalendarEvent, *fleet.CalendarEvent, error) { s.mu.Lock() s.GetHostCalendarEventFuncInvoked = true s.mu.Unlock() return s.GetHostCalendarEventFunc(ctx, hostID) } func (s *DataStore) GetHostCalendarEventByEmail(ctx context.Context, email string) (*fleet.HostCalendarEvent, *fleet.CalendarEvent, error) { s.mu.Lock() s.GetHostCalendarEventByEmailFuncInvoked = true s.mu.Unlock() return s.GetHostCalendarEventByEmailFunc(ctx, email) } func (s *DataStore) UpdateHostCalendarWebhookStatus(ctx context.Context, hostID uint, status fleet.CalendarWebhookStatus) error { s.mu.Lock() s.UpdateHostCalendarWebhookStatusFuncInvoked = true s.mu.Unlock() return s.UpdateHostCalendarWebhookStatusFunc(ctx, hostID, status) } func (s *DataStore) ListCalendarEvents(ctx context.Context, teamID *uint) ([]*fleet.CalendarEvent, error) { s.mu.Lock() s.ListCalendarEventsFuncInvoked = true s.mu.Unlock() return s.ListCalendarEventsFunc(ctx, teamID) } func (s *DataStore) ListOutOfDateCalendarEvents(ctx context.Context, t time.Time) ([]*fleet.CalendarEvent, error) { s.mu.Lock() s.ListOutOfDateCalendarEventsFuncInvoked = true s.mu.Unlock() return s.ListOutOfDateCalendarEventsFunc(ctx, t) } func (s *DataStore) NewTeamPolicy(ctx context.Context, teamID uint, authorID *uint, args fleet.PolicyPayload) (*fleet.Policy, error) { s.mu.Lock() s.NewTeamPolicyFuncInvoked = true s.mu.Unlock() return s.NewTeamPolicyFunc(ctx, teamID, authorID, args) } func (s *DataStore) ListTeamPolicies(ctx context.Context, teamID uint, opts fleet.ListOptions, iopts fleet.ListOptions) (teamPolicies []*fleet.Policy, inheritedPolicies []*fleet.Policy, err error) { s.mu.Lock() s.ListTeamPoliciesFuncInvoked = true s.mu.Unlock() return s.ListTeamPoliciesFunc(ctx, teamID, opts, iopts) } func (s *DataStore) ListMergedTeamPolicies(ctx context.Context, teamID uint, opts fleet.ListOptions) ([]*fleet.Policy, error) { s.mu.Lock() s.ListMergedTeamPoliciesFuncInvoked = true s.mu.Unlock() return s.ListMergedTeamPoliciesFunc(ctx, teamID, opts) } func (s *DataStore) DeleteTeamPolicies(ctx context.Context, teamID uint, ids []uint) ([]uint, error) { s.mu.Lock() s.DeleteTeamPoliciesFuncInvoked = true s.mu.Unlock() return s.DeleteTeamPoliciesFunc(ctx, teamID, ids) } func (s *DataStore) TeamPolicy(ctx context.Context, teamID uint, policyID uint) (*fleet.Policy, error) { s.mu.Lock() s.TeamPolicyFuncInvoked = true s.mu.Unlock() return s.TeamPolicyFunc(ctx, teamID, policyID) } func (s *DataStore) CleanupPolicyMembership(ctx context.Context, now time.Time) error { s.mu.Lock() s.CleanupPolicyMembershipFuncInvoked = true s.mu.Unlock() return s.CleanupPolicyMembershipFunc(ctx, now) } func (s *DataStore) IsPolicyFailing(ctx context.Context, policyID uint, hostID uint) (bool, error) { s.mu.Lock() s.IsPolicyFailingFuncInvoked = true s.mu.Unlock() return s.IsPolicyFailingFunc(ctx, policyID, hostID) } func (s *DataStore) CountHostSoftwareInstallAttempts(ctx context.Context, hostID uint, softwareInstallerID uint, policyID uint) (int, error) { s.mu.Lock() s.CountHostSoftwareInstallAttemptsFuncInvoked = true s.mu.Unlock() return s.CountHostSoftwareInstallAttemptsFunc(ctx, hostID, softwareInstallerID, policyID) } func (s *DataStore) CountHostScriptAttempts(ctx context.Context, hostID uint, scriptID uint, policyID uint) (int, error) { s.mu.Lock() s.CountHostScriptAttemptsFuncInvoked = true s.mu.Unlock() return s.CountHostScriptAttemptsFunc(ctx, hostID, scriptID, policyID) } func (s *DataStore) IncrementPolicyViolationDays(ctx context.Context) error { s.mu.Lock() s.IncrementPolicyViolationDaysFuncInvoked = true s.mu.Unlock() return s.IncrementPolicyViolationDaysFunc(ctx) } func (s *DataStore) InitializePolicyViolationDays(ctx context.Context) error { s.mu.Lock() s.InitializePolicyViolationDaysFuncInvoked = true s.mu.Unlock() return s.InitializePolicyViolationDaysFunc(ctx) } func (s *DataStore) Lock(ctx context.Context, name string, owner string, expiration time.Duration) (bool, error) { s.mu.Lock() s.LockFuncInvoked = true s.mu.Unlock() return s.LockFunc(ctx, name, owner, expiration) } func (s *DataStore) Unlock(ctx context.Context, name string, owner string) error { s.mu.Lock() s.UnlockFuncInvoked = true s.mu.Unlock() return s.UnlockFunc(ctx, name, owner) } func (s *DataStore) DBLocks(ctx context.Context) ([]*fleet.DBLock, error) { s.mu.Lock() s.DBLocksFuncInvoked = true s.mu.Unlock() return s.DBLocksFunc(ctx) } func (s *DataStore) GetLatestCronStats(ctx context.Context, name string) ([]fleet.CronStats, error) { s.mu.Lock() s.GetLatestCronStatsFuncInvoked = true s.mu.Unlock() return s.GetLatestCronStatsFunc(ctx, name) } func (s *DataStore) InsertCronStats(ctx context.Context, statsType fleet.CronStatsType, name string, instance string, status fleet.CronStatsStatus) (int, error) { s.mu.Lock() s.InsertCronStatsFuncInvoked = true s.mu.Unlock() return s.InsertCronStatsFunc(ctx, statsType, name, instance, status) } func (s *DataStore) UpdateCronStats(ctx context.Context, id int, status fleet.CronStatsStatus, cronErrors *fleet.CronScheduleErrors) error { s.mu.Lock() s.UpdateCronStatsFuncInvoked = true s.mu.Unlock() return s.UpdateCronStatsFunc(ctx, id, status, cronErrors) } func (s *DataStore) UpdateAllCronStatsForInstance(ctx context.Context, instance string, fromStatus fleet.CronStatsStatus, toStatus fleet.CronStatsStatus) error { s.mu.Lock() s.UpdateAllCronStatsForInstanceFuncInvoked = true s.mu.Unlock() return s.UpdateAllCronStatsForInstanceFunc(ctx, instance, fromStatus, toStatus) } func (s *DataStore) CleanupCronStats(ctx context.Context) error { s.mu.Lock() s.CleanupCronStatsFuncInvoked = true s.mu.Unlock() return s.CleanupCronStatsFunc(ctx) } func (s *DataStore) UpdateQueryAggregatedStats(ctx context.Context) error { s.mu.Lock() s.UpdateQueryAggregatedStatsFuncInvoked = true s.mu.Unlock() return s.UpdateQueryAggregatedStatsFunc(ctx) } func (s *DataStore) LoadHostByNodeKey(ctx context.Context, nodeKey string) (*fleet.Host, error) { s.mu.Lock() s.LoadHostByNodeKeyFuncInvoked = true s.mu.Unlock() return s.LoadHostByNodeKeyFunc(ctx, nodeKey) } func (s *DataStore) LoadHostByOrbitNodeKey(ctx context.Context, nodeKey string) (*fleet.Host, error) { s.mu.Lock() s.LoadHostByOrbitNodeKeyFuncInvoked = true s.mu.Unlock() return s.LoadHostByOrbitNodeKeyFunc(ctx, nodeKey) } func (s *DataStore) HostLite(ctx context.Context, hostID uint) (*fleet.Host, error) { s.mu.Lock() s.HostLiteFuncInvoked = true s.mu.Unlock() return s.HostLiteFunc(ctx, hostID) } func (s *DataStore) UpdateHostOsqueryIntervals(ctx context.Context, hostID uint, intervals fleet.HostOsqueryIntervals) error { s.mu.Lock() s.UpdateHostOsqueryIntervalsFuncInvoked = true s.mu.Unlock() return s.UpdateHostOsqueryIntervalsFunc(ctx, hostID, intervals) } func (s *DataStore) TeamAgentOptions(ctx context.Context, teamID uint) (*json.RawMessage, error) { s.mu.Lock() s.TeamAgentOptionsFuncInvoked = true s.mu.Unlock() return s.TeamAgentOptionsFunc(ctx, teamID) } func (s *DataStore) TeamFeatures(ctx context.Context, teamID uint) (*fleet.Features, error) { s.mu.Lock() s.TeamFeaturesFuncInvoked = true s.mu.Unlock() return s.TeamFeaturesFunc(ctx, teamID) } func (s *DataStore) TeamMDMConfig(ctx context.Context, teamID uint) (*fleet.TeamMDM, error) { s.mu.Lock() s.TeamMDMConfigFuncInvoked = true s.mu.Unlock() return s.TeamMDMConfigFunc(ctx, teamID) } func (s *DataStore) SaveHostPackStats(ctx context.Context, teamID *uint, hostID uint, stats []fleet.PackStats) error { s.mu.Lock() s.SaveHostPackStatsFuncInvoked = true s.mu.Unlock() return s.SaveHostPackStatsFunc(ctx, teamID, hostID, stats) } func (s *DataStore) AsyncBatchSaveHostsScheduledQueryStats(ctx context.Context, stats map[uint][]fleet.ScheduledQueryStats, batchSize int) (int, error) { s.mu.Lock() s.AsyncBatchSaveHostsScheduledQueryStatsFuncInvoked = true s.mu.Unlock() return s.AsyncBatchSaveHostsScheduledQueryStatsFunc(ctx, stats, batchSize) } func (s *DataStore) UpdateHostSoftware(ctx context.Context, hostID uint, software []fleet.Software) (*fleet.UpdateHostSoftwareDBResult, error) { s.mu.Lock() s.UpdateHostSoftwareFuncInvoked = true s.mu.Unlock() return s.UpdateHostSoftwareFunc(ctx, hostID, software) } func (s *DataStore) UpdateHostSoftwareInstalledPaths(ctx context.Context, hostID uint, reported map[string]struct{}, mutationResults *fleet.UpdateHostSoftwareDBResult) error { s.mu.Lock() s.UpdateHostSoftwareInstalledPathsFuncInvoked = true s.mu.Unlock() return s.UpdateHostSoftwareInstalledPathsFunc(ctx, hostID, reported, mutationResults) } func (s *DataStore) UpdateHost(ctx context.Context, host *fleet.Host) error { s.mu.Lock() s.UpdateHostFuncInvoked = true s.mu.Unlock() return s.UpdateHostFunc(ctx, host) } func (s *DataStore) ListScheduledQueriesInPack(ctx context.Context, packID uint) (fleet.ScheduledQueryList, error) { s.mu.Lock() s.ListScheduledQueriesInPackFuncInvoked = true s.mu.Unlock() return s.ListScheduledQueriesInPackFunc(ctx, packID) } func (s *DataStore) UpdateHostRefetchRequested(ctx context.Context, hostID uint, value bool) error { s.mu.Lock() s.UpdateHostRefetchRequestedFuncInvoked = true s.mu.Unlock() return s.UpdateHostRefetchRequestedFunc(ctx, hostID, value) } func (s *DataStore) UpdateHostRefetchCriticalQueriesUntil(ctx context.Context, hostID uint, until *time.Time) error { s.mu.Lock() s.UpdateHostRefetchCriticalQueriesUntilFuncInvoked = true s.mu.Unlock() return s.UpdateHostRefetchCriticalQueriesUntilFunc(ctx, hostID, until) } func (s *DataStore) FlippingPoliciesForHost(ctx context.Context, hostID uint, incomingResults map[uint]*bool) (newFailing []uint, newPassing []uint, err error) { s.mu.Lock() s.FlippingPoliciesForHostFuncInvoked = true s.mu.Unlock() return s.FlippingPoliciesForHostFunc(ctx, hostID, incomingResults) } func (s *DataStore) RecordPolicyQueryExecutions(ctx context.Context, host *fleet.Host, results map[uint]*bool, updated time.Time, deferredSaveHost bool) error { s.mu.Lock() s.RecordPolicyQueryExecutionsFuncInvoked = true s.mu.Unlock() return s.RecordPolicyQueryExecutionsFunc(ctx, host, results, updated, deferredSaveHost) } func (s *DataStore) RecordLabelQueryExecutions(ctx context.Context, host *fleet.Host, results map[uint]*bool, t time.Time, deferredSaveHost bool) error { s.mu.Lock() s.RecordLabelQueryExecutionsFuncInvoked = true s.mu.Unlock() return s.RecordLabelQueryExecutionsFunc(ctx, host, results, t, deferredSaveHost) } func (s *DataStore) SaveHostUsers(ctx context.Context, hostID uint, users []fleet.HostUser) error { s.mu.Lock() s.SaveHostUsersFuncInvoked = true s.mu.Unlock() return s.SaveHostUsersFunc(ctx, hostID, users) } func (s *DataStore) SaveHostAdditional(ctx context.Context, hostID uint, additional *json.RawMessage) error { s.mu.Lock() s.SaveHostAdditionalFuncInvoked = true s.mu.Unlock() return s.SaveHostAdditionalFunc(ctx, hostID, additional) } func (s *DataStore) SetOrUpdateMunkiInfo(ctx context.Context, hostID uint, version string, errors []string, warnings []string) error { s.mu.Lock() s.SetOrUpdateMunkiInfoFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateMunkiInfoFunc(ctx, hostID, version, errors, warnings) } func (s *DataStore) SetOrUpdateMDMData(ctx context.Context, hostID uint, isServer bool, enrolled bool, serverURL string, installedFromDep bool, name string, fleetEnrollRef string, isPersonalEnrollment bool) error { s.mu.Lock() s.SetOrUpdateMDMDataFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateMDMDataFunc(ctx, hostID, isServer, enrolled, serverURL, installedFromDep, name, fleetEnrollRef, isPersonalEnrollment) } func (s *DataStore) UpdateMDMData(ctx context.Context, hostID uint, enrolled bool) error { s.mu.Lock() s.UpdateMDMDataFuncInvoked = true s.mu.Unlock() return s.UpdateMDMDataFunc(ctx, hostID, enrolled) } func (s *DataStore) UpdateMDMInstalledFromDEP(ctx context.Context, hostID uint, installedFromDep bool) error { s.mu.Lock() s.UpdateMDMInstalledFromDEPFuncInvoked = true s.mu.Unlock() return s.UpdateMDMInstalledFromDEPFunc(ctx, hostID, installedFromDep) } func (s *DataStore) GetHostEmails(ctx context.Context, hostUUID string, source string) ([]string, error) { s.mu.Lock() s.GetHostEmailsFuncInvoked = true s.mu.Unlock() return s.GetHostEmailsFunc(ctx, hostUUID, source) } func (s *DataStore) SetOrUpdateHostDisksSpace(ctx context.Context, hostID uint, gigsAvailable float64, percentAvailable float64, gigsTotal float64, gigsAll *float64) error { s.mu.Lock() s.SetOrUpdateHostDisksSpaceFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateHostDisksSpaceFunc(ctx, hostID, gigsAvailable, percentAvailable, gigsTotal, gigsAll) } func (s *DataStore) GetConfigEnableDiskEncryption(ctx context.Context, teamID *uint) (fleet.DiskEncryptionConfig, error) { s.mu.Lock() s.GetConfigEnableDiskEncryptionFuncInvoked = true s.mu.Unlock() return s.GetConfigEnableDiskEncryptionFunc(ctx, teamID) } func (s *DataStore) SetOrUpdateHostDiskTpmPIN(ctx context.Context, hostID uint, pinSet bool) error { s.mu.Lock() s.SetOrUpdateHostDiskTpmPINFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateHostDiskTpmPINFunc(ctx, hostID, pinSet) } func (s *DataStore) SetOrUpdateHostDisksEncryption(ctx context.Context, hostID uint, encrypted bool) error { s.mu.Lock() s.SetOrUpdateHostDisksEncryptionFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateHostDisksEncryptionFunc(ctx, hostID, encrypted) } func (s *DataStore) SetOrUpdateHostDiskEncryptionKey(ctx context.Context, host *fleet.Host, encryptedBase64Key string, clientError string, decryptable *bool) (bool, error) { s.mu.Lock() s.SetOrUpdateHostDiskEncryptionKeyFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateHostDiskEncryptionKeyFunc(ctx, host, encryptedBase64Key, clientError, decryptable) } func (s *DataStore) SaveLUKSData(ctx context.Context, host *fleet.Host, encryptedBase64Passphrase string, encryptedBase64Salt string, keySlot uint) (bool, error) { s.mu.Lock() s.SaveLUKSDataFuncInvoked = true s.mu.Unlock() return s.SaveLUKSDataFunc(ctx, host, encryptedBase64Passphrase, encryptedBase64Salt, keySlot) } func (s *DataStore) DeleteLUKSData(ctx context.Context, hostID uint, keySlot uint) error { s.mu.Lock() s.DeleteLUKSDataFuncInvoked = true s.mu.Unlock() return s.DeleteLUKSDataFunc(ctx, hostID, keySlot) } func (s *DataStore) GetUnverifiedDiskEncryptionKeys(ctx context.Context) ([]fleet.HostDiskEncryptionKey, error) { s.mu.Lock() s.GetUnverifiedDiskEncryptionKeysFuncInvoked = true s.mu.Unlock() return s.GetUnverifiedDiskEncryptionKeysFunc(ctx) } func (s *DataStore) SetHostsDiskEncryptionKeyStatus(ctx context.Context, hostIDs []uint, decryptable bool, threshold time.Time) error { s.mu.Lock() s.SetHostsDiskEncryptionKeyStatusFuncInvoked = true s.mu.Unlock() return s.SetHostsDiskEncryptionKeyStatusFunc(ctx, hostIDs, decryptable, threshold) } func (s *DataStore) GetHostDiskEncryptionKey(ctx context.Context, hostID uint) (*fleet.HostDiskEncryptionKey, error) { s.mu.Lock() s.GetHostDiskEncryptionKeyFuncInvoked = true s.mu.Unlock() return s.GetHostDiskEncryptionKeyFunc(ctx, hostID) } func (s *DataStore) GetHostArchivedDiskEncryptionKey(ctx context.Context, host *fleet.Host) (*fleet.HostArchivedDiskEncryptionKey, error) { s.mu.Lock() s.GetHostArchivedDiskEncryptionKeyFuncInvoked = true s.mu.Unlock() return s.GetHostArchivedDiskEncryptionKeyFunc(ctx, host) } func (s *DataStore) IsHostDiskEncryptionKeyArchived(ctx context.Context, hostID uint) (bool, error) { s.mu.Lock() s.IsHostDiskEncryptionKeyArchivedFuncInvoked = true s.mu.Unlock() return s.IsHostDiskEncryptionKeyArchivedFunc(ctx, hostID) } func (s *DataStore) IsHostPendingEscrow(ctx context.Context, hostID uint) bool { s.mu.Lock() s.IsHostPendingEscrowFuncInvoked = true s.mu.Unlock() return s.IsHostPendingEscrowFunc(ctx, hostID) } func (s *DataStore) ClearPendingEscrow(ctx context.Context, hostID uint) error { s.mu.Lock() s.ClearPendingEscrowFuncInvoked = true s.mu.Unlock() return s.ClearPendingEscrowFunc(ctx, hostID) } func (s *DataStore) ReportEscrowError(ctx context.Context, hostID uint, err string) error { s.mu.Lock() s.ReportEscrowErrorFuncInvoked = true s.mu.Unlock() return s.ReportEscrowErrorFunc(ctx, hostID, err) } func (s *DataStore) QueueEscrow(ctx context.Context, hostID uint) error { s.mu.Lock() s.QueueEscrowFuncInvoked = true s.mu.Unlock() return s.QueueEscrowFunc(ctx, hostID) } func (s *DataStore) AssertHasNoEncryptionKeyStored(ctx context.Context, hostID uint) error { s.mu.Lock() s.AssertHasNoEncryptionKeyStoredFuncInvoked = true s.mu.Unlock() return s.AssertHasNoEncryptionKeyStoredFunc(ctx, hostID) } func (s *DataStore) GetHostCertAssociationsToExpire(ctx context.Context, expiryDays int, limit int) ([]fleet.SCEPIdentityAssociation, error) { s.mu.Lock() s.GetHostCertAssociationsToExpireFuncInvoked = true s.mu.Unlock() return s.GetHostCertAssociationsToExpireFunc(ctx, expiryDays, limit) } func (s *DataStore) SetCommandForPendingSCEPRenewal(ctx context.Context, assocs []fleet.SCEPIdentityAssociation, cmdUUID string) error { s.mu.Lock() s.SetCommandForPendingSCEPRenewalFuncInvoked = true s.mu.Unlock() return s.SetCommandForPendingSCEPRenewalFunc(ctx, assocs, cmdUUID) } func (s *DataStore) CleanSCEPRenewRefs(ctx context.Context, hostUUID string) error { s.mu.Lock() s.CleanSCEPRenewRefsFuncInvoked = true s.mu.Unlock() return s.CleanSCEPRenewRefsFunc(ctx, hostUUID) } func (s *DataStore) UpdateHostMDMProfilesVerification(ctx context.Context, host *fleet.Host, toVerify []string, toFail []string, toRetry []string) error { s.mu.Lock() s.UpdateHostMDMProfilesVerificationFuncInvoked = true s.mu.Unlock() return s.UpdateHostMDMProfilesVerificationFunc(ctx, host, toVerify, toFail, toRetry) } func (s *DataStore) GetHostMDMProfilesExpectedForVerification(ctx context.Context, host *fleet.Host) (map[string]*fleet.ExpectedMDMProfile, error) { s.mu.Lock() s.GetHostMDMProfilesExpectedForVerificationFuncInvoked = true s.mu.Unlock() return s.GetHostMDMProfilesExpectedForVerificationFunc(ctx, host) } func (s *DataStore) GetHostMDMProfilesRetryCounts(ctx context.Context, host *fleet.Host) ([]fleet.HostMDMProfileRetryCount, error) { s.mu.Lock() s.GetHostMDMProfilesRetryCountsFuncInvoked = true s.mu.Unlock() return s.GetHostMDMProfilesRetryCountsFunc(ctx, host) } func (s *DataStore) GetHostMDMProfileRetryCountByCommandUUID(ctx context.Context, host *fleet.Host, cmdUUID string) (fleet.HostMDMProfileRetryCount, error) { s.mu.Lock() s.GetHostMDMProfileRetryCountByCommandUUIDFuncInvoked = true s.mu.Unlock() return s.GetHostMDMProfileRetryCountByCommandUUIDFunc(ctx, host, cmdUUID) } func (s *DataStore) SetOrUpdateHostOrbitInfo(ctx context.Context, hostID uint, version string, desktopVersion sql.NullString, scriptsEnabled sql.NullBool) error { s.mu.Lock() s.SetOrUpdateHostOrbitInfoFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateHostOrbitInfoFunc(ctx, hostID, version, desktopVersion, scriptsEnabled) } func (s *DataStore) GetHostOrbitInfo(ctx context.Context, hostID uint) (*fleet.HostOrbitInfo, error) { s.mu.Lock() s.GetHostOrbitInfoFuncInvoked = true s.mu.Unlock() return s.GetHostOrbitInfoFunc(ctx, hostID) } func (s *DataStore) ReplaceHostDeviceMapping(ctx context.Context, id uint, mappings []*fleet.HostDeviceMapping, source string) error { s.mu.Lock() s.ReplaceHostDeviceMappingFuncInvoked = true s.mu.Unlock() return s.ReplaceHostDeviceMappingFunc(ctx, id, mappings, source) } func (s *DataStore) ReplaceHostBatteries(ctx context.Context, id uint, mappings []*fleet.HostBattery) error { s.mu.Lock() s.ReplaceHostBatteriesFuncInvoked = true s.mu.Unlock() return s.ReplaceHostBatteriesFunc(ctx, id, mappings) } func (s *DataStore) VerifyEnrollSecret(ctx context.Context, secret string) (*fleet.EnrollSecret, error) { s.mu.Lock() s.VerifyEnrollSecretFuncInvoked = true s.mu.Unlock() return s.VerifyEnrollSecretFunc(ctx, secret) } func (s *DataStore) IsEnrollSecretAvailable(ctx context.Context, secret string, isNew bool, teamID *uint) (bool, error) { s.mu.Lock() s.IsEnrollSecretAvailableFuncInvoked = true s.mu.Unlock() return s.IsEnrollSecretAvailableFunc(ctx, secret, isNew, teamID) } func (s *DataStore) EnrollOsquery(ctx context.Context, opts ...fleet.DatastoreEnrollOsqueryOption) (*fleet.Host, error) { s.mu.Lock() s.EnrollOsqueryFuncInvoked = true s.mu.Unlock() return s.EnrollOsqueryFunc(ctx, opts...) } func (s *DataStore) EnrollOrbit(ctx context.Context, opts ...fleet.DatastoreEnrollOrbitOption) (*fleet.Host, error) { s.mu.Lock() s.EnrollOrbitFuncInvoked = true s.mu.Unlock() return s.EnrollOrbitFunc(ctx, opts...) } func (s *DataStore) SerialUpdateHost(ctx context.Context, host *fleet.Host) error { s.mu.Lock() s.SerialUpdateHostFuncInvoked = true s.mu.Unlock() return s.SerialUpdateHostFunc(ctx, host) } func (s *DataStore) NewJob(ctx context.Context, job *fleet.Job) (*fleet.Job, error) { s.mu.Lock() s.NewJobFuncInvoked = true s.mu.Unlock() return s.NewJobFunc(ctx, job) } func (s *DataStore) GetQueuedJobs(ctx context.Context, maxNumJobs int, now time.Time) ([]*fleet.Job, error) { s.mu.Lock() s.GetQueuedJobsFuncInvoked = true s.mu.Unlock() return s.GetQueuedJobsFunc(ctx, maxNumJobs, now) } func (s *DataStore) GetFilteredQueuedJobs(ctx context.Context, maxNumJobs int, now time.Time, jobNames []string) ([]*fleet.Job, error) { s.mu.Lock() s.GetFilteredQueuedJobsFuncInvoked = true s.mu.Unlock() return s.GetFilteredQueuedJobsFunc(ctx, maxNumJobs, now, jobNames) } func (s *DataStore) UpdateJob(ctx context.Context, id uint, job *fleet.Job) (*fleet.Job, error) { s.mu.Lock() s.UpdateJobFuncInvoked = true s.mu.Unlock() return s.UpdateJobFunc(ctx, id, job) } func (s *DataStore) CleanupWorkerJobs(ctx context.Context, failedSince time.Duration, completedSince time.Duration) (int64, error) { s.mu.Lock() s.CleanupWorkerJobsFuncInvoked = true s.mu.Unlock() return s.CleanupWorkerJobsFunc(ctx, failedSince, completedSince) } func (s *DataStore) GetJob(ctx context.Context, jobID uint) (*fleet.Job, error) { s.mu.Lock() s.GetJobFuncInvoked = true s.mu.Unlock() return s.GetJobFunc(ctx, jobID) } func (s *DataStore) InnoDBStatus(ctx context.Context) (string, error) { s.mu.Lock() s.InnoDBStatusFuncInvoked = true s.mu.Unlock() return s.InnoDBStatusFunc(ctx) } func (s *DataStore) ProcessList(ctx context.Context) ([]fleet.MySQLProcess, error) { s.mu.Lock() s.ProcessListFuncInvoked = true s.mu.Unlock() return s.ProcessListFunc(ctx) } func (s *DataStore) ListWindowsUpdatesByHostID(ctx context.Context, hostID uint) ([]fleet.WindowsUpdate, error) { s.mu.Lock() s.ListWindowsUpdatesByHostIDFuncInvoked = true s.mu.Unlock() return s.ListWindowsUpdatesByHostIDFunc(ctx, hostID) } func (s *DataStore) InsertWindowsUpdates(ctx context.Context, hostID uint, updates []fleet.WindowsUpdate) error { s.mu.Lock() s.InsertWindowsUpdatesFuncInvoked = true s.mu.Unlock() return s.InsertWindowsUpdatesFunc(ctx, hostID, updates) } func (s *DataStore) ListOSVulnerabilitiesByOS(ctx context.Context, osID uint) ([]fleet.OSVulnerability, error) { s.mu.Lock() s.ListOSVulnerabilitiesByOSFuncInvoked = true s.mu.Unlock() return s.ListOSVulnerabilitiesByOSFunc(ctx, osID) } func (s *DataStore) ListVulnsByOsNameAndVersion(ctx context.Context, name string, version string, includeCVSS bool, teamID *uint, maxVulnerabilities *int) (fleet.OSVulnerabilitiesWithCount, error) { s.mu.Lock() s.ListVulnsByOsNameAndVersionFuncInvoked = true s.mu.Unlock() return s.ListVulnsByOsNameAndVersionFunc(ctx, name, version, includeCVSS, teamID, maxVulnerabilities) } func (s *DataStore) ListVulnsByMultipleOSVersions(ctx context.Context, osVersions []fleet.OSVersion, includeCVSS bool, teamID *uint, maxVulnerabilities *int) (map[string]fleet.OSVulnerabilitiesWithCount, error) { s.mu.Lock() s.ListVulnsByMultipleOSVersionsFuncInvoked = true s.mu.Unlock() return s.ListVulnsByMultipleOSVersionsFunc(ctx, osVersions, includeCVSS, teamID, maxVulnerabilities) } func (s *DataStore) InsertOSVulnerabilities(ctx context.Context, vulnerabilities []fleet.OSVulnerability, source fleet.VulnerabilitySource) (int64, error) { s.mu.Lock() s.InsertOSVulnerabilitiesFuncInvoked = true s.mu.Unlock() return s.InsertOSVulnerabilitiesFunc(ctx, vulnerabilities, source) } func (s *DataStore) DeleteOSVulnerabilities(ctx context.Context, vulnerabilities []fleet.OSVulnerability) error { s.mu.Lock() s.DeleteOSVulnerabilitiesFuncInvoked = true s.mu.Unlock() return s.DeleteOSVulnerabilitiesFunc(ctx, vulnerabilities) } func (s *DataStore) InsertOSVulnerability(ctx context.Context, vuln fleet.OSVulnerability, source fleet.VulnerabilitySource) (bool, error) { s.mu.Lock() s.InsertOSVulnerabilityFuncInvoked = true s.mu.Unlock() return s.InsertOSVulnerabilityFunc(ctx, vuln, source) } func (s *DataStore) DeleteOutOfDateOSVulnerabilities(ctx context.Context, source fleet.VulnerabilitySource, olderThan time.Time) error { s.mu.Lock() s.DeleteOutOfDateOSVulnerabilitiesFuncInvoked = true s.mu.Unlock() return s.DeleteOutOfDateOSVulnerabilitiesFunc(ctx, source, olderThan) } func (s *DataStore) ListKernelsByOS(ctx context.Context, osID uint, teamID *uint) ([]*fleet.Kernel, error) { s.mu.Lock() s.ListKernelsByOSFuncInvoked = true s.mu.Unlock() return s.ListKernelsByOSFunc(ctx, osID, teamID) } func (s *DataStore) InsertKernelSoftwareMapping(ctx context.Context) error { s.mu.Lock() s.InsertKernelSoftwareMappingFuncInvoked = true s.mu.Unlock() return s.InsertKernelSoftwareMappingFunc(ctx) } func (s *DataStore) ListVulnerabilities(ctx context.Context, opt fleet.VulnListOptions) ([]fleet.VulnerabilityWithMetadata, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListVulnerabilitiesFuncInvoked = true s.mu.Unlock() return s.ListVulnerabilitiesFunc(ctx, opt) } func (s *DataStore) Vulnerability(ctx context.Context, cve string, teamID *uint, includeCVEScores bool) (*fleet.VulnerabilityWithMetadata, error) { s.mu.Lock() s.VulnerabilityFuncInvoked = true s.mu.Unlock() return s.VulnerabilityFunc(ctx, cve, teamID, includeCVEScores) } func (s *DataStore) CountVulnerabilities(ctx context.Context, opt fleet.VulnListOptions) (uint, error) { s.mu.Lock() s.CountVulnerabilitiesFuncInvoked = true s.mu.Unlock() return s.CountVulnerabilitiesFunc(ctx, opt) } func (s *DataStore) UpdateVulnerabilityHostCounts(ctx context.Context, maxRoutines int) error { s.mu.Lock() s.UpdateVulnerabilityHostCountsFuncInvoked = true s.mu.Unlock() return s.UpdateVulnerabilityHostCountsFunc(ctx, maxRoutines) } func (s *DataStore) IsCVEKnownToFleet(ctx context.Context, cve string) (bool, error) { s.mu.Lock() s.IsCVEKnownToFleetFuncInvoked = true s.mu.Unlock() return s.IsCVEKnownToFleetFunc(ctx, cve) } func (s *DataStore) NewMDMAppleConfigProfile(ctx context.Context, p fleet.MDMAppleConfigProfile, usesFleetVars []fleet.FleetVarName) (*fleet.MDMAppleConfigProfile, error) { s.mu.Lock() s.NewMDMAppleConfigProfileFuncInvoked = true s.mu.Unlock() return s.NewMDMAppleConfigProfileFunc(ctx, p, usesFleetVars) } func (s *DataStore) BulkUpsertMDMAppleConfigProfiles(ctx context.Context, payload []*fleet.MDMAppleConfigProfile) error { s.mu.Lock() s.BulkUpsertMDMAppleConfigProfilesFuncInvoked = true s.mu.Unlock() return s.BulkUpsertMDMAppleConfigProfilesFunc(ctx, payload) } func (s *DataStore) GetMDMAppleConfigProfileByDeprecatedID(ctx context.Context, profileID uint) (*fleet.MDMAppleConfigProfile, error) { s.mu.Lock() s.GetMDMAppleConfigProfileByDeprecatedIDFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleConfigProfileByDeprecatedIDFunc(ctx, profileID) } func (s *DataStore) GetMDMAppleConfigProfile(ctx context.Context, profileUUID string) (*fleet.MDMAppleConfigProfile, error) { s.mu.Lock() s.GetMDMAppleConfigProfileFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleConfigProfileFunc(ctx, profileUUID) } func (s *DataStore) GetMDMAppleDeclaration(ctx context.Context, declUUID string) (*fleet.MDMAppleDeclaration, error) { s.mu.Lock() s.GetMDMAppleDeclarationFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleDeclarationFunc(ctx, declUUID) } func (s *DataStore) ListMDMAppleConfigProfiles(ctx context.Context, teamID *uint) ([]*fleet.MDMAppleConfigProfile, error) { s.mu.Lock() s.ListMDMAppleConfigProfilesFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleConfigProfilesFunc(ctx, teamID) } func (s *DataStore) DeleteMDMAppleConfigProfileByDeprecatedID(ctx context.Context, profileID uint) error { s.mu.Lock() s.DeleteMDMAppleConfigProfileByDeprecatedIDFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAppleConfigProfileByDeprecatedIDFunc(ctx, profileID) } func (s *DataStore) DeleteMDMAppleConfigProfile(ctx context.Context, profileUUID string) error { s.mu.Lock() s.DeleteMDMAppleConfigProfileFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAppleConfigProfileFunc(ctx, profileUUID) } func (s *DataStore) DeleteMDMAppleDeclaration(ctx context.Context, declUUID string) error { s.mu.Lock() s.DeleteMDMAppleDeclarationFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAppleDeclarationFunc(ctx, declUUID) } func (s *DataStore) DeleteMDMAppleDeclarationByName(ctx context.Context, teamID *uint, name string) error { s.mu.Lock() s.DeleteMDMAppleDeclarationByNameFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAppleDeclarationByNameFunc(ctx, teamID, name) } func (s *DataStore) BulkDeleteMDMAppleHostsConfigProfiles(ctx context.Context, payload []*fleet.MDMAppleProfilePayload) error { s.mu.Lock() s.BulkDeleteMDMAppleHostsConfigProfilesFuncInvoked = true s.mu.Unlock() return s.BulkDeleteMDMAppleHostsConfigProfilesFunc(ctx, payload) } func (s *DataStore) DeleteMDMAppleConfigProfileByTeamAndIdentifier(ctx context.Context, teamID *uint, profileIdentifier string) error { s.mu.Lock() s.DeleteMDMAppleConfigProfileByTeamAndIdentifierFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAppleConfigProfileByTeamAndIdentifierFunc(ctx, teamID, profileIdentifier) } func (s *DataStore) GetHostMDMAppleProfiles(ctx context.Context, hostUUID string) ([]fleet.HostMDMAppleProfile, error) { s.mu.Lock() s.GetHostMDMAppleProfilesFuncInvoked = true s.mu.Unlock() return s.GetHostMDMAppleProfilesFunc(ctx, hostUUID) } func (s *DataStore) CleanupDiskEncryptionKeysOnTeamChange(ctx context.Context, hostIDs []uint, newTeamID *uint) error { s.mu.Lock() s.CleanupDiskEncryptionKeysOnTeamChangeFuncInvoked = true s.mu.Unlock() return s.CleanupDiskEncryptionKeysOnTeamChangeFunc(ctx, hostIDs, newTeamID) } func (s *DataStore) NewMDMAppleEnrollmentProfile(ctx context.Context, enrollmentPayload fleet.MDMAppleEnrollmentProfilePayload) (*fleet.MDMAppleEnrollmentProfile, error) { s.mu.Lock() s.NewMDMAppleEnrollmentProfileFuncInvoked = true s.mu.Unlock() return s.NewMDMAppleEnrollmentProfileFunc(ctx, enrollmentPayload) } func (s *DataStore) GetMDMAppleEnrollmentProfileByToken(ctx context.Context, token string) (*fleet.MDMAppleEnrollmentProfile, error) { s.mu.Lock() s.GetMDMAppleEnrollmentProfileByTokenFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleEnrollmentProfileByTokenFunc(ctx, token) } func (s *DataStore) GetMDMAppleEnrollmentProfileByType(ctx context.Context, typ fleet.MDMAppleEnrollmentType) (*fleet.MDMAppleEnrollmentProfile, error) { s.mu.Lock() s.GetMDMAppleEnrollmentProfileByTypeFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleEnrollmentProfileByTypeFunc(ctx, typ) } func (s *DataStore) ListMDMAppleEnrollmentProfiles(ctx context.Context) ([]*fleet.MDMAppleEnrollmentProfile, error) { s.mu.Lock() s.ListMDMAppleEnrollmentProfilesFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleEnrollmentProfilesFunc(ctx) } func (s *DataStore) GetMDMAppleCommandResults(ctx context.Context, commandUUID string, hostUUID string) ([]*fleet.MDMCommandResult, error) { s.mu.Lock() s.GetMDMAppleCommandResultsFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleCommandResultsFunc(ctx, commandUUID, hostUUID) } func (s *DataStore) GetVPPCommandResults(ctx context.Context, commandUUID string, hostUUID string) ([]*fleet.MDMCommandResult, error) { s.mu.Lock() s.GetVPPCommandResultsFuncInvoked = true s.mu.Unlock() return s.GetVPPCommandResultsFunc(ctx, commandUUID, hostUUID) } func (s *DataStore) ListMDMAppleCommands(ctx context.Context, tmFilter fleet.TeamFilter, listOpts *fleet.MDMCommandListOptions) ([]*fleet.MDMAppleCommand, error) { s.mu.Lock() s.ListMDMAppleCommandsFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleCommandsFunc(ctx, tmFilter, listOpts) } func (s *DataStore) NewMDMAppleInstaller(ctx context.Context, name string, size int64, manifest string, installer []byte, urlToken string) (*fleet.MDMAppleInstaller, error) { s.mu.Lock() s.NewMDMAppleInstallerFuncInvoked = true s.mu.Unlock() return s.NewMDMAppleInstallerFunc(ctx, name, size, manifest, installer, urlToken) } func (s *DataStore) MDMAppleInstaller(ctx context.Context, token string) (*fleet.MDMAppleInstaller, error) { s.mu.Lock() s.MDMAppleInstallerFuncInvoked = true s.mu.Unlock() return s.MDMAppleInstallerFunc(ctx, token) } func (s *DataStore) MDMAppleInstallerDetailsByID(ctx context.Context, id uint) (*fleet.MDMAppleInstaller, error) { s.mu.Lock() s.MDMAppleInstallerDetailsByIDFuncInvoked = true s.mu.Unlock() return s.MDMAppleInstallerDetailsByIDFunc(ctx, id) } func (s *DataStore) DeleteMDMAppleInstaller(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteMDMAppleInstallerFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAppleInstallerFunc(ctx, id) } func (s *DataStore) MDMAppleInstallerDetailsByToken(ctx context.Context, token string) (*fleet.MDMAppleInstaller, error) { s.mu.Lock() s.MDMAppleInstallerDetailsByTokenFuncInvoked = true s.mu.Unlock() return s.MDMAppleInstallerDetailsByTokenFunc(ctx, token) } func (s *DataStore) ListMDMAppleInstallers(ctx context.Context) ([]fleet.MDMAppleInstaller, error) { s.mu.Lock() s.ListMDMAppleInstallersFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleInstallersFunc(ctx) } func (s *DataStore) BatchSetMDMAppleProfiles(ctx context.Context, tmID *uint, profiles []*fleet.MDMAppleConfigProfile) error { s.mu.Lock() s.BatchSetMDMAppleProfilesFuncInvoked = true s.mu.Unlock() return s.BatchSetMDMAppleProfilesFunc(ctx, tmID, profiles) } func (s *DataStore) MDMAppleListDevices(ctx context.Context) ([]fleet.MDMAppleDevice, error) { s.mu.Lock() s.MDMAppleListDevicesFuncInvoked = true s.mu.Unlock() return s.MDMAppleListDevicesFunc(ctx) } func (s *DataStore) UpsertMDMAppleHostDEPAssignments(ctx context.Context, hosts []fleet.Host, abmTokenID uint, mdmMigrationDeadlinesByHostID map[uint]time.Time) error { s.mu.Lock() s.UpsertMDMAppleHostDEPAssignmentsFuncInvoked = true s.mu.Unlock() return s.UpsertMDMAppleHostDEPAssignmentsFunc(ctx, hosts, abmTokenID, mdmMigrationDeadlinesByHostID) } func (s *DataStore) IngestMDMAppleDevicesFromDEPSync(ctx context.Context, devices []godep.Device, abmTokenID uint, macOSTeam *fleet.Team, iosTeam *fleet.Team, ipadTeam *fleet.Team) (int64, error) { s.mu.Lock() s.IngestMDMAppleDevicesFromDEPSyncFuncInvoked = true s.mu.Unlock() return s.IngestMDMAppleDevicesFromDEPSyncFunc(ctx, devices, abmTokenID, macOSTeam, iosTeam, ipadTeam) } func (s *DataStore) SetHostMDMMigrationCompleted(ctx context.Context, hostID uint) error { s.mu.Lock() s.SetHostMDMMigrationCompletedFuncInvoked = true s.mu.Unlock() return s.SetHostMDMMigrationCompletedFunc(ctx, hostID) } func (s *DataStore) IngestMDMAppleDeviceFromOTAEnrollment(ctx context.Context, teamID *uint, idpUUID string, deviceInfo fleet.MDMAppleMachineInfo) error { s.mu.Lock() s.IngestMDMAppleDeviceFromOTAEnrollmentFuncInvoked = true s.mu.Unlock() return s.IngestMDMAppleDeviceFromOTAEnrollmentFunc(ctx, teamID, idpUUID, deviceInfo) } func (s *DataStore) MDMAppleUpsertHost(ctx context.Context, mdmHost *fleet.Host, fromPersonalEnrollment bool) error { s.mu.Lock() s.MDMAppleUpsertHostFuncInvoked = true s.mu.Unlock() return s.MDMAppleUpsertHostFunc(ctx, mdmHost, fromPersonalEnrollment) } func (s *DataStore) RestoreMDMApplePendingDEPHost(ctx context.Context, host *fleet.Host) error { s.mu.Lock() s.RestoreMDMApplePendingDEPHostFuncInvoked = true s.mu.Unlock() return s.RestoreMDMApplePendingDEPHostFunc(ctx, host) } func (s *DataStore) MDMResetEnrollment(ctx context.Context, hostUUID string, scepRenewalInProgress bool) error { s.mu.Lock() s.MDMResetEnrollmentFuncInvoked = true s.mu.Unlock() return s.MDMResetEnrollmentFunc(ctx, hostUUID, scepRenewalInProgress) } func (s *DataStore) ListMDMAppleDEPSerialsInTeam(ctx context.Context, teamID *uint) ([]string, error) { s.mu.Lock() s.ListMDMAppleDEPSerialsInTeamFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleDEPSerialsInTeamFunc(ctx, teamID) } func (s *DataStore) ListMDMAppleDEPSerialsInHostIDs(ctx context.Context, hostIDs []uint) ([]string, error) { s.mu.Lock() s.ListMDMAppleDEPSerialsInHostIDsFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleDEPSerialsInHostIDsFunc(ctx, hostIDs) } func (s *DataStore) GetHostDEPAssignment(ctx context.Context, hostID uint) (*fleet.HostDEPAssignment, error) { s.mu.Lock() s.GetHostDEPAssignmentFuncInvoked = true s.mu.Unlock() return s.GetHostDEPAssignmentFunc(ctx, hostID) } func (s *DataStore) GetNanoMDMEnrollment(ctx context.Context, id string) (*fleet.NanoEnrollment, error) { s.mu.Lock() s.GetNanoMDMEnrollmentFuncInvoked = true s.mu.Unlock() return s.GetNanoMDMEnrollmentFunc(ctx, id) } func (s *DataStore) GetNanoMDMUserEnrollment(ctx context.Context, id string) (*fleet.NanoEnrollment, error) { s.mu.Lock() s.GetNanoMDMUserEnrollmentFuncInvoked = true s.mu.Unlock() return s.GetNanoMDMUserEnrollmentFunc(ctx, id) } func (s *DataStore) GetNanoMDMUserEnrollmentUsernameAndUUID(ctx context.Context, deviceID string) (string, string, error) { s.mu.Lock() s.GetNanoMDMUserEnrollmentUsernameAndUUIDFuncInvoked = true s.mu.Unlock() return s.GetNanoMDMUserEnrollmentUsernameAndUUIDFunc(ctx, deviceID) } func (s *DataStore) UpdateNanoMDMUserEnrollmentUsername(ctx context.Context, deviceID string, userUUID string, username string) error { s.mu.Lock() s.UpdateNanoMDMUserEnrollmentUsernameFuncInvoked = true s.mu.Unlock() return s.UpdateNanoMDMUserEnrollmentUsernameFunc(ctx, deviceID, userUUID, username) } func (s *DataStore) GetNanoMDMEnrollmentTimes(ctx context.Context, hostUUID string) (*time.Time, *time.Time, error) { s.mu.Lock() s.GetNanoMDMEnrollmentTimesFuncInvoked = true s.mu.Unlock() return s.GetNanoMDMEnrollmentTimesFunc(ctx, hostUUID) } func (s *DataStore) IncreasePolicyAutomationIteration(ctx context.Context, policyID uint) error { s.mu.Lock() s.IncreasePolicyAutomationIterationFuncInvoked = true s.mu.Unlock() return s.IncreasePolicyAutomationIterationFunc(ctx, policyID) } func (s *DataStore) OutdatedAutomationBatch(ctx context.Context) ([]fleet.PolicyFailure, error) { s.mu.Lock() s.OutdatedAutomationBatchFuncInvoked = true s.mu.Unlock() return s.OutdatedAutomationBatchFunc(ctx) } func (s *DataStore) ListMDMAppleProfilesToInstall(ctx context.Context, hostUUID string) ([]*fleet.MDMAppleProfilePayload, error) { s.mu.Lock() s.ListMDMAppleProfilesToInstallFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleProfilesToInstallFunc(ctx, hostUUID) } func (s *DataStore) ListMDMAppleProfilesToRemove(ctx context.Context) ([]*fleet.MDMAppleProfilePayload, error) { s.mu.Lock() s.ListMDMAppleProfilesToRemoveFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleProfilesToRemoveFunc(ctx) } func (s *DataStore) ListMDMAppleProfilesToInstallAndRemove(ctx context.Context) ([]*fleet.MDMAppleProfilePayload, []*fleet.MDMAppleProfilePayload, error) { s.mu.Lock() s.ListMDMAppleProfilesToInstallAndRemoveFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleProfilesToInstallAndRemoveFunc(ctx) } func (s *DataStore) BulkUpsertMDMAppleHostProfiles(ctx context.Context, payload []*fleet.MDMAppleBulkUpsertHostProfilePayload) error { s.mu.Lock() s.BulkUpsertMDMAppleHostProfilesFuncInvoked = true s.mu.Unlock() return s.BulkUpsertMDMAppleHostProfilesFunc(ctx, payload) } func (s *DataStore) BulkSetPendingMDMHostProfiles(ctx context.Context, hostIDs []uint, teamIDs []uint, profileUUIDs []string, hostUUIDs []string) (updates fleet.MDMProfilesUpdates, err error) { s.mu.Lock() s.BulkSetPendingMDMHostProfilesFuncInvoked = true s.mu.Unlock() return s.BulkSetPendingMDMHostProfilesFunc(ctx, hostIDs, teamIDs, profileUUIDs, hostUUIDs) } func (s *DataStore) GetMDMAppleProfilesContents(ctx context.Context, profileUUIDs []string) (map[string]mobileconfig.Mobileconfig, error) { s.mu.Lock() s.GetMDMAppleProfilesContentsFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleProfilesContentsFunc(ctx, profileUUIDs) } func (s *DataStore) UpdateOrDeleteHostMDMAppleProfile(ctx context.Context, profile *fleet.HostMDMAppleProfile) error { s.mu.Lock() s.UpdateOrDeleteHostMDMAppleProfileFuncInvoked = true s.mu.Unlock() return s.UpdateOrDeleteHostMDMAppleProfileFunc(ctx, profile) } func (s *DataStore) GetMDMAppleCommandRequestType(ctx context.Context, commandUUID string) (string, error) { s.mu.Lock() s.GetMDMAppleCommandRequestTypeFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleCommandRequestTypeFunc(ctx, commandUUID) } func (s *DataStore) GetMDMAppleProfilesSummary(ctx context.Context, teamID *uint) (*fleet.MDMProfilesSummary, error) { s.mu.Lock() s.GetMDMAppleProfilesSummaryFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleProfilesSummaryFunc(ctx, teamID) } func (s *DataStore) InsertMDMIdPAccount(ctx context.Context, account *fleet.MDMIdPAccount) error { s.mu.Lock() s.InsertMDMIdPAccountFuncInvoked = true s.mu.Unlock() return s.InsertMDMIdPAccountFunc(ctx, account) } func (s *DataStore) AssociateHostMDMIdPAccountDB(ctx context.Context, hostUUID string, acctUUID string) error { s.mu.Lock() s.AssociateHostMDMIdPAccountDBFuncInvoked = true s.mu.Unlock() return s.AssociateHostMDMIdPAccountDBFunc(ctx, hostUUID, acctUUID) } func (s *DataStore) GetMDMIdPAccountByUUID(ctx context.Context, uuid string) (*fleet.MDMIdPAccount, error) { s.mu.Lock() s.GetMDMIdPAccountByUUIDFuncInvoked = true s.mu.Unlock() return s.GetMDMIdPAccountByUUIDFunc(ctx, uuid) } func (s *DataStore) GetMDMIdPAccountByEmail(ctx context.Context, email string) (*fleet.MDMIdPAccount, error) { s.mu.Lock() s.GetMDMIdPAccountByEmailFuncInvoked = true s.mu.Unlock() return s.GetMDMIdPAccountByEmailFunc(ctx, email) } func (s *DataStore) GetMDMIdPAccountsByHostUUIDs(ctx context.Context, hostUUIDs []string) (map[string]*fleet.MDMIdPAccount, error) { s.mu.Lock() s.GetMDMIdPAccountsByHostUUIDsFuncInvoked = true s.mu.Unlock() return s.GetMDMIdPAccountsByHostUUIDsFunc(ctx, hostUUIDs) } func (s *DataStore) GetMDMAppleFileVaultSummary(ctx context.Context, teamID *uint) (*fleet.MDMAppleFileVaultSummary, error) { s.mu.Lock() s.GetMDMAppleFileVaultSummaryFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleFileVaultSummaryFunc(ctx, teamID) } func (s *DataStore) InsertMDMAppleBootstrapPackage(ctx context.Context, bp *fleet.MDMAppleBootstrapPackage, pkgStore fleet.MDMBootstrapPackageStore) error { s.mu.Lock() s.InsertMDMAppleBootstrapPackageFuncInvoked = true s.mu.Unlock() return s.InsertMDMAppleBootstrapPackageFunc(ctx, bp, pkgStore) } func (s *DataStore) CopyDefaultMDMAppleBootstrapPackage(ctx context.Context, ac *fleet.AppConfig, toTeamID uint) error { s.mu.Lock() s.CopyDefaultMDMAppleBootstrapPackageFuncInvoked = true s.mu.Unlock() return s.CopyDefaultMDMAppleBootstrapPackageFunc(ctx, ac, toTeamID) } func (s *DataStore) DeleteMDMAppleBootstrapPackage(ctx context.Context, teamID uint) error { s.mu.Lock() s.DeleteMDMAppleBootstrapPackageFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAppleBootstrapPackageFunc(ctx, teamID) } func (s *DataStore) GetMDMAppleBootstrapPackageMeta(ctx context.Context, teamID uint) (*fleet.MDMAppleBootstrapPackage, error) { s.mu.Lock() s.GetMDMAppleBootstrapPackageMetaFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleBootstrapPackageMetaFunc(ctx, teamID) } func (s *DataStore) GetMDMAppleBootstrapPackageBytes(ctx context.Context, token string, pkgStore fleet.MDMBootstrapPackageStore) (*fleet.MDMAppleBootstrapPackage, error) { s.mu.Lock() s.GetMDMAppleBootstrapPackageBytesFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleBootstrapPackageBytesFunc(ctx, token, pkgStore) } func (s *DataStore) GetMDMAppleBootstrapPackageSummary(ctx context.Context, teamID uint) (*fleet.MDMAppleBootstrapPackageSummary, error) { s.mu.Lock() s.GetMDMAppleBootstrapPackageSummaryFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleBootstrapPackageSummaryFunc(ctx, teamID) } func (s *DataStore) RecordHostBootstrapPackage(ctx context.Context, commandUUID string, hostUUID string) error { s.mu.Lock() s.RecordHostBootstrapPackageFuncInvoked = true s.mu.Unlock() return s.RecordHostBootstrapPackageFunc(ctx, commandUUID, hostUUID) } func (s *DataStore) RecordSkippedHostBootstrapPackage(ctx context.Context, hostUUID string) error { s.mu.Lock() s.RecordSkippedHostBootstrapPackageFuncInvoked = true s.mu.Unlock() return s.RecordSkippedHostBootstrapPackageFunc(ctx, hostUUID) } func (s *DataStore) GetHostBootstrapPackageCommand(ctx context.Context, hostUUID string) (string, error) { s.mu.Lock() s.GetHostBootstrapPackageCommandFuncInvoked = true s.mu.Unlock() return s.GetHostBootstrapPackageCommandFunc(ctx, hostUUID) } func (s *DataStore) CleanupUnusedBootstrapPackages(ctx context.Context, pkgStore fleet.MDMBootstrapPackageStore, removeCreatedBefore time.Time) error { s.mu.Lock() s.CleanupUnusedBootstrapPackagesFuncInvoked = true s.mu.Unlock() return s.CleanupUnusedBootstrapPackagesFunc(ctx, pkgStore, removeCreatedBefore) } func (s *DataStore) GetHostMDMMacOSSetup(ctx context.Context, hostID uint) (*fleet.HostMDMMacOSSetup, error) { s.mu.Lock() s.GetHostMDMMacOSSetupFuncInvoked = true s.mu.Unlock() return s.GetHostMDMMacOSSetupFunc(ctx, hostID) } func (s *DataStore) MDMGetEULAMetadata(ctx context.Context) (*fleet.MDMEULA, error) { s.mu.Lock() s.MDMGetEULAMetadataFuncInvoked = true s.mu.Unlock() return s.MDMGetEULAMetadataFunc(ctx) } func (s *DataStore) MDMGetEULABytes(ctx context.Context, token string) (*fleet.MDMEULA, error) { s.mu.Lock() s.MDMGetEULABytesFuncInvoked = true s.mu.Unlock() return s.MDMGetEULABytesFunc(ctx, token) } func (s *DataStore) MDMInsertEULA(ctx context.Context, eula *fleet.MDMEULA) error { s.mu.Lock() s.MDMInsertEULAFuncInvoked = true s.mu.Unlock() return s.MDMInsertEULAFunc(ctx, eula) } func (s *DataStore) MDMDeleteEULA(ctx context.Context, token string) error { s.mu.Lock() s.MDMDeleteEULAFuncInvoked = true s.mu.Unlock() return s.MDMDeleteEULAFunc(ctx, token) } func (s *DataStore) SetOrUpdateMDMAppleSetupAssistant(ctx context.Context, asst *fleet.MDMAppleSetupAssistant) (*fleet.MDMAppleSetupAssistant, error) { s.mu.Lock() s.SetOrUpdateMDMAppleSetupAssistantFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateMDMAppleSetupAssistantFunc(ctx, asst) } func (s *DataStore) GetMDMAppleSetupAssistant(ctx context.Context, teamID *uint) (*fleet.MDMAppleSetupAssistant, error) { s.mu.Lock() s.GetMDMAppleSetupAssistantFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleSetupAssistantFunc(ctx, teamID) } func (s *DataStore) GetMDMAppleSetupAssistantProfileForABMToken(ctx context.Context, teamID *uint, abmTokenOrgName string) (string, time.Time, error) { s.mu.Lock() s.GetMDMAppleSetupAssistantProfileForABMTokenFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleSetupAssistantProfileForABMTokenFunc(ctx, teamID, abmTokenOrgName) } func (s *DataStore) DeleteMDMAppleSetupAssistant(ctx context.Context, teamID *uint) error { s.mu.Lock() s.DeleteMDMAppleSetupAssistantFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAppleSetupAssistantFunc(ctx, teamID) } func (s *DataStore) SetMDMAppleSetupAssistantProfileUUID(ctx context.Context, teamID *uint, profileUUID string, abmTokenOrgName string) error { s.mu.Lock() s.SetMDMAppleSetupAssistantProfileUUIDFuncInvoked = true s.mu.Unlock() return s.SetMDMAppleSetupAssistantProfileUUIDFunc(ctx, teamID, profileUUID, abmTokenOrgName) } func (s *DataStore) SetMDMAppleDefaultSetupAssistantProfileUUID(ctx context.Context, teamID *uint, profileUUID string, abmTokenOrgName string) error { s.mu.Lock() s.SetMDMAppleDefaultSetupAssistantProfileUUIDFuncInvoked = true s.mu.Unlock() return s.SetMDMAppleDefaultSetupAssistantProfileUUIDFunc(ctx, teamID, profileUUID, abmTokenOrgName) } func (s *DataStore) GetMDMAppleDefaultSetupAssistant(ctx context.Context, teamID *uint, abmTokenOrgName string) (profileUUID string, updatedAt time.Time, err error) { s.mu.Lock() s.GetMDMAppleDefaultSetupAssistantFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleDefaultSetupAssistantFunc(ctx, teamID, abmTokenOrgName) } func (s *DataStore) GetMatchingHostSerials(ctx context.Context, serials []string) (map[string]*fleet.Host, error) { s.mu.Lock() s.GetMatchingHostSerialsFuncInvoked = true s.mu.Unlock() return s.GetMatchingHostSerialsFunc(ctx, serials) } func (s *DataStore) GetMatchingHostSerialsMarkedDeleted(ctx context.Context, serials []string) (map[string]struct{}, error) { s.mu.Lock() s.GetMatchingHostSerialsMarkedDeletedFuncInvoked = true s.mu.Unlock() return s.GetMatchingHostSerialsMarkedDeletedFunc(ctx, serials) } func (s *DataStore) DeleteHostDEPAssignmentsFromAnotherABM(ctx context.Context, abmTokenID uint, serials []string) error { s.mu.Lock() s.DeleteHostDEPAssignmentsFromAnotherABMFuncInvoked = true s.mu.Unlock() return s.DeleteHostDEPAssignmentsFromAnotherABMFunc(ctx, abmTokenID, serials) } func (s *DataStore) DeleteHostDEPAssignments(ctx context.Context, abmTokenID uint, serials []string) error { s.mu.Lock() s.DeleteHostDEPAssignmentsFuncInvoked = true s.mu.Unlock() return s.DeleteHostDEPAssignmentsFunc(ctx, abmTokenID, serials) } func (s *DataStore) UpdateHostDEPAssignProfileResponses(ctx context.Context, resp *godep.ProfileResponse, abmTokenID uint) error { s.mu.Lock() s.UpdateHostDEPAssignProfileResponsesFuncInvoked = true s.mu.Unlock() return s.UpdateHostDEPAssignProfileResponsesFunc(ctx, resp, abmTokenID) } func (s *DataStore) UpdateHostDEPAssignProfileResponsesSameABM(ctx context.Context, resp *godep.ProfileResponse) error { s.mu.Lock() s.UpdateHostDEPAssignProfileResponsesSameABMFuncInvoked = true s.mu.Unlock() return s.UpdateHostDEPAssignProfileResponsesSameABMFunc(ctx, resp) } func (s *DataStore) ScreenDEPAssignProfileSerialsForCooldown(ctx context.Context, serials []string) (skipSerialsByOrgName map[string][]string, serialsByOrgName map[string][]string, err error) { s.mu.Lock() s.ScreenDEPAssignProfileSerialsForCooldownFuncInvoked = true s.mu.Unlock() return s.ScreenDEPAssignProfileSerialsForCooldownFunc(ctx, serials) } func (s *DataStore) GetDEPAssignProfileExpiredCooldowns(ctx context.Context) (map[uint][]string, error) { s.mu.Lock() s.GetDEPAssignProfileExpiredCooldownsFuncInvoked = true s.mu.Unlock() return s.GetDEPAssignProfileExpiredCooldownsFunc(ctx) } func (s *DataStore) UpdateDEPAssignProfileRetryPending(ctx context.Context, jobID uint, serials []string) error { s.mu.Lock() s.UpdateDEPAssignProfileRetryPendingFuncInvoked = true s.mu.Unlock() return s.UpdateDEPAssignProfileRetryPendingFunc(ctx, jobID, serials) } func (s *DataStore) InsertMDMAppleDDMRequest(ctx context.Context, hostUUID string, messageType string, rawJSON json.RawMessage) error { s.mu.Lock() s.InsertMDMAppleDDMRequestFuncInvoked = true s.mu.Unlock() return s.InsertMDMAppleDDMRequestFunc(ctx, hostUUID, messageType, rawJSON) } func (s *DataStore) MDMAppleDDMDeclarationsToken(ctx context.Context, hostUUID string) (*fleet.MDMAppleDDMDeclarationsToken, error) { s.mu.Lock() s.MDMAppleDDMDeclarationsTokenFuncInvoked = true s.mu.Unlock() return s.MDMAppleDDMDeclarationsTokenFunc(ctx, hostUUID) } func (s *DataStore) MDMAppleDDMDeclarationItems(ctx context.Context, hostUUID string) ([]fleet.MDMAppleDDMDeclarationItem, error) { s.mu.Lock() s.MDMAppleDDMDeclarationItemsFuncInvoked = true s.mu.Unlock() return s.MDMAppleDDMDeclarationItemsFunc(ctx, hostUUID) } func (s *DataStore) MDMAppleDDMDeclarationsResponse(ctx context.Context, identifier string, hostUUID string) (*fleet.MDMAppleDeclaration, error) { s.mu.Lock() s.MDMAppleDDMDeclarationsResponseFuncInvoked = true s.mu.Unlock() return s.MDMAppleDDMDeclarationsResponseFunc(ctx, identifier, hostUUID) } func (s *DataStore) MDMAppleBatchSetHostDeclarationState(ctx context.Context) ([]string, error) { s.mu.Lock() s.MDMAppleBatchSetHostDeclarationStateFuncInvoked = true s.mu.Unlock() return s.MDMAppleBatchSetHostDeclarationStateFunc(ctx) } func (s *DataStore) MDMAppleHostDeclarationsGetAndClearResync(ctx context.Context) (hostUUIDs []string, err error) { s.mu.Lock() s.MDMAppleHostDeclarationsGetAndClearResyncFuncInvoked = true s.mu.Unlock() return s.MDMAppleHostDeclarationsGetAndClearResyncFunc(ctx) } func (s *DataStore) MDMAppleStoreDDMStatusReport(ctx context.Context, hostUUID string, updates []*fleet.MDMAppleHostDeclaration) error { s.mu.Lock() s.MDMAppleStoreDDMStatusReportFuncInvoked = true s.mu.Unlock() return s.MDMAppleStoreDDMStatusReportFunc(ctx, hostUUID, updates) } func (s *DataStore) MDMAppleSetPendingDeclarationsAs(ctx context.Context, hostUUID string, status *fleet.MDMDeliveryStatus, detail string) error { s.mu.Lock() s.MDMAppleSetPendingDeclarationsAsFuncInvoked = true s.mu.Unlock() return s.MDMAppleSetPendingDeclarationsAsFunc(ctx, hostUUID, status, detail) } func (s *DataStore) MDMAppleSetRemoveDeclarationsAsPending(ctx context.Context, hostUUID string, declarationUUIDs []string) error { s.mu.Lock() s.MDMAppleSetRemoveDeclarationsAsPendingFuncInvoked = true s.mu.Unlock() return s.MDMAppleSetRemoveDeclarationsAsPendingFunc(ctx, hostUUID, declarationUUIDs) } func (s *DataStore) GetMDMAppleOSUpdatesSettingsByHostSerial(ctx context.Context, hostSerial string) (string, *fleet.AppleOSUpdateSettings, error) { s.mu.Lock() s.GetMDMAppleOSUpdatesSettingsByHostSerialFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleOSUpdatesSettingsByHostSerialFunc(ctx, hostSerial) } func (s *DataStore) GetCAConfigAsset(ctx context.Context, name string, assetType fleet.CAConfigAssetType) (*fleet.CAConfigAsset, error) { s.mu.Lock() s.GetCAConfigAssetFuncInvoked = true s.mu.Unlock() return s.GetCAConfigAssetFunc(ctx, name, assetType) } func (s *DataStore) SaveCAConfigAssets(ctx context.Context, assets []fleet.CAConfigAsset) error { s.mu.Lock() s.SaveCAConfigAssetsFuncInvoked = true s.mu.Unlock() return s.SaveCAConfigAssetsFunc(ctx, assets) } func (s *DataStore) DeleteCAConfigAssets(ctx context.Context, names []string) error { s.mu.Lock() s.DeleteCAConfigAssetsFuncInvoked = true s.mu.Unlock() return s.DeleteCAConfigAssetsFunc(ctx, names) } func (s *DataStore) GetABMTokenByOrgName(ctx context.Context, orgName string) (*fleet.ABMToken, error) { s.mu.Lock() s.GetABMTokenByOrgNameFuncInvoked = true s.mu.Unlock() return s.GetABMTokenByOrgNameFunc(ctx, orgName) } func (s *DataStore) SaveABMToken(ctx context.Context, tok *fleet.ABMToken) error { s.mu.Lock() s.SaveABMTokenFuncInvoked = true s.mu.Unlock() return s.SaveABMTokenFunc(ctx, tok) } func (s *DataStore) InsertVPPToken(ctx context.Context, tok *fleet.VPPTokenData) (*fleet.VPPTokenDB, error) { s.mu.Lock() s.InsertVPPTokenFuncInvoked = true s.mu.Unlock() return s.InsertVPPTokenFunc(ctx, tok) } func (s *DataStore) ListVPPTokens(ctx context.Context) ([]*fleet.VPPTokenDB, error) { s.mu.Lock() s.ListVPPTokensFuncInvoked = true s.mu.Unlock() return s.ListVPPTokensFunc(ctx) } func (s *DataStore) GetVPPToken(ctx context.Context, tokenID uint) (*fleet.VPPTokenDB, error) { s.mu.Lock() s.GetVPPTokenFuncInvoked = true s.mu.Unlock() return s.GetVPPTokenFunc(ctx, tokenID) } func (s *DataStore) GetVPPTokenByTeamID(ctx context.Context, teamID *uint) (*fleet.VPPTokenDB, error) { s.mu.Lock() s.GetVPPTokenByTeamIDFuncInvoked = true s.mu.Unlock() return s.GetVPPTokenByTeamIDFunc(ctx, teamID) } func (s *DataStore) UpdateVPPTokenTeams(ctx context.Context, id uint, teams []uint) (*fleet.VPPTokenDB, error) { s.mu.Lock() s.UpdateVPPTokenTeamsFuncInvoked = true s.mu.Unlock() return s.UpdateVPPTokenTeamsFunc(ctx, id, teams) } func (s *DataStore) UpdateVPPToken(ctx context.Context, id uint, tok *fleet.VPPTokenData) (*fleet.VPPTokenDB, error) { s.mu.Lock() s.UpdateVPPTokenFuncInvoked = true s.mu.Unlock() return s.UpdateVPPTokenFunc(ctx, id, tok) } func (s *DataStore) DeleteVPPToken(ctx context.Context, tokenID uint) error { s.mu.Lock() s.DeleteVPPTokenFuncInvoked = true s.mu.Unlock() return s.DeleteVPPTokenFunc(ctx, tokenID) } func (s *DataStore) SetABMTokenTermsExpiredForOrgName(ctx context.Context, orgName string, expired bool) (wasSet bool, err error) { s.mu.Lock() s.SetABMTokenTermsExpiredForOrgNameFuncInvoked = true s.mu.Unlock() return s.SetABMTokenTermsExpiredForOrgNameFunc(ctx, orgName, expired) } func (s *DataStore) CountABMTokensWithTermsExpired(ctx context.Context) (int, error) { s.mu.Lock() s.CountABMTokensWithTermsExpiredFuncInvoked = true s.mu.Unlock() return s.CountABMTokensWithTermsExpiredFunc(ctx) } func (s *DataStore) InsertABMToken(ctx context.Context, tok *fleet.ABMToken) (*fleet.ABMToken, error) { s.mu.Lock() s.InsertABMTokenFuncInvoked = true s.mu.Unlock() return s.InsertABMTokenFunc(ctx, tok) } func (s *DataStore) ListABMTokens(ctx context.Context) ([]*fleet.ABMToken, error) { s.mu.Lock() s.ListABMTokensFuncInvoked = true s.mu.Unlock() return s.ListABMTokensFunc(ctx) } func (s *DataStore) DeleteABMToken(ctx context.Context, tokenID uint) error { s.mu.Lock() s.DeleteABMTokenFuncInvoked = true s.mu.Unlock() return s.DeleteABMTokenFunc(ctx, tokenID) } func (s *DataStore) GetABMTokenByID(ctx context.Context, tokenID uint) (*fleet.ABMToken, error) { s.mu.Lock() s.GetABMTokenByIDFuncInvoked = true s.mu.Unlock() return s.GetABMTokenByIDFunc(ctx, tokenID) } func (s *DataStore) GetABMTokenCount(ctx context.Context) (int, error) { s.mu.Lock() s.GetABMTokenCountFuncInvoked = true s.mu.Unlock() return s.GetABMTokenCountFunc(ctx) } func (s *DataStore) GetABMTokenOrgNamesAssociatedWithTeam(ctx context.Context, teamID *uint) ([]string, error) { s.mu.Lock() s.GetABMTokenOrgNamesAssociatedWithTeamFuncInvoked = true s.mu.Unlock() return s.GetABMTokenOrgNamesAssociatedWithTeamFunc(ctx, teamID) } func (s *DataStore) ClearMDMUpcomingActivitiesDB(ctx context.Context, tx sqlx.ExtContext, hostUUID string) error { s.mu.Lock() s.ClearMDMUpcomingActivitiesDBFuncInvoked = true s.mu.Unlock() return s.ClearMDMUpcomingActivitiesDBFunc(ctx, tx, hostUUID) } func (s *DataStore) GetMDMAppleEnrolledDeviceDeletedFromFleet(ctx context.Context, hostUUID string) (*fleet.MDMAppleEnrolledDeviceInfo, error) { s.mu.Lock() s.GetMDMAppleEnrolledDeviceDeletedFromFleetFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleEnrolledDeviceDeletedFromFleetFunc(ctx, hostUUID) } func (s *DataStore) GetMDMAppleHostMDMEnrollRef(ctx context.Context, hostID uint) (string, error) { s.mu.Lock() s.GetMDMAppleHostMDMEnrollRefFuncInvoked = true s.mu.Unlock() return s.GetMDMAppleHostMDMEnrollRefFunc(ctx, hostID) } func (s *DataStore) UpdateMDMAppleHostMDMEnrollRef(ctx context.Context, hostID uint, enrollRef string) (bool, error) { s.mu.Lock() s.UpdateMDMAppleHostMDMEnrollRefFuncInvoked = true s.mu.Unlock() return s.UpdateMDMAppleHostMDMEnrollRefFunc(ctx, hostID, enrollRef) } func (s *DataStore) DeactivateMDMAppleHostSCEPRenewCommands(ctx context.Context, hostUUID string) error { s.mu.Lock() s.DeactivateMDMAppleHostSCEPRenewCommandsFuncInvoked = true s.mu.Unlock() return s.DeactivateMDMAppleHostSCEPRenewCommandsFunc(ctx, hostUUID) } func (s *DataStore) ListMDMAppleEnrolledIPhoneIpadDeletedFromFleet(ctx context.Context, limit int) ([]string, error) { s.mu.Lock() s.ListMDMAppleEnrolledIPhoneIpadDeletedFromFleetFuncInvoked = true s.mu.Unlock() return s.ListMDMAppleEnrolledIPhoneIpadDeletedFromFleetFunc(ctx, limit) } func (s *DataStore) ReconcileMDMAppleEnrollRef(ctx context.Context, enrollRef string, machineInfo *fleet.MDMAppleMachineInfo) (string, error) { s.mu.Lock() s.ReconcileMDMAppleEnrollRefFuncInvoked = true s.mu.Unlock() return s.ReconcileMDMAppleEnrollRefFunc(ctx, enrollRef, machineInfo) } func (s *DataStore) GetMDMIdPAccountByHostUUID(ctx context.Context, hostUUID string) (*fleet.MDMIdPAccount, error) { s.mu.Lock() s.GetMDMIdPAccountByHostUUIDFuncInvoked = true s.mu.Unlock() return s.GetMDMIdPAccountByHostUUIDFunc(ctx, hostUUID) } func (s *DataStore) AssociateHostMDMIdPAccount(ctx context.Context, hostUUID string, accountUUID string) error { s.mu.Lock() s.AssociateHostMDMIdPAccountFuncInvoked = true s.mu.Unlock() return s.AssociateHostMDMIdPAccountFunc(ctx, hostUUID, accountUUID) } func (s *DataStore) WSTEPStoreCertificate(ctx context.Context, name string, crt *x509.Certificate) error { s.mu.Lock() s.WSTEPStoreCertificateFuncInvoked = true s.mu.Unlock() return s.WSTEPStoreCertificateFunc(ctx, name, crt) } func (s *DataStore) WSTEPNewSerial(ctx context.Context) (*big.Int, error) { s.mu.Lock() s.WSTEPNewSerialFuncInvoked = true s.mu.Unlock() return s.WSTEPNewSerialFunc(ctx) } func (s *DataStore) WSTEPAssociateCertHash(ctx context.Context, deviceUUID string, hash string) error { s.mu.Lock() s.WSTEPAssociateCertHashFuncInvoked = true s.mu.Unlock() return s.WSTEPAssociateCertHashFunc(ctx, deviceUUID, hash) } func (s *DataStore) MDMWindowsInsertEnrolledDevice(ctx context.Context, device *fleet.MDMWindowsEnrolledDevice) error { s.mu.Lock() s.MDMWindowsInsertEnrolledDeviceFuncInvoked = true s.mu.Unlock() return s.MDMWindowsInsertEnrolledDeviceFunc(ctx, device) } func (s *DataStore) MDMWindowsDeleteEnrolledDeviceOnReenrollment(ctx context.Context, mdmDeviceHWID string) error { s.mu.Lock() s.MDMWindowsDeleteEnrolledDeviceOnReenrollmentFuncInvoked = true s.mu.Unlock() return s.MDMWindowsDeleteEnrolledDeviceOnReenrollmentFunc(ctx, mdmDeviceHWID) } func (s *DataStore) MDMWindowsGetEnrolledDeviceWithDeviceID(ctx context.Context, mdmDeviceID string) (*fleet.MDMWindowsEnrolledDevice, error) { s.mu.Lock() s.MDMWindowsGetEnrolledDeviceWithDeviceIDFuncInvoked = true s.mu.Unlock() return s.MDMWindowsGetEnrolledDeviceWithDeviceIDFunc(ctx, mdmDeviceID) } func (s *DataStore) MDMWindowsGetEnrolledDeviceWithHostUUID(ctx context.Context, hostUUID string) (*fleet.MDMWindowsEnrolledDevice, error) { s.mu.Lock() s.MDMWindowsGetEnrolledDeviceWithHostUUIDFuncInvoked = true s.mu.Unlock() return s.MDMWindowsGetEnrolledDeviceWithHostUUIDFunc(ctx, hostUUID) } func (s *DataStore) MDMWindowsDeleteEnrolledDeviceWithDeviceID(ctx context.Context, mdmDeviceID string) error { s.mu.Lock() s.MDMWindowsDeleteEnrolledDeviceWithDeviceIDFuncInvoked = true s.mu.Unlock() return s.MDMWindowsDeleteEnrolledDeviceWithDeviceIDFunc(ctx, mdmDeviceID) } func (s *DataStore) MDMWindowsInsertCommandForHosts(ctx context.Context, hostUUIDs []string, cmd *fleet.MDMWindowsCommand) error { s.mu.Lock() s.MDMWindowsInsertCommandForHostsFuncInvoked = true s.mu.Unlock() return s.MDMWindowsInsertCommandForHostsFunc(ctx, hostUUIDs, cmd) } func (s *DataStore) MDMWindowsGetPendingCommands(ctx context.Context, deviceID string) ([]*fleet.MDMWindowsCommand, error) { s.mu.Lock() s.MDMWindowsGetPendingCommandsFuncInvoked = true s.mu.Unlock() return s.MDMWindowsGetPendingCommandsFunc(ctx, deviceID) } func (s *DataStore) MDMWindowsSaveResponse(ctx context.Context, deviceID string, enrichedSyncML fleet.EnrichedSyncML, commandIDsBeingResent []string) error { s.mu.Lock() s.MDMWindowsSaveResponseFuncInvoked = true s.mu.Unlock() return s.MDMWindowsSaveResponseFunc(ctx, deviceID, enrichedSyncML, commandIDsBeingResent) } func (s *DataStore) GetMDMWindowsCommandResults(ctx context.Context, commandUUID string, hostUUID string) ([]*fleet.MDMCommandResult, error) { s.mu.Lock() s.GetMDMWindowsCommandResultsFuncInvoked = true s.mu.Unlock() return s.GetMDMWindowsCommandResultsFunc(ctx, commandUUID, hostUUID) } func (s *DataStore) UpdateMDMWindowsEnrollmentsHostUUID(ctx context.Context, hostUUID string, mdmDeviceID string) (bool, error) { s.mu.Lock() s.UpdateMDMWindowsEnrollmentsHostUUIDFuncInvoked = true s.mu.Unlock() return s.UpdateMDMWindowsEnrollmentsHostUUIDFunc(ctx, hostUUID, mdmDeviceID) } func (s *DataStore) GetMDMWindowsConfigProfile(ctx context.Context, profileUUID string) (*fleet.MDMWindowsConfigProfile, error) { s.mu.Lock() s.GetMDMWindowsConfigProfileFuncInvoked = true s.mu.Unlock() return s.GetMDMWindowsConfigProfileFunc(ctx, profileUUID) } func (s *DataStore) DeleteMDMWindowsConfigProfile(ctx context.Context, profileUUID string) error { s.mu.Lock() s.DeleteMDMWindowsConfigProfileFuncInvoked = true s.mu.Unlock() return s.DeleteMDMWindowsConfigProfileFunc(ctx, profileUUID) } func (s *DataStore) DeleteMDMWindowsConfigProfileByTeamAndName(ctx context.Context, teamID *uint, profileName string) error { s.mu.Lock() s.DeleteMDMWindowsConfigProfileByTeamAndNameFuncInvoked = true s.mu.Unlock() return s.DeleteMDMWindowsConfigProfileByTeamAndNameFunc(ctx, teamID, profileName) } func (s *DataStore) GetHostMDMWindowsProfiles(ctx context.Context, hostUUID string) ([]fleet.HostMDMWindowsProfile, error) { s.mu.Lock() s.GetHostMDMWindowsProfilesFuncInvoked = true s.mu.Unlock() return s.GetHostMDMWindowsProfilesFunc(ctx, hostUUID) } func (s *DataStore) ListMDMConfigProfiles(ctx context.Context, teamID *uint, opt fleet.ListOptions) ([]*fleet.MDMConfigProfilePayload, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListMDMConfigProfilesFuncInvoked = true s.mu.Unlock() return s.ListMDMConfigProfilesFunc(ctx, teamID, opt) } func (s *DataStore) ResendHostMDMProfile(ctx context.Context, hostUUID string, profileUUID string) error { s.mu.Lock() s.ResendHostMDMProfileFuncInvoked = true s.mu.Unlock() return s.ResendHostMDMProfileFunc(ctx, hostUUID, profileUUID) } func (s *DataStore) BatchResendMDMProfileToHosts(ctx context.Context, profileUUID string, filters fleet.BatchResendMDMProfileFilters) (int64, error) { s.mu.Lock() s.BatchResendMDMProfileToHostsFuncInvoked = true s.mu.Unlock() return s.BatchResendMDMProfileToHostsFunc(ctx, profileUUID, filters) } func (s *DataStore) GetMDMConfigProfileStatus(ctx context.Context, profileUUID string) (fleet.MDMConfigProfileStatus, error) { s.mu.Lock() s.GetMDMConfigProfileStatusFuncInvoked = true s.mu.Unlock() return s.GetMDMConfigProfileStatusFunc(ctx, profileUUID) } func (s *DataStore) GetHostMDMProfileInstallStatus(ctx context.Context, hostUUID string, profileUUID string) (fleet.MDMDeliveryStatus, error) { s.mu.Lock() s.GetHostMDMProfileInstallStatusFuncInvoked = true s.mu.Unlock() return s.GetHostMDMProfileInstallStatusFunc(ctx, hostUUID, profileUUID) } func (s *DataStore) GetLinuxDiskEncryptionSummary(ctx context.Context, teamID *uint) (fleet.MDMLinuxDiskEncryptionSummary, error) { s.mu.Lock() s.GetLinuxDiskEncryptionSummaryFuncInvoked = true s.mu.Unlock() return s.GetLinuxDiskEncryptionSummaryFunc(ctx, teamID) } func (s *DataStore) GetMDMCommandPlatform(ctx context.Context, commandUUID string) (string, error) { s.mu.Lock() s.GetMDMCommandPlatformFuncInvoked = true s.mu.Unlock() return s.GetMDMCommandPlatformFunc(ctx, commandUUID) } func (s *DataStore) ListMDMCommands(ctx context.Context, tmFilter fleet.TeamFilter, listOpts *fleet.MDMCommandListOptions) ([]*fleet.MDMCommand, *int64, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListMDMCommandsFuncInvoked = true s.mu.Unlock() return s.ListMDMCommandsFunc(ctx, tmFilter, listOpts) } func (s *DataStore) GetMDMWindowsBitLockerSummary(ctx context.Context, teamID *uint) (*fleet.MDMWindowsBitLockerSummary, error) { s.mu.Lock() s.GetMDMWindowsBitLockerSummaryFuncInvoked = true s.mu.Unlock() return s.GetMDMWindowsBitLockerSummaryFunc(ctx, teamID) } func (s *DataStore) GetMDMWindowsBitLockerStatus(ctx context.Context, host *fleet.Host) (*fleet.HostMDMDiskEncryption, error) { s.mu.Lock() s.GetMDMWindowsBitLockerStatusFuncInvoked = true s.mu.Unlock() return s.GetMDMWindowsBitLockerStatusFunc(ctx, host) } func (s *DataStore) GetMDMWindowsProfilesSummary(ctx context.Context, teamID *uint) (*fleet.MDMProfilesSummary, error) { s.mu.Lock() s.GetMDMWindowsProfilesSummaryFuncInvoked = true s.mu.Unlock() return s.GetMDMWindowsProfilesSummaryFunc(ctx, teamID) } func (s *DataStore) ListMDMWindowsProfilesToInstall(ctx context.Context) ([]*fleet.MDMWindowsProfilePayload, error) { s.mu.Lock() s.ListMDMWindowsProfilesToInstallFuncInvoked = true s.mu.Unlock() return s.ListMDMWindowsProfilesToInstallFunc(ctx) } func (s *DataStore) ListMDMWindowsProfilesToRemove(ctx context.Context) ([]*fleet.MDMWindowsProfilePayload, error) { s.mu.Lock() s.ListMDMWindowsProfilesToRemoveFuncInvoked = true s.mu.Unlock() return s.ListMDMWindowsProfilesToRemoveFunc(ctx) } func (s *DataStore) BulkUpsertMDMWindowsHostProfiles(ctx context.Context, payload []*fleet.MDMWindowsBulkUpsertHostProfilePayload) error { s.mu.Lock() s.BulkUpsertMDMWindowsHostProfilesFuncInvoked = true s.mu.Unlock() return s.BulkUpsertMDMWindowsHostProfilesFunc(ctx, payload) } func (s *DataStore) GetMDMWindowsProfilesContents(ctx context.Context, profileUUIDs []string) (map[string]fleet.MDMWindowsProfileContents, error) { s.mu.Lock() s.GetMDMWindowsProfilesContentsFuncInvoked = true s.mu.Unlock() return s.GetMDMWindowsProfilesContentsFunc(ctx, profileUUIDs) } func (s *DataStore) BulkDeleteMDMWindowsHostsConfigProfiles(ctx context.Context, payload []*fleet.MDMWindowsProfilePayload) error { s.mu.Lock() s.BulkDeleteMDMWindowsHostsConfigProfilesFuncInvoked = true s.mu.Unlock() return s.BulkDeleteMDMWindowsHostsConfigProfilesFunc(ctx, payload) } func (s *DataStore) NewMDMWindowsConfigProfile(ctx context.Context, cp fleet.MDMWindowsConfigProfile, usesFleetVars []fleet.FleetVarName) (*fleet.MDMWindowsConfigProfile, error) { s.mu.Lock() s.NewMDMWindowsConfigProfileFuncInvoked = true s.mu.Unlock() return s.NewMDMWindowsConfigProfileFunc(ctx, cp, usesFleetVars) } func (s *DataStore) SetOrUpdateMDMWindowsConfigProfile(ctx context.Context, cp fleet.MDMWindowsConfigProfile) error { s.mu.Lock() s.SetOrUpdateMDMWindowsConfigProfileFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateMDMWindowsConfigProfileFunc(ctx, cp) } func (s *DataStore) BatchSetMDMProfiles(ctx context.Context, tmID *uint, macProfiles []*fleet.MDMAppleConfigProfile, winProfiles []*fleet.MDMWindowsConfigProfile, macDeclarations []*fleet.MDMAppleDeclaration, androidProfiles []*fleet.MDMAndroidConfigProfile, profilesVariables []fleet.MDMProfileIdentifierFleetVariables) (updates fleet.MDMProfilesUpdates, err error) { s.mu.Lock() s.BatchSetMDMProfilesFuncInvoked = true s.mu.Unlock() return s.BatchSetMDMProfilesFunc(ctx, tmID, macProfiles, winProfiles, macDeclarations, androidProfiles, profilesVariables) } func (s *DataStore) NewMDMAppleDeclaration(ctx context.Context, declaration *fleet.MDMAppleDeclaration) (*fleet.MDMAppleDeclaration, error) { s.mu.Lock() s.NewMDMAppleDeclarationFuncInvoked = true s.mu.Unlock() return s.NewMDMAppleDeclarationFunc(ctx, declaration) } func (s *DataStore) SetOrUpdateMDMAppleDeclaration(ctx context.Context, declaration *fleet.MDMAppleDeclaration) (*fleet.MDMAppleDeclaration, error) { s.mu.Lock() s.SetOrUpdateMDMAppleDeclarationFuncInvoked = true s.mu.Unlock() return s.SetOrUpdateMDMAppleDeclarationFunc(ctx, declaration) } func (s *DataStore) NewHostScriptExecutionRequest(ctx context.Context, request *fleet.HostScriptRequestPayload) (*fleet.HostScriptResult, error) { s.mu.Lock() s.NewHostScriptExecutionRequestFuncInvoked = true s.mu.Unlock() return s.NewHostScriptExecutionRequestFunc(ctx, request) } func (s *DataStore) SetHostScriptExecutionResult(ctx context.Context, result *fleet.HostScriptResultPayload, attemptNumber *int) (hsr *fleet.HostScriptResult, action string, err error) { s.mu.Lock() s.SetHostScriptExecutionResultFuncInvoked = true s.mu.Unlock() return s.SetHostScriptExecutionResultFunc(ctx, result, attemptNumber) } func (s *DataStore) GetHostScriptExecutionResult(ctx context.Context, execID string) (*fleet.HostScriptResult, error) { s.mu.Lock() s.GetHostScriptExecutionResultFuncInvoked = true s.mu.Unlock() return s.GetHostScriptExecutionResultFunc(ctx, execID) } func (s *DataStore) GetSelfServiceUninstallScriptExecutionResult(ctx context.Context, execID string, hostID uint) (*fleet.HostScriptResult, error) { s.mu.Lock() s.GetSelfServiceUninstallScriptExecutionResultFuncInvoked = true s.mu.Unlock() return s.GetSelfServiceUninstallScriptExecutionResultFunc(ctx, execID, hostID) } func (s *DataStore) ListPendingHostScriptExecutions(ctx context.Context, hostID uint, onlyShowInternal bool) ([]*fleet.HostScriptResult, error) { s.mu.Lock() s.ListPendingHostScriptExecutionsFuncInvoked = true s.mu.Unlock() return s.ListPendingHostScriptExecutionsFunc(ctx, hostID, onlyShowInternal) } func (s *DataStore) ListReadyToExecuteScriptsForHost(ctx context.Context, hostID uint, onlyShowInternal bool) ([]*fleet.HostScriptResult, error) { s.mu.Lock() s.ListReadyToExecuteScriptsForHostFuncInvoked = true s.mu.Unlock() return s.ListReadyToExecuteScriptsForHostFunc(ctx, hostID, onlyShowInternal) } func (s *DataStore) NewScript(ctx context.Context, script *fleet.Script) (*fleet.Script, error) { s.mu.Lock() s.NewScriptFuncInvoked = true s.mu.Unlock() return s.NewScriptFunc(ctx, script) } func (s *DataStore) UpdateScriptContents(ctx context.Context, scriptID uint, scriptContents string) (*fleet.Script, error) { s.mu.Lock() s.UpdateScriptContentsFuncInvoked = true s.mu.Unlock() return s.UpdateScriptContentsFunc(ctx, scriptID, scriptContents) } func (s *DataStore) Script(ctx context.Context, id uint) (*fleet.Script, error) { s.mu.Lock() s.ScriptFuncInvoked = true s.mu.Unlock() return s.ScriptFunc(ctx, id) } func (s *DataStore) GetScriptContents(ctx context.Context, id uint) ([]byte, error) { s.mu.Lock() s.GetScriptContentsFuncInvoked = true s.mu.Unlock() return s.GetScriptContentsFunc(ctx, id) } func (s *DataStore) GetAnyScriptContents(ctx context.Context, id uint) ([]byte, error) { s.mu.Lock() s.GetAnyScriptContentsFuncInvoked = true s.mu.Unlock() return s.GetAnyScriptContentsFunc(ctx, id) } func (s *DataStore) DeleteScript(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteScriptFuncInvoked = true s.mu.Unlock() return s.DeleteScriptFunc(ctx, id) } func (s *DataStore) ListScripts(ctx context.Context, teamID *uint, opt fleet.ListOptions) ([]*fleet.Script, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListScriptsFuncInvoked = true s.mu.Unlock() return s.ListScriptsFunc(ctx, teamID, opt) } func (s *DataStore) GetScriptIDByName(ctx context.Context, name string, teamID *uint) (uint, error) { s.mu.Lock() s.GetScriptIDByNameFuncInvoked = true s.mu.Unlock() return s.GetScriptIDByNameFunc(ctx, name, teamID) } func (s *DataStore) GetHostScriptDetails(ctx context.Context, hostID uint, teamID *uint, opts fleet.ListOptions, hostPlatform string) ([]*fleet.HostScriptDetail, *fleet.PaginationMetadata, error) { s.mu.Lock() s.GetHostScriptDetailsFuncInvoked = true s.mu.Unlock() return s.GetHostScriptDetailsFunc(ctx, hostID, teamID, opts, hostPlatform) } func (s *DataStore) BatchSetScripts(ctx context.Context, tmID *uint, scripts []*fleet.Script) ([]fleet.ScriptResponse, error) { s.mu.Lock() s.BatchSetScriptsFuncInvoked = true s.mu.Unlock() return s.BatchSetScriptsFunc(ctx, tmID, scripts) } func (s *DataStore) BatchExecuteScript(ctx context.Context, userID *uint, scriptID uint, hostIDs []uint) (string, error) { s.mu.Lock() s.BatchExecuteScriptFuncInvoked = true s.mu.Unlock() return s.BatchExecuteScriptFunc(ctx, userID, scriptID, hostIDs) } func (s *DataStore) BatchScheduleScript(ctx context.Context, userID *uint, scriptID uint, hostIDs []uint, notBefore time.Time) (string, error) { s.mu.Lock() s.BatchScheduleScriptFuncInvoked = true s.mu.Unlock() return s.BatchScheduleScriptFunc(ctx, userID, scriptID, hostIDs, notBefore) } func (s *DataStore) GetBatchActivity(ctx context.Context, executionID string) (*fleet.BatchActivity, error) { s.mu.Lock() s.GetBatchActivityFuncInvoked = true s.mu.Unlock() return s.GetBatchActivityFunc(ctx, executionID) } func (s *DataStore) GetBatchActivityHostResults(ctx context.Context, executionID string) ([]*fleet.BatchActivityHostResult, error) { s.mu.Lock() s.GetBatchActivityHostResultsFuncInvoked = true s.mu.Unlock() return s.GetBatchActivityHostResultsFunc(ctx, executionID) } func (s *DataStore) RunScheduledBatchActivity(ctx context.Context, executionID string) error { s.mu.Lock() s.RunScheduledBatchActivityFuncInvoked = true s.mu.Unlock() return s.RunScheduledBatchActivityFunc(ctx, executionID) } func (s *DataStore) BatchExecuteSummary(ctx context.Context, executionID string) (*fleet.BatchActivity, error) { s.mu.Lock() s.BatchExecuteSummaryFuncInvoked = true s.mu.Unlock() return s.BatchExecuteSummaryFunc(ctx, executionID) } func (s *DataStore) CancelBatchScript(ctx context.Context, executionID string) error { s.mu.Lock() s.CancelBatchScriptFuncInvoked = true s.mu.Unlock() return s.CancelBatchScriptFunc(ctx, executionID) } func (s *DataStore) ListBatchScriptExecutions(ctx context.Context, filter fleet.BatchExecutionStatusFilter) ([]fleet.BatchActivity, error) { s.mu.Lock() s.ListBatchScriptExecutionsFuncInvoked = true s.mu.Unlock() return s.ListBatchScriptExecutionsFunc(ctx, filter) } func (s *DataStore) CountBatchScriptExecutions(ctx context.Context, filter fleet.BatchExecutionStatusFilter) (int64, error) { s.mu.Lock() s.CountBatchScriptExecutionsFuncInvoked = true s.mu.Unlock() return s.CountBatchScriptExecutionsFunc(ctx, filter) } func (s *DataStore) MarkActivitiesAsCompleted(ctx context.Context) error { s.mu.Lock() s.MarkActivitiesAsCompletedFuncInvoked = true s.mu.Unlock() return s.MarkActivitiesAsCompletedFunc(ctx) } func (s *DataStore) GetHostLockWipeStatus(ctx context.Context, host *fleet.Host) (*fleet.HostLockWipeStatus, error) { s.mu.Lock() s.GetHostLockWipeStatusFuncInvoked = true s.mu.Unlock() return s.GetHostLockWipeStatusFunc(ctx, host) } func (s *DataStore) GetHostsLockWipeStatusBatch(ctx context.Context, hosts []*fleet.Host) (map[uint]*fleet.HostLockWipeStatus, error) { s.mu.Lock() s.GetHostsLockWipeStatusBatchFuncInvoked = true s.mu.Unlock() return s.GetHostsLockWipeStatusBatchFunc(ctx, hosts) } func (s *DataStore) LockHostViaScript(ctx context.Context, request *fleet.HostScriptRequestPayload, hostFleetPlatform string) error { s.mu.Lock() s.LockHostViaScriptFuncInvoked = true s.mu.Unlock() return s.LockHostViaScriptFunc(ctx, request, hostFleetPlatform) } func (s *DataStore) UnlockHostViaScript(ctx context.Context, request *fleet.HostScriptRequestPayload, hostFleetPlatform string) error { s.mu.Lock() s.UnlockHostViaScriptFuncInvoked = true s.mu.Unlock() return s.UnlockHostViaScriptFunc(ctx, request, hostFleetPlatform) } func (s *DataStore) UnlockHostManually(ctx context.Context, hostID uint, hostFleetPlatform string, ts time.Time) error { s.mu.Lock() s.UnlockHostManuallyFuncInvoked = true s.mu.Unlock() return s.UnlockHostManuallyFunc(ctx, hostID, hostFleetPlatform, ts) } func (s *DataStore) CleanAppleMDMLock(ctx context.Context, hostUUID string) error { s.mu.Lock() s.CleanAppleMDMLockFuncInvoked = true s.mu.Unlock() return s.CleanAppleMDMLockFunc(ctx, hostUUID) } func (s *DataStore) InsertHostLocationData(ctx context.Context, locData fleet.HostLocationData) error { s.mu.Lock() s.InsertHostLocationDataFuncInvoked = true s.mu.Unlock() return s.InsertHostLocationDataFunc(ctx, locData) } func (s *DataStore) GetHostLocationData(ctx context.Context, hostID uint) (*fleet.HostLocationData, error) { s.mu.Lock() s.GetHostLocationDataFuncInvoked = true s.mu.Unlock() return s.GetHostLocationDataFunc(ctx, hostID) } func (s *DataStore) DeleteHostLocationData(ctx context.Context, hostID uint) error { s.mu.Lock() s.DeleteHostLocationDataFuncInvoked = true s.mu.Unlock() return s.DeleteHostLocationDataFunc(ctx, hostID) } func (s *DataStore) CleanupUnusedScriptContents(ctx context.Context) error { s.mu.Lock() s.CleanupUnusedScriptContentsFuncInvoked = true s.mu.Unlock() return s.CleanupUnusedScriptContentsFunc(ctx) } func (s *DataStore) CleanupActivitiesAndAssociatedData(ctx context.Context, maxCount int, expiryWindowDays int) error { s.mu.Lock() s.CleanupActivitiesAndAssociatedDataFuncInvoked = true s.mu.Unlock() return s.CleanupActivitiesAndAssociatedDataFunc(ctx, maxCount, expiryWindowDays) } func (s *DataStore) WipeHostViaScript(ctx context.Context, request *fleet.HostScriptRequestPayload, hostFleetPlatform string) error { s.mu.Lock() s.WipeHostViaScriptFuncInvoked = true s.mu.Unlock() return s.WipeHostViaScriptFunc(ctx, request, hostFleetPlatform) } func (s *DataStore) WipeHostViaWindowsMDM(ctx context.Context, host *fleet.Host, cmd *fleet.MDMWindowsCommand) error { s.mu.Lock() s.WipeHostViaWindowsMDMFuncInvoked = true s.mu.Unlock() return s.WipeHostViaWindowsMDMFunc(ctx, host, cmd) } func (s *DataStore) UpdateHostLockWipeStatusFromAppleMDMResult(ctx context.Context, hostUUID string, cmdUUID string, requestType string, succeeded bool) error { s.mu.Lock() s.UpdateHostLockWipeStatusFromAppleMDMResultFuncInvoked = true s.mu.Unlock() return s.UpdateHostLockWipeStatusFromAppleMDMResultFunc(ctx, hostUUID, cmdUUID, requestType, succeeded) } func (s *DataStore) GetIncludedHostIDMapForSoftwareInstaller(ctx context.Context, installerID uint) (map[uint]struct{}, error) { s.mu.Lock() s.GetIncludedHostIDMapForSoftwareInstallerFuncInvoked = true s.mu.Unlock() return s.GetIncludedHostIDMapForSoftwareInstallerFunc(ctx, installerID) } func (s *DataStore) GetExcludedHostIDMapForSoftwareInstaller(ctx context.Context, installerID uint) (map[uint]struct{}, error) { s.mu.Lock() s.GetExcludedHostIDMapForSoftwareInstallerFuncInvoked = true s.mu.Unlock() return s.GetExcludedHostIDMapForSoftwareInstallerFunc(ctx, installerID) } func (s *DataStore) ClearSoftwareInstallerAutoInstallPolicyStatusForHosts(ctx context.Context, installerID uint, hostIDs []uint) error { s.mu.Lock() s.ClearSoftwareInstallerAutoInstallPolicyStatusForHostsFuncInvoked = true s.mu.Unlock() return s.ClearSoftwareInstallerAutoInstallPolicyStatusForHostsFunc(ctx, installerID, hostIDs) } func (s *DataStore) GetSoftwareInstallDetails(ctx context.Context, executionId string) (*fleet.SoftwareInstallDetails, error) { s.mu.Lock() s.GetSoftwareInstallDetailsFuncInvoked = true s.mu.Unlock() return s.GetSoftwareInstallDetailsFunc(ctx, executionId) } func (s *DataStore) ListPendingSoftwareInstalls(ctx context.Context, hostID uint) ([]string, error) { s.mu.Lock() s.ListPendingSoftwareInstallsFuncInvoked = true s.mu.Unlock() return s.ListPendingSoftwareInstallsFunc(ctx, hostID) } func (s *DataStore) ListReadyToExecuteSoftwareInstalls(ctx context.Context, hostID uint) ([]string, error) { s.mu.Lock() s.ListReadyToExecuteSoftwareInstallsFuncInvoked = true s.mu.Unlock() return s.ListReadyToExecuteSoftwareInstallsFunc(ctx, hostID) } func (s *DataStore) GetHostLastInstallData(ctx context.Context, hostID uint, installerID uint) (*fleet.HostLastInstallData, error) { s.mu.Lock() s.GetHostLastInstallDataFuncInvoked = true s.mu.Unlock() return s.GetHostLastInstallDataFunc(ctx, hostID, installerID) } func (s *DataStore) MatchOrCreateSoftwareInstaller(ctx context.Context, payload *fleet.UploadSoftwareInstallerPayload) (installerID uint, titleID uint, err error) { s.mu.Lock() s.MatchOrCreateSoftwareInstallerFuncInvoked = true s.mu.Unlock() return s.MatchOrCreateSoftwareInstallerFunc(ctx, payload) } func (s *DataStore) GetSoftwareInstallerMetadataByID(ctx context.Context, id uint) (*fleet.SoftwareInstaller, error) { s.mu.Lock() s.GetSoftwareInstallerMetadataByIDFuncInvoked = true s.mu.Unlock() return s.GetSoftwareInstallerMetadataByIDFunc(ctx, id) } func (s *DataStore) ValidateOrbitSoftwareInstallerAccess(ctx context.Context, hostID uint, installerID uint) (bool, error) { s.mu.Lock() s.ValidateOrbitSoftwareInstallerAccessFuncInvoked = true s.mu.Unlock() return s.ValidateOrbitSoftwareInstallerAccessFunc(ctx, hostID, installerID) } func (s *DataStore) GetSoftwareInstallerMetadataByTeamAndTitleID(ctx context.Context, teamID *uint, titleID uint, withScriptContents bool) (*fleet.SoftwareInstaller, error) { s.mu.Lock() s.GetSoftwareInstallerMetadataByTeamAndTitleIDFuncInvoked = true s.mu.Unlock() return s.GetSoftwareInstallerMetadataByTeamAndTitleIDFunc(ctx, teamID, titleID, withScriptContents) } func (s *DataStore) InsertHostInHouseAppInstall(ctx context.Context, hostID uint, inHouseAppID uint, softwareTitleID uint, commandUUID string, opts fleet.HostSoftwareInstallOptions) error { s.mu.Lock() s.InsertHostInHouseAppInstallFuncInvoked = true s.mu.Unlock() return s.InsertHostInHouseAppInstallFunc(ctx, hostID, inHouseAppID, softwareTitleID, commandUUID, opts) } func (s *DataStore) GetSoftwareInstallersPendingUninstallScriptPopulation(ctx context.Context) (map[uint]string, error) { s.mu.Lock() s.GetSoftwareInstallersPendingUninstallScriptPopulationFuncInvoked = true s.mu.Unlock() return s.GetSoftwareInstallersPendingUninstallScriptPopulationFunc(ctx) } func (s *DataStore) GetMSIInstallersWithoutUpgradeCode(ctx context.Context) (map[uint]string, error) { s.mu.Lock() s.GetMSIInstallersWithoutUpgradeCodeFuncInvoked = true s.mu.Unlock() return s.GetMSIInstallersWithoutUpgradeCodeFunc(ctx) } func (s *DataStore) UpdateSoftwareInstallerWithoutPackageIDs(ctx context.Context, id uint, payload fleet.UploadSoftwareInstallerPayload) error { s.mu.Lock() s.UpdateSoftwareInstallerWithoutPackageIDsFuncInvoked = true s.mu.Unlock() return s.UpdateSoftwareInstallerWithoutPackageIDsFunc(ctx, id, payload) } func (s *DataStore) UpdateInstallerUpgradeCode(ctx context.Context, id uint, upgradeCode string) error { s.mu.Lock() s.UpdateInstallerUpgradeCodeFuncInvoked = true s.mu.Unlock() return s.UpdateInstallerUpgradeCodeFunc(ctx, id, upgradeCode) } func (s *DataStore) ProcessInstallerUpdateSideEffects(ctx context.Context, installerID uint, wasMetadataUpdated bool, wasPackageUpdated bool) error { s.mu.Lock() s.ProcessInstallerUpdateSideEffectsFuncInvoked = true s.mu.Unlock() return s.ProcessInstallerUpdateSideEffectsFunc(ctx, installerID, wasMetadataUpdated, wasPackageUpdated) } func (s *DataStore) SaveInstallerUpdates(ctx context.Context, payload *fleet.UpdateSoftwareInstallerPayload) error { s.mu.Lock() s.SaveInstallerUpdatesFuncInvoked = true s.mu.Unlock() return s.SaveInstallerUpdatesFunc(ctx, payload) } func (s *DataStore) UpdateInstallerSelfServiceFlag(ctx context.Context, selfService bool, id uint) error { s.mu.Lock() s.UpdateInstallerSelfServiceFlagFuncInvoked = true s.mu.Unlock() return s.UpdateInstallerSelfServiceFlagFunc(ctx, selfService, id) } func (s *DataStore) GetVPPAppByTeamAndTitleID(ctx context.Context, teamID *uint, titleID uint) (*fleet.VPPApp, error) { s.mu.Lock() s.GetVPPAppByTeamAndTitleIDFuncInvoked = true s.mu.Unlock() return s.GetVPPAppByTeamAndTitleIDFunc(ctx, teamID, titleID) } func (s *DataStore) GetVPPAppMetadataByTeamAndTitleID(ctx context.Context, teamID *uint, titleID uint) (*fleet.VPPAppStoreApp, error) { s.mu.Lock() s.GetVPPAppMetadataByTeamAndTitleIDFuncInvoked = true s.mu.Unlock() return s.GetVPPAppMetadataByTeamAndTitleIDFunc(ctx, teamID, titleID) } func (s *DataStore) MapAdamIDsPendingInstall(ctx context.Context, hostID uint) (map[string]struct{}, error) { s.mu.Lock() s.MapAdamIDsPendingInstallFuncInvoked = true s.mu.Unlock() return s.MapAdamIDsPendingInstallFunc(ctx, hostID) } func (s *DataStore) MapAdamIDsPendingInstallVerification(ctx context.Context, hostID uint) (adamIDs map[string]struct{}, err error) { s.mu.Lock() s.MapAdamIDsPendingInstallVerificationFuncInvoked = true s.mu.Unlock() return s.MapAdamIDsPendingInstallVerificationFunc(ctx, hostID) } func (s *DataStore) MapAdamIDsRecentInstalls(ctx context.Context, hostID uint, seconds int) (adamIDs map[string]struct{}, err error) { s.mu.Lock() s.MapAdamIDsRecentInstallsFuncInvoked = true s.mu.Unlock() return s.MapAdamIDsRecentInstallsFunc(ctx, hostID, seconds) } func (s *DataStore) GetTitleInfoFromVPPAppsTeamsID(ctx context.Context, vppAppsTeamsID uint) (*fleet.PolicySoftwareTitle, error) { s.mu.Lock() s.GetTitleInfoFromVPPAppsTeamsIDFuncInvoked = true s.mu.Unlock() return s.GetTitleInfoFromVPPAppsTeamsIDFunc(ctx, vppAppsTeamsID) } func (s *DataStore) GetVPPAppMetadataByAdamIDPlatformTeamID(ctx context.Context, adamID string, platform fleet.InstallableDevicePlatform, teamID *uint) (*fleet.VPPApp, error) { s.mu.Lock() s.GetVPPAppMetadataByAdamIDPlatformTeamIDFuncInvoked = true s.mu.Unlock() return s.GetVPPAppMetadataByAdamIDPlatformTeamIDFunc(ctx, adamID, platform, teamID) } func (s *DataStore) DeleteSoftwareInstaller(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteSoftwareInstallerFuncInvoked = true s.mu.Unlock() return s.DeleteSoftwareInstallerFunc(ctx, id) } func (s *DataStore) DeleteVPPAppFromTeam(ctx context.Context, teamID *uint, appID fleet.VPPAppID) error { s.mu.Lock() s.DeleteVPPAppFromTeamFuncInvoked = true s.mu.Unlock() return s.DeleteVPPAppFromTeamFunc(ctx, teamID, appID) } func (s *DataStore) GetAndroidAppsInScopeForHost(ctx context.Context, hostID uint) (applicationIDs []string, err error) { s.mu.Lock() s.GetAndroidAppsInScopeForHostFuncInvoked = true s.mu.Unlock() return s.GetAndroidAppsInScopeForHostFunc(ctx, hostID) } func (s *DataStore) GetSummaryHostSoftwareInstalls(ctx context.Context, installerID uint) (*fleet.SoftwareInstallerStatusSummary, error) { s.mu.Lock() s.GetSummaryHostSoftwareInstallsFuncInvoked = true s.mu.Unlock() return s.GetSummaryHostSoftwareInstallsFunc(ctx, installerID) } func (s *DataStore) GetSummaryHostVPPAppInstalls(ctx context.Context, teamID *uint, appID fleet.VPPAppID) (*fleet.VPPAppStatusSummary, error) { s.mu.Lock() s.GetSummaryHostVPPAppInstallsFuncInvoked = true s.mu.Unlock() return s.GetSummaryHostVPPAppInstallsFunc(ctx, teamID, appID) } func (s *DataStore) GetSoftwareInstallResults(ctx context.Context, resultsUUID string) (*fleet.HostSoftwareInstallerResult, error) { s.mu.Lock() s.GetSoftwareInstallResultsFuncInvoked = true s.mu.Unlock() return s.GetSoftwareInstallResultsFunc(ctx, resultsUUID) } func (s *DataStore) CleanupUnusedSoftwareInstallers(ctx context.Context, softwareInstallStore fleet.SoftwareInstallerStore, removeCreatedBefore time.Time) error { s.mu.Lock() s.CleanupUnusedSoftwareInstallersFuncInvoked = true s.mu.Unlock() return s.CleanupUnusedSoftwareInstallersFunc(ctx, softwareInstallStore, removeCreatedBefore) } func (s *DataStore) SaveInHouseAppUpdates(ctx context.Context, payload *fleet.UpdateSoftwareInstallerPayload) error { s.mu.Lock() s.SaveInHouseAppUpdatesFuncInvoked = true s.mu.Unlock() return s.SaveInHouseAppUpdatesFunc(ctx, payload) } func (s *DataStore) GetInHouseAppMetadataByTeamAndTitleID(ctx context.Context, teamID *uint, titleID uint) (*fleet.SoftwareInstaller, error) { s.mu.Lock() s.GetInHouseAppMetadataByTeamAndTitleIDFuncInvoked = true s.mu.Unlock() return s.GetInHouseAppMetadataByTeamAndTitleIDFunc(ctx, teamID, titleID) } func (s *DataStore) RemovePendingInHouseAppInstalls(ctx context.Context, inHouseAppID uint) error { s.mu.Lock() s.RemovePendingInHouseAppInstallsFuncInvoked = true s.mu.Unlock() return s.RemovePendingInHouseAppInstallsFunc(ctx, inHouseAppID) } func (s *DataStore) GetSummaryHostInHouseAppInstalls(ctx context.Context, teamID *uint, inHouseAppID uint) (*fleet.VPPAppStatusSummary, error) { s.mu.Lock() s.GetSummaryHostInHouseAppInstallsFuncInvoked = true s.mu.Unlock() return s.GetSummaryHostInHouseAppInstallsFunc(ctx, teamID, inHouseAppID) } func (s *DataStore) DeleteInHouseApp(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteInHouseAppFuncInvoked = true s.mu.Unlock() return s.DeleteInHouseAppFunc(ctx, id) } func (s *DataStore) CleanupUnusedSoftwareTitleIcons(ctx context.Context, softwareTitleIconStore fleet.SoftwareTitleIconStore, removeCreatedBefore time.Time) error { s.mu.Lock() s.CleanupUnusedSoftwareTitleIconsFuncInvoked = true s.mu.Unlock() return s.CleanupUnusedSoftwareTitleIconsFunc(ctx, softwareTitleIconStore, removeCreatedBefore) } func (s *DataStore) BatchSetSoftwareInstallers(ctx context.Context, tmID *uint, installers []*fleet.UploadSoftwareInstallerPayload) error { s.mu.Lock() s.BatchSetSoftwareInstallersFuncInvoked = true s.mu.Unlock() return s.BatchSetSoftwareInstallersFunc(ctx, tmID, installers) } func (s *DataStore) BatchSetInHouseAppsInstallers(ctx context.Context, tmID *uint, installers []*fleet.UploadSoftwareInstallerPayload) error { s.mu.Lock() s.BatchSetInHouseAppsInstallersFuncInvoked = true s.mu.Unlock() return s.BatchSetInHouseAppsInstallersFunc(ctx, tmID, installers) } func (s *DataStore) GetSoftwareInstallers(ctx context.Context, tmID uint) ([]fleet.SoftwarePackageResponse, error) { s.mu.Lock() s.GetSoftwareInstallersFuncInvoked = true s.mu.Unlock() return s.GetSoftwareInstallersFunc(ctx, tmID) } func (s *DataStore) HasSelfServiceSoftwareInstallers(ctx context.Context, platform string, teamID *uint) (bool, error) { s.mu.Lock() s.HasSelfServiceSoftwareInstallersFuncInvoked = true s.mu.Unlock() return s.HasSelfServiceSoftwareInstallersFunc(ctx, platform, teamID) } func (s *DataStore) CreateOrUpdateSoftwareTitleIcon(ctx context.Context, payload *fleet.UploadSoftwareTitleIconPayload) (*fleet.SoftwareTitleIcon, error) { s.mu.Lock() s.CreateOrUpdateSoftwareTitleIconFuncInvoked = true s.mu.Unlock() return s.CreateOrUpdateSoftwareTitleIconFunc(ctx, payload) } func (s *DataStore) GetSoftwareTitleIcon(ctx context.Context, teamID uint, titleID uint) (*fleet.SoftwareTitleIcon, error) { s.mu.Lock() s.GetSoftwareTitleIconFuncInvoked = true s.mu.Unlock() return s.GetSoftwareTitleIconFunc(ctx, teamID, titleID) } func (s *DataStore) GetTeamIdsForIconStorageId(ctx context.Context, storageID string) ([]uint, error) { s.mu.Lock() s.GetTeamIdsForIconStorageIdFuncInvoked = true s.mu.Unlock() return s.GetTeamIdsForIconStorageIdFunc(ctx, storageID) } func (s *DataStore) GetSoftwareIconsByTeamAndTitleIds(ctx context.Context, teamID uint, titleIDs []uint) (map[uint]fleet.SoftwareTitleIcon, error) { s.mu.Lock() s.GetSoftwareIconsByTeamAndTitleIdsFuncInvoked = true s.mu.Unlock() return s.GetSoftwareIconsByTeamAndTitleIdsFunc(ctx, teamID, titleIDs) } func (s *DataStore) DeleteSoftwareTitleIcon(ctx context.Context, teamID uint, titleID uint) error { s.mu.Lock() s.DeleteSoftwareTitleIconFuncInvoked = true s.mu.Unlock() return s.DeleteSoftwareTitleIconFunc(ctx, teamID, titleID) } func (s *DataStore) DeleteIconsAssociatedWithTitlesWithoutInstallers(ctx context.Context, teamID uint) error { s.mu.Lock() s.DeleteIconsAssociatedWithTitlesWithoutInstallersFuncInvoked = true s.mu.Unlock() return s.DeleteIconsAssociatedWithTitlesWithoutInstallersFunc(ctx, teamID) } func (s *DataStore) ActivityDetailsForSoftwareTitleIcon(ctx context.Context, teamID uint, titleID uint) (fleet.DetailsForSoftwareIconActivity, error) { s.mu.Lock() s.ActivityDetailsForSoftwareTitleIconFuncInvoked = true s.mu.Unlock() return s.ActivityDetailsForSoftwareTitleIconFunc(ctx, teamID, titleID) } func (s *DataStore) BatchInsertVPPApps(ctx context.Context, apps []*fleet.VPPApp) error { s.mu.Lock() s.BatchInsertVPPAppsFuncInvoked = true s.mu.Unlock() return s.BatchInsertVPPAppsFunc(ctx, apps) } func (s *DataStore) GetAssignedVPPApps(ctx context.Context, teamID *uint) (map[fleet.VPPAppID]fleet.VPPAppTeam, error) { s.mu.Lock() s.GetAssignedVPPAppsFuncInvoked = true s.mu.Unlock() return s.GetAssignedVPPAppsFunc(ctx, teamID) } func (s *DataStore) GetVPPApps(ctx context.Context, teamID *uint) ([]fleet.VPPAppResponse, error) { s.mu.Lock() s.GetVPPAppsFuncInvoked = true s.mu.Unlock() return s.GetVPPAppsFunc(ctx, teamID) } func (s *DataStore) SetTeamVPPApps(ctx context.Context, teamID *uint, appIDs []fleet.VPPAppTeam, appStoreAppIDsToTitleIDs map[string]uint) (bool, error) { s.mu.Lock() s.SetTeamVPPAppsFuncInvoked = true s.mu.Unlock() return s.SetTeamVPPAppsFunc(ctx, teamID, appIDs, appStoreAppIDsToTitleIDs) } func (s *DataStore) InsertVPPAppWithTeam(ctx context.Context, app *fleet.VPPApp, teamID *uint) (*fleet.VPPApp, error) { s.mu.Lock() s.InsertVPPAppWithTeamFuncInvoked = true s.mu.Unlock() return s.InsertVPPAppWithTeamFunc(ctx, app, teamID) } func (s *DataStore) GetVPPAppsToInstallDuringSetupExperience(ctx context.Context, teamID *uint, platform string) ([]string, error) { s.mu.Lock() s.GetVPPAppsToInstallDuringSetupExperienceFuncInvoked = true s.mu.Unlock() return s.GetVPPAppsToInstallDuringSetupExperienceFunc(ctx, teamID, platform) } func (s *DataStore) GetAllVPPApps(ctx context.Context) ([]*fleet.VPPApp, error) { s.mu.Lock() s.GetAllVPPAppsFuncInvoked = true s.mu.Unlock() return s.GetAllVPPAppsFunc(ctx) } func (s *DataStore) InsertVPPApps(ctx context.Context, apps []*fleet.VPPApp) error { s.mu.Lock() s.InsertVPPAppsFuncInvoked = true s.mu.Unlock() return s.InsertVPPAppsFunc(ctx, apps) } func (s *DataStore) InsertHostVPPSoftwareInstall(ctx context.Context, hostID uint, appID fleet.VPPAppID, commandUUID string, associatedEventID string, opts fleet.HostSoftwareInstallOptions) error { s.mu.Lock() s.InsertHostVPPSoftwareInstallFuncInvoked = true s.mu.Unlock() return s.InsertHostVPPSoftwareInstallFunc(ctx, hostID, appID, commandUUID, associatedEventID, opts) } func (s *DataStore) GetPastActivityDataForVPPAppInstall(ctx context.Context, commandResults *mdm.CommandResults) (*fleet.User, *fleet.ActivityInstalledAppStoreApp, error) { s.mu.Lock() s.GetPastActivityDataForVPPAppInstallFuncInvoked = true s.mu.Unlock() return s.GetPastActivityDataForVPPAppInstallFunc(ctx, commandResults) } func (s *DataStore) GetVPPAppInstallStatusByCommandUUID(ctx context.Context, commandUUID string) (bool, error) { s.mu.Lock() s.GetVPPAppInstallStatusByCommandUUIDFuncInvoked = true s.mu.Unlock() return s.GetVPPAppInstallStatusByCommandUUIDFunc(ctx, commandUUID) } func (s *DataStore) IsAutoUpdateVPPInstall(ctx context.Context, commandUUID string) (bool, error) { s.mu.Lock() s.IsAutoUpdateVPPInstallFuncInvoked = true s.mu.Unlock() return s.IsAutoUpdateVPPInstallFunc(ctx, commandUUID) } func (s *DataStore) GetVPPTokenByLocation(ctx context.Context, loc string) (*fleet.VPPTokenDB, error) { s.mu.Lock() s.GetVPPTokenByLocationFuncInvoked = true s.mu.Unlock() return s.GetVPPTokenByLocationFunc(ctx, loc) } func (s *DataStore) GetIncludedHostIDMapForVPPApp(ctx context.Context, vppAppTeamID uint) (map[uint]struct{}, error) { s.mu.Lock() s.GetIncludedHostIDMapForVPPAppFuncInvoked = true s.mu.Unlock() return s.GetIncludedHostIDMapForVPPAppFunc(ctx, vppAppTeamID) } func (s *DataStore) GetIncludedHostUUIDMapForAppStoreApp(ctx context.Context, vppAppTeamID uint) (map[string]string, error) { s.mu.Lock() s.GetIncludedHostUUIDMapForAppStoreAppFuncInvoked = true s.mu.Unlock() return s.GetIncludedHostUUIDMapForAppStoreAppFunc(ctx, vppAppTeamID) } func (s *DataStore) GetExcludedHostIDMapForVPPApp(ctx context.Context, vppAppTeamID uint) (map[uint]struct{}, error) { s.mu.Lock() s.GetExcludedHostIDMapForVPPAppFuncInvoked = true s.mu.Unlock() return s.GetExcludedHostIDMapForVPPAppFunc(ctx, vppAppTeamID) } func (s *DataStore) ClearVPPAppAutoInstallPolicyStatusForHosts(ctx context.Context, vppAppTeamID uint, hostIDs []uint) error { s.mu.Lock() s.ClearVPPAppAutoInstallPolicyStatusForHostsFuncInvoked = true s.mu.Unlock() return s.ClearVPPAppAutoInstallPolicyStatusForHostsFunc(ctx, vppAppTeamID, hostIDs) } func (s *DataStore) SetSetupExperienceSoftwareTitles(ctx context.Context, platform string, teamID uint, titleIDs []uint) error { s.mu.Lock() s.SetSetupExperienceSoftwareTitlesFuncInvoked = true s.mu.Unlock() return s.SetSetupExperienceSoftwareTitlesFunc(ctx, platform, teamID, titleIDs) } func (s *DataStore) ListSetupExperienceSoftwareTitles(ctx context.Context, platform string, teamID uint, opts fleet.ListOptions) ([]fleet.SoftwareTitleListResult, int, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListSetupExperienceSoftwareTitlesFuncInvoked = true s.mu.Unlock() return s.ListSetupExperienceSoftwareTitlesFunc(ctx, platform, teamID, opts) } func (s *DataStore) SetHostAwaitingConfiguration(ctx context.Context, hostUUID string, inSetupExperience bool) error { s.mu.Lock() s.SetHostAwaitingConfigurationFuncInvoked = true s.mu.Unlock() return s.SetHostAwaitingConfigurationFunc(ctx, hostUUID, inSetupExperience) } func (s *DataStore) GetHostAwaitingConfiguration(ctx context.Context, hostUUID string) (bool, error) { s.mu.Lock() s.GetHostAwaitingConfigurationFuncInvoked = true s.mu.Unlock() return s.GetHostAwaitingConfigurationFunc(ctx, hostUUID) } func (s *DataStore) GetTeamsWithInstallerByHash(ctx context.Context, sha256 string, url string) (map[uint][]*fleet.ExistingSoftwareInstaller, error) { s.mu.Lock() s.GetTeamsWithInstallerByHashFuncInvoked = true s.mu.Unlock() return s.GetTeamsWithInstallerByHashFunc(ctx, sha256, url) } func (s *DataStore) TeamIDsWithSetupExperienceIdPEnabled(ctx context.Context) ([]uint, error) { s.mu.Lock() s.TeamIDsWithSetupExperienceIdPEnabledFuncInvoked = true s.mu.Unlock() return s.TeamIDsWithSetupExperienceIdPEnabledFunc(ctx) } func (s *DataStore) ListSetupExperienceResultsByHostUUID(ctx context.Context, hostUUID string) ([]*fleet.SetupExperienceStatusResult, error) { s.mu.Lock() s.ListSetupExperienceResultsByHostUUIDFuncInvoked = true s.mu.Unlock() return s.ListSetupExperienceResultsByHostUUIDFunc(ctx, hostUUID) } func (s *DataStore) UpdateSetupExperienceStatusResult(ctx context.Context, status *fleet.SetupExperienceStatusResult) error { s.mu.Lock() s.UpdateSetupExperienceStatusResultFuncInvoked = true s.mu.Unlock() return s.UpdateSetupExperienceStatusResultFunc(ctx, status) } func (s *DataStore) EnqueueSetupExperienceItems(ctx context.Context, hostPlatformLike string, hostUUID string, teamID uint) (bool, error) { s.mu.Lock() s.EnqueueSetupExperienceItemsFuncInvoked = true s.mu.Unlock() return s.EnqueueSetupExperienceItemsFunc(ctx, hostPlatformLike, hostUUID, teamID) } func (s *DataStore) ResetSetupExperienceItemsAfterFailure(ctx context.Context, hostPlatformLike string, hostUUID string, teamID uint) (bool, error) { s.mu.Lock() s.ResetSetupExperienceItemsAfterFailureFuncInvoked = true s.mu.Unlock() return s.ResetSetupExperienceItemsAfterFailureFunc(ctx, hostPlatformLike, hostUUID, teamID) } func (s *DataStore) CancelPendingSetupExperienceSteps(ctx context.Context, hostUUID string) error { s.mu.Lock() s.CancelPendingSetupExperienceStepsFuncInvoked = true s.mu.Unlock() return s.CancelPendingSetupExperienceStepsFunc(ctx, hostUUID) } func (s *DataStore) GetSetupExperienceScript(ctx context.Context, teamID *uint) (*fleet.Script, error) { s.mu.Lock() s.GetSetupExperienceScriptFuncInvoked = true s.mu.Unlock() return s.GetSetupExperienceScriptFunc(ctx, teamID) } func (s *DataStore) GetSetupExperienceScriptByID(ctx context.Context, scriptID uint) (*fleet.Script, error) { s.mu.Lock() s.GetSetupExperienceScriptByIDFuncInvoked = true s.mu.Unlock() return s.GetSetupExperienceScriptByIDFunc(ctx, scriptID) } func (s *DataStore) SetSetupExperienceScript(ctx context.Context, script *fleet.Script) error { s.mu.Lock() s.SetSetupExperienceScriptFuncInvoked = true s.mu.Unlock() return s.SetSetupExperienceScriptFunc(ctx, script) } func (s *DataStore) DeleteSetupExperienceScript(ctx context.Context, teamID *uint) error { s.mu.Lock() s.DeleteSetupExperienceScriptFuncInvoked = true s.mu.Unlock() return s.DeleteSetupExperienceScriptFunc(ctx, teamID) } func (s *DataStore) MaybeUpdateSetupExperienceScriptStatus(ctx context.Context, hostUUID string, executionID string, status fleet.SetupExperienceStatusResultStatus) (bool, error) { s.mu.Lock() s.MaybeUpdateSetupExperienceScriptStatusFuncInvoked = true s.mu.Unlock() return s.MaybeUpdateSetupExperienceScriptStatusFunc(ctx, hostUUID, executionID, status) } func (s *DataStore) MaybeUpdateSetupExperienceSoftwareInstallStatus(ctx context.Context, hostUUID string, executionID string, status fleet.SetupExperienceStatusResultStatus) (bool, error) { s.mu.Lock() s.MaybeUpdateSetupExperienceSoftwareInstallStatusFuncInvoked = true s.mu.Unlock() return s.MaybeUpdateSetupExperienceSoftwareInstallStatusFunc(ctx, hostUUID, executionID, status) } func (s *DataStore) MaybeUpdateSetupExperienceVPPStatus(ctx context.Context, hostUUID string, commandUUID string, status fleet.SetupExperienceStatusResultStatus) (bool, error) { s.mu.Lock() s.MaybeUpdateSetupExperienceVPPStatusFuncInvoked = true s.mu.Unlock() return s.MaybeUpdateSetupExperienceVPPStatusFunc(ctx, hostUUID, commandUUID, status) } func (s *DataStore) ListAvailableFleetMaintainedApps(ctx context.Context, teamID *uint, opt fleet.ListOptions) ([]fleet.MaintainedApp, *fleet.PaginationMetadata, error) { s.mu.Lock() s.ListAvailableFleetMaintainedAppsFuncInvoked = true s.mu.Unlock() return s.ListAvailableFleetMaintainedAppsFunc(ctx, teamID, opt) } func (s *DataStore) ClearRemovedFleetMaintainedApps(ctx context.Context, slugsToKeep []string) error { s.mu.Lock() s.ClearRemovedFleetMaintainedAppsFuncInvoked = true s.mu.Unlock() return s.ClearRemovedFleetMaintainedAppsFunc(ctx, slugsToKeep) } func (s *DataStore) GetSetupExperienceCount(ctx context.Context, platform string, teamID *uint) (*fleet.SetupExperienceCount, error) { s.mu.Lock() s.GetSetupExperienceCountFuncInvoked = true s.mu.Unlock() return s.GetSetupExperienceCountFunc(ctx, platform, teamID) } func (s *DataStore) GetMaintainedAppByID(ctx context.Context, appID uint, teamID *uint) (*fleet.MaintainedApp, error) { s.mu.Lock() s.GetMaintainedAppByIDFuncInvoked = true s.mu.Unlock() return s.GetMaintainedAppByIDFunc(ctx, appID, teamID) } func (s *DataStore) GetMaintainedAppBySlug(ctx context.Context, slug string, teamID *uint) (*fleet.MaintainedApp, error) { s.mu.Lock() s.GetMaintainedAppBySlugFuncInvoked = true s.mu.Unlock() return s.GetMaintainedAppBySlugFunc(ctx, slug, teamID) } func (s *DataStore) UpsertMaintainedApp(ctx context.Context, app *fleet.MaintainedApp) (*fleet.MaintainedApp, error) { s.mu.Lock() s.UpsertMaintainedAppFuncInvoked = true s.mu.Unlock() return s.UpsertMaintainedAppFunc(ctx, app) } func (s *DataStore) BulkUpsertMDMManagedCertificates(ctx context.Context, payload []*fleet.MDMManagedCertificate) error { s.mu.Lock() s.BulkUpsertMDMManagedCertificatesFuncInvoked = true s.mu.Unlock() return s.BulkUpsertMDMManagedCertificatesFunc(ctx, payload) } func (s *DataStore) GetAppleHostMDMCertificateProfile(ctx context.Context, hostUUID string, profileUUID string, caName string) (*fleet.HostMDMCertificateProfile, error) { s.mu.Lock() s.GetAppleHostMDMCertificateProfileFuncInvoked = true s.mu.Unlock() return s.GetAppleHostMDMCertificateProfileFunc(ctx, hostUUID, profileUUID, caName) } func (s *DataStore) GetWindowsHostMDMCertificateProfile(ctx context.Context, hostUUID string, profileUUID string, caName string) (*fleet.HostMDMCertificateProfile, error) { s.mu.Lock() s.GetWindowsHostMDMCertificateProfileFuncInvoked = true s.mu.Unlock() return s.GetWindowsHostMDMCertificateProfileFunc(ctx, hostUUID, profileUUID, caName) } func (s *DataStore) CleanUpMDMManagedCertificates(ctx context.Context) error { s.mu.Lock() s.CleanUpMDMManagedCertificatesFuncInvoked = true s.mu.Unlock() return s.CleanUpMDMManagedCertificatesFunc(ctx) } func (s *DataStore) RenewMDMManagedCertificates(ctx context.Context) error { s.mu.Lock() s.RenewMDMManagedCertificatesFuncInvoked = true s.mu.Unlock() return s.RenewMDMManagedCertificatesFunc(ctx) } func (s *DataStore) ListHostMDMManagedCertificates(ctx context.Context, hostUUID string) ([]*fleet.MDMManagedCertificate, error) { s.mu.Lock() s.ListHostMDMManagedCertificatesFuncInvoked = true s.mu.Unlock() return s.ListHostMDMManagedCertificatesFunc(ctx, hostUUID) } func (s *DataStore) ResendHostCertificateProfile(ctx context.Context, hostUUID string, profUUID string) error { s.mu.Lock() s.ResendHostCertificateProfileFuncInvoked = true s.mu.Unlock() return s.ResendHostCertificateProfileFunc(ctx, hostUUID, profUUID) } func (s *DataStore) UpsertSecretVariables(ctx context.Context, secretVariables []fleet.SecretVariable) error { s.mu.Lock() s.UpsertSecretVariablesFuncInvoked = true s.mu.Unlock() return s.UpsertSecretVariablesFunc(ctx, secretVariables) } func (s *DataStore) CreateSecretVariable(ctx context.Context, name string, value string) (id uint, err error) { s.mu.Lock() s.CreateSecretVariableFuncInvoked = true s.mu.Unlock() return s.CreateSecretVariableFunc(ctx, name, value) } func (s *DataStore) ListSecretVariables(ctx context.Context, opt fleet.ListOptions) (secretVariables []fleet.SecretVariableIdentifier, meta *fleet.PaginationMetadata, count int, err error) { s.mu.Lock() s.ListSecretVariablesFuncInvoked = true s.mu.Unlock() return s.ListSecretVariablesFunc(ctx, opt) } func (s *DataStore) DeleteSecretVariable(ctx context.Context, id uint) (name string, err error) { s.mu.Lock() s.DeleteSecretVariableFuncInvoked = true s.mu.Unlock() return s.DeleteSecretVariableFunc(ctx, id) } func (s *DataStore) GetSecretVariables(ctx context.Context, names []string) ([]fleet.SecretVariable, error) { s.mu.Lock() s.GetSecretVariablesFuncInvoked = true s.mu.Unlock() return s.GetSecretVariablesFunc(ctx, names) } func (s *DataStore) ValidateEmbeddedSecrets(ctx context.Context, documents []string) error { s.mu.Lock() s.ValidateEmbeddedSecretsFuncInvoked = true s.mu.Unlock() return s.ValidateEmbeddedSecretsFunc(ctx, documents) } func (s *DataStore) ExpandEmbeddedSecrets(ctx context.Context, document string) (string, error) { s.mu.Lock() s.ExpandEmbeddedSecretsFuncInvoked = true s.mu.Unlock() return s.ExpandEmbeddedSecretsFunc(ctx, document) } func (s *DataStore) ExpandEmbeddedSecretsAndUpdatedAt(ctx context.Context, document string) (string, *time.Time, error) { s.mu.Lock() s.ExpandEmbeddedSecretsAndUpdatedAtFuncInvoked = true s.mu.Unlock() return s.ExpandEmbeddedSecretsAndUpdatedAtFunc(ctx, document) } func (s *DataStore) CreateEnterprise(ctx context.Context, userID uint) (uint, error) { s.mu.Lock() s.CreateEnterpriseFuncInvoked = true s.mu.Unlock() return s.CreateEnterpriseFunc(ctx, userID) } func (s *DataStore) GetEnterpriseByID(ctx context.Context, id uint) (*android.EnterpriseDetails, error) { s.mu.Lock() s.GetEnterpriseByIDFuncInvoked = true s.mu.Unlock() return s.GetEnterpriseByIDFunc(ctx, id) } func (s *DataStore) GetEnterpriseBySignupToken(ctx context.Context, signupToken string) (*android.EnterpriseDetails, error) { s.mu.Lock() s.GetEnterpriseBySignupTokenFuncInvoked = true s.mu.Unlock() return s.GetEnterpriseBySignupTokenFunc(ctx, signupToken) } func (s *DataStore) GetEnterprise(ctx context.Context) (*android.Enterprise, error) { s.mu.Lock() s.GetEnterpriseFuncInvoked = true s.mu.Unlock() return s.GetEnterpriseFunc(ctx) } func (s *DataStore) UpdateEnterprise(ctx context.Context, enterprise *android.EnterpriseDetails) error { s.mu.Lock() s.UpdateEnterpriseFuncInvoked = true s.mu.Unlock() return s.UpdateEnterpriseFunc(ctx, enterprise) } func (s *DataStore) DeleteAllEnterprises(ctx context.Context) error { s.mu.Lock() s.DeleteAllEnterprisesFuncInvoked = true s.mu.Unlock() return s.DeleteAllEnterprisesFunc(ctx) } func (s *DataStore) DeleteOtherEnterprises(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteOtherEnterprisesFuncInvoked = true s.mu.Unlock() return s.DeleteOtherEnterprisesFunc(ctx, id) } func (s *DataStore) CreateDeviceTx(ctx context.Context, tx sqlx.ExtContext, device *android.Device) (*android.Device, error) { s.mu.Lock() s.CreateDeviceTxFuncInvoked = true s.mu.Unlock() return s.CreateDeviceTxFunc(ctx, tx, device) } func (s *DataStore) UpdateDeviceTx(ctx context.Context, tx sqlx.ExtContext, device *android.Device) error { s.mu.Lock() s.UpdateDeviceTxFuncInvoked = true s.mu.Unlock() return s.UpdateDeviceTxFunc(ctx, tx, device) } func (s *DataStore) AndroidHostLite(ctx context.Context, enterpriseSpecificID string) (*fleet.AndroidHost, error) { s.mu.Lock() s.AndroidHostLiteFuncInvoked = true s.mu.Unlock() return s.AndroidHostLiteFunc(ctx, enterpriseSpecificID) } func (s *DataStore) AndroidHostLiteByHostUUID(ctx context.Context, hostUUID string) (*fleet.AndroidHost, error) { s.mu.Lock() s.AndroidHostLiteByHostUUIDFuncInvoked = true s.mu.Unlock() return s.AndroidHostLiteByHostUUIDFunc(ctx, hostUUID) } func (s *DataStore) BulkSetAndroidHostsUnenrolled(ctx context.Context) error { s.mu.Lock() s.BulkSetAndroidHostsUnenrolledFuncInvoked = true s.mu.Unlock() return s.BulkSetAndroidHostsUnenrolledFunc(ctx) } func (s *DataStore) SetAndroidHostUnenrolled(ctx context.Context, hostID uint) (bool, error) { s.mu.Lock() s.SetAndroidHostUnenrolledFuncInvoked = true s.mu.Unlock() return s.SetAndroidHostUnenrolledFunc(ctx, hostID) } func (s *DataStore) NewAndroidHost(ctx context.Context, host *fleet.AndroidHost, companyOwned bool) (*fleet.AndroidHost, error) { s.mu.Lock() s.NewAndroidHostFuncInvoked = true s.mu.Unlock() return s.NewAndroidHostFunc(ctx, host, companyOwned) } func (s *DataStore) SetAndroidEnabledAndConfigured(ctx context.Context, configured bool) error { s.mu.Lock() s.SetAndroidEnabledAndConfiguredFuncInvoked = true s.mu.Unlock() return s.SetAndroidEnabledAndConfiguredFunc(ctx, configured) } func (s *DataStore) UpdateAndroidHost(ctx context.Context, host *fleet.AndroidHost, fromEnroll bool, companyOwned bool) error { s.mu.Lock() s.UpdateAndroidHostFuncInvoked = true s.mu.Unlock() return s.UpdateAndroidHostFunc(ctx, host, fromEnroll, companyOwned) } func (s *DataStore) BulkUpsertMDMAndroidHostProfiles(ctx context.Context, payload []*fleet.MDMAndroidProfilePayload) error { s.mu.Lock() s.BulkUpsertMDMAndroidHostProfilesFuncInvoked = true s.mu.Unlock() return s.BulkUpsertMDMAndroidHostProfilesFunc(ctx, payload) } func (s *DataStore) BulkDeleteMDMAndroidHostProfiles(ctx context.Context, hostUUID string, policyVersionID int64) error { s.mu.Lock() s.BulkDeleteMDMAndroidHostProfilesFuncInvoked = true s.mu.Unlock() return s.BulkDeleteMDMAndroidHostProfilesFunc(ctx, hostUUID, policyVersionID) } func (s *DataStore) ListHostMDMAndroidProfilesPendingOrFailedInstallWithVersion(ctx context.Context, hostUUID string, policyVersion int64) ([]*fleet.MDMAndroidProfilePayload, error) { s.mu.Lock() s.ListHostMDMAndroidProfilesPendingOrFailedInstallWithVersionFuncInvoked = true s.mu.Unlock() return s.ListHostMDMAndroidProfilesPendingOrFailedInstallWithVersionFunc(ctx, hostUUID, policyVersion) } func (s *DataStore) GetAndroidPolicyRequestByUUID(ctx context.Context, requestUUID string) (*android.MDMAndroidPolicyRequest, error) { s.mu.Lock() s.GetAndroidPolicyRequestByUUIDFuncInvoked = true s.mu.Unlock() return s.GetAndroidPolicyRequestByUUIDFunc(ctx, requestUUID) } func (s *DataStore) GetLatestAppleMDMCommandOfType(ctx context.Context, hostUUID string, commandType string) (*fleet.MDMCommand, error) { s.mu.Lock() s.GetLatestAppleMDMCommandOfTypeFuncInvoked = true s.mu.Unlock() return s.GetLatestAppleMDMCommandOfTypeFunc(ctx, hostUUID, commandType) } func (s *DataStore) SetLockCommandForLostModeCheckin(ctx context.Context, hostID uint, commandUUID string) error { s.mu.Lock() s.SetLockCommandForLostModeCheckinFuncInvoked = true s.mu.Unlock() return s.SetLockCommandForLostModeCheckinFunc(ctx, hostID, commandUUID) } func (s *DataStore) ListHostMDMAndroidVPPAppsPendingInstallWithVersion(ctx context.Context, hostUUID string, policyVersion int64) ([]*fleet.HostAndroidVPPSoftwareInstall, error) { s.mu.Lock() s.ListHostMDMAndroidVPPAppsPendingInstallWithVersionFuncInvoked = true s.mu.Unlock() return s.ListHostMDMAndroidVPPAppsPendingInstallWithVersionFunc(ctx, hostUUID, policyVersion) } func (s *DataStore) BulkSetVPPInstallsAsVerified(ctx context.Context, hostID uint, commandUUIDs []string) error { s.mu.Lock() s.BulkSetVPPInstallsAsVerifiedFuncInvoked = true s.mu.Unlock() return s.BulkSetVPPInstallsAsVerifiedFunc(ctx, hostID, commandUUIDs) } func (s *DataStore) BulkSetVPPInstallsAsFailed(ctx context.Context, hostID uint, commandUUIDs []string) error { s.mu.Lock() s.BulkSetVPPInstallsAsFailedFuncInvoked = true s.mu.Unlock() return s.BulkSetVPPInstallsAsFailedFunc(ctx, hostID, commandUUIDs) } func (s *DataStore) GetPastActivityDataForAndroidVPPAppInstall(ctx context.Context, cmdUUID string, status fleet.SoftwareInstallerStatus) (*fleet.User, *fleet.ActivityInstalledAppStoreApp, error) { s.mu.Lock() s.GetPastActivityDataForAndroidVPPAppInstallFuncInvoked = true s.mu.Unlock() return s.GetPastActivityDataForAndroidVPPAppInstallFunc(ctx, cmdUUID, status) } func (s *DataStore) MarkAllPendingAndroidVPPInstallsAsFailed(ctx context.Context) error { s.mu.Lock() s.MarkAllPendingAndroidVPPInstallsAsFailedFuncInvoked = true s.mu.Unlock() return s.MarkAllPendingAndroidVPPInstallsAsFailedFunc(ctx) } func (s *DataStore) MarkAllPendingVPPInstallsAsFailedForAndroidHost(ctx context.Context, hostID uint) (users []*fleet.User, activities []fleet.ActivityDetails, err error) { s.mu.Lock() s.MarkAllPendingVPPInstallsAsFailedForAndroidHostFuncInvoked = true s.mu.Unlock() return s.MarkAllPendingVPPInstallsAsFailedForAndroidHostFunc(ctx, hostID) } func (s *DataStore) NewMDMAndroidConfigProfile(ctx context.Context, cp fleet.MDMAndroidConfigProfile) (*fleet.MDMAndroidConfigProfile, error) { s.mu.Lock() s.NewMDMAndroidConfigProfileFuncInvoked = true s.mu.Unlock() return s.NewMDMAndroidConfigProfileFunc(ctx, cp) } func (s *DataStore) GetMDMAndroidConfigProfile(ctx context.Context, profileUUID string) (*fleet.MDMAndroidConfigProfile, error) { s.mu.Lock() s.GetMDMAndroidConfigProfileFuncInvoked = true s.mu.Unlock() return s.GetMDMAndroidConfigProfileFunc(ctx, profileUUID) } func (s *DataStore) DeleteMDMAndroidConfigProfile(ctx context.Context, profileUUID string) error { s.mu.Lock() s.DeleteMDMAndroidConfigProfileFuncInvoked = true s.mu.Unlock() return s.DeleteMDMAndroidConfigProfileFunc(ctx, profileUUID) } func (s *DataStore) GetMDMAndroidProfilesSummary(ctx context.Context, teamID *uint) (*fleet.MDMProfilesSummary, error) { s.mu.Lock() s.GetMDMAndroidProfilesSummaryFuncInvoked = true s.mu.Unlock() return s.GetMDMAndroidProfilesSummaryFunc(ctx, teamID) } func (s *DataStore) GetHostCertificateTemplates(ctx context.Context, hostUUID string) ([]fleet.HostCertificateTemplate, error) { s.mu.Lock() s.GetHostCertificateTemplatesFuncInvoked = true s.mu.Unlock() return s.GetHostCertificateTemplatesFunc(ctx, hostUUID) } func (s *DataStore) CreatePendingCertificateTemplatesForExistingHosts(ctx context.Context, certificateTemplateID uint, teamID uint) (int64, error) { s.mu.Lock() s.CreatePendingCertificateTemplatesForExistingHostsFuncInvoked = true s.mu.Unlock() return s.CreatePendingCertificateTemplatesForExistingHostsFunc(ctx, certificateTemplateID, teamID) } func (s *DataStore) CreatePendingCertificateTemplatesForNewHost(ctx context.Context, hostUUID string, teamID uint) (int64, error) { s.mu.Lock() s.CreatePendingCertificateTemplatesForNewHostFuncInvoked = true s.mu.Unlock() return s.CreatePendingCertificateTemplatesForNewHostFunc(ctx, hostUUID, teamID) } func (s *DataStore) RevertStaleCertificateTemplates(ctx context.Context, staleDuration time.Duration) (int64, error) { s.mu.Lock() s.RevertStaleCertificateTemplatesFuncInvoked = true s.mu.Unlock() return s.RevertStaleCertificateTemplatesFunc(ctx, staleDuration) } func (s *DataStore) GetHostMDMAndroidProfiles(ctx context.Context, hostUUID string) ([]fleet.HostMDMAndroidProfile, error) { s.mu.Lock() s.GetHostMDMAndroidProfilesFuncInvoked = true s.mu.Unlock() return s.GetHostMDMAndroidProfilesFunc(ctx, hostUUID) } func (s *DataStore) NewAndroidPolicyRequest(ctx context.Context, req *android.MDMAndroidPolicyRequest) error { s.mu.Lock() s.NewAndroidPolicyRequestFuncInvoked = true s.mu.Unlock() return s.NewAndroidPolicyRequestFunc(ctx, req) } func (s *DataStore) ListMDMAndroidProfilesToSend(ctx context.Context) ([]*fleet.MDMAndroidProfilePayload, []*fleet.MDMAndroidProfilePayload, error) { s.mu.Lock() s.ListMDMAndroidProfilesToSendFuncInvoked = true s.mu.Unlock() return s.ListMDMAndroidProfilesToSendFunc(ctx) } func (s *DataStore) GetMDMAndroidProfilesContents(ctx context.Context, uuids []string) (map[string]json.RawMessage, error) { s.mu.Lock() s.GetMDMAndroidProfilesContentsFuncInvoked = true s.mu.Unlock() return s.GetMDMAndroidProfilesContentsFunc(ctx, uuids) } func (s *DataStore) ListAndroidEnrolledDevicesForReconcile(ctx context.Context) ([]*android.Device, error) { s.mu.Lock() s.ListAndroidEnrolledDevicesForReconcileFuncInvoked = true s.mu.Unlock() return s.ListAndroidEnrolledDevicesForReconcileFunc(ctx) } func (s *DataStore) InsertAndroidSetupExperienceSoftwareInstall(ctx context.Context, payload *fleet.HostAndroidVPPSoftwareInstall) error { s.mu.Lock() s.InsertAndroidSetupExperienceSoftwareInstallFuncInvoked = true s.mu.Unlock() return s.InsertAndroidSetupExperienceSoftwareInstallFunc(ctx, payload) } func (s *DataStore) GetAndroidAppConfiguration(ctx context.Context, applicationID string, teamID uint) (*json.RawMessage, error) { s.mu.Lock() s.GetAndroidAppConfigurationFuncInvoked = true s.mu.Unlock() return s.GetAndroidAppConfigurationFunc(ctx, applicationID, teamID) } func (s *DataStore) GetAndroidAppConfigurationByAppTeamID(ctx context.Context, vppAppTeamID uint) (*json.RawMessage, error) { s.mu.Lock() s.GetAndroidAppConfigurationByAppTeamIDFuncInvoked = true s.mu.Unlock() return s.GetAndroidAppConfigurationByAppTeamIDFunc(ctx, vppAppTeamID) } func (s *DataStore) HasAndroidAppConfigurationChanged(ctx context.Context, applicationID string, teamID uint, newConfig json.RawMessage) (bool, error) { s.mu.Lock() s.HasAndroidAppConfigurationChangedFuncInvoked = true s.mu.Unlock() return s.HasAndroidAppConfigurationChangedFunc(ctx, applicationID, teamID, newConfig) } func (s *DataStore) SetAndroidAppInstallPendingApplyConfig(ctx context.Context, hostUUID string, applicationID string, policyVersion int64) error { s.mu.Lock() s.SetAndroidAppInstallPendingApplyConfigFuncInvoked = true s.mu.Unlock() return s.SetAndroidAppInstallPendingApplyConfigFunc(ctx, hostUUID, applicationID, policyVersion) } func (s *DataStore) BulkGetAndroidAppConfigurations(ctx context.Context, appIDs []string, teamID uint) (map[string]json.RawMessage, error) { s.mu.Lock() s.BulkGetAndroidAppConfigurationsFuncInvoked = true s.mu.Unlock() return s.BulkGetAndroidAppConfigurationsFunc(ctx, appIDs, teamID) } func (s *DataStore) DeleteAndroidAppConfiguration(ctx context.Context, adamID string, teamID uint) error { s.mu.Lock() s.DeleteAndroidAppConfigurationFuncInvoked = true s.mu.Unlock() return s.DeleteAndroidAppConfigurationFunc(ctx, adamID, teamID) } func (s *DataStore) ListMDMAndroidUUIDsToHostIDs(ctx context.Context, hostIDs []uint) (map[string]uint, error) { s.mu.Lock() s.ListMDMAndroidUUIDsToHostIDsFuncInvoked = true s.mu.Unlock() return s.ListMDMAndroidUUIDsToHostIDsFunc(ctx, hostIDs) } func (s *DataStore) CreateScimUser(ctx context.Context, user *fleet.ScimUser) (uint, error) { s.mu.Lock() s.CreateScimUserFuncInvoked = true s.mu.Unlock() return s.CreateScimUserFunc(ctx, user) } func (s *DataStore) ScimUserByID(ctx context.Context, id uint) (*fleet.ScimUser, error) { s.mu.Lock() s.ScimUserByIDFuncInvoked = true s.mu.Unlock() return s.ScimUserByIDFunc(ctx, id) } func (s *DataStore) ScimUserByUserName(ctx context.Context, userName string) (*fleet.ScimUser, error) { s.mu.Lock() s.ScimUserByUserNameFuncInvoked = true s.mu.Unlock() return s.ScimUserByUserNameFunc(ctx, userName) } func (s *DataStore) ScimUserByUserNameOrEmail(ctx context.Context, userName string, email string) (*fleet.ScimUser, error) { s.mu.Lock() s.ScimUserByUserNameOrEmailFuncInvoked = true s.mu.Unlock() return s.ScimUserByUserNameOrEmailFunc(ctx, userName, email) } func (s *DataStore) ScimUserByHostID(ctx context.Context, hostID uint) (*fleet.ScimUser, error) { s.mu.Lock() s.ScimUserByHostIDFuncInvoked = true s.mu.Unlock() return s.ScimUserByHostIDFunc(ctx, hostID) } func (s *DataStore) ScimUsersExist(ctx context.Context, ids []uint) (bool, error) { s.mu.Lock() s.ScimUsersExistFuncInvoked = true s.mu.Unlock() return s.ScimUsersExistFunc(ctx, ids) } func (s *DataStore) ReplaceScimUser(ctx context.Context, user *fleet.ScimUser) error { s.mu.Lock() s.ReplaceScimUserFuncInvoked = true s.mu.Unlock() return s.ReplaceScimUserFunc(ctx, user) } func (s *DataStore) DeleteScimUser(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteScimUserFuncInvoked = true s.mu.Unlock() return s.DeleteScimUserFunc(ctx, id) } func (s *DataStore) ListScimUsers(ctx context.Context, opts fleet.ScimUsersListOptions) (users []fleet.ScimUser, totalResults uint, err error) { s.mu.Lock() s.ListScimUsersFuncInvoked = true s.mu.Unlock() return s.ListScimUsersFunc(ctx, opts) } func (s *DataStore) CreateScimGroup(ctx context.Context, group *fleet.ScimGroup) (uint, error) { s.mu.Lock() s.CreateScimGroupFuncInvoked = true s.mu.Unlock() return s.CreateScimGroupFunc(ctx, group) } func (s *DataStore) ScimGroupByID(ctx context.Context, id uint, excludeUsers bool) (*fleet.ScimGroup, error) { s.mu.Lock() s.ScimGroupByIDFuncInvoked = true s.mu.Unlock() return s.ScimGroupByIDFunc(ctx, id, excludeUsers) } func (s *DataStore) ScimGroupByDisplayName(ctx context.Context, displayName string) (*fleet.ScimGroup, error) { s.mu.Lock() s.ScimGroupByDisplayNameFuncInvoked = true s.mu.Unlock() return s.ScimGroupByDisplayNameFunc(ctx, displayName) } func (s *DataStore) ReplaceScimGroup(ctx context.Context, group *fleet.ScimGroup) error { s.mu.Lock() s.ReplaceScimGroupFuncInvoked = true s.mu.Unlock() return s.ReplaceScimGroupFunc(ctx, group) } func (s *DataStore) DeleteScimGroup(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteScimGroupFuncInvoked = true s.mu.Unlock() return s.DeleteScimGroupFunc(ctx, id) } func (s *DataStore) ListScimGroups(ctx context.Context, opts fleet.ScimGroupsListOptions) (groups []fleet.ScimGroup, totalResults uint, err error) { s.mu.Lock() s.ListScimGroupsFuncInvoked = true s.mu.Unlock() return s.ListScimGroupsFunc(ctx, opts) } func (s *DataStore) ScimLastRequest(ctx context.Context) (*fleet.ScimLastRequest, error) { s.mu.Lock() s.ScimLastRequestFuncInvoked = true s.mu.Unlock() return s.ScimLastRequestFunc(ctx) } func (s *DataStore) UpdateScimLastRequest(ctx context.Context, lastRequest *fleet.ScimLastRequest) error { s.mu.Lock() s.UpdateScimLastRequestFuncInvoked = true s.mu.Unlock() return s.UpdateScimLastRequestFunc(ctx, lastRequest) } func (s *DataStore) MaybeAssociateHostWithScimUser(ctx context.Context, hostID uint) error { s.mu.Lock() s.MaybeAssociateHostWithScimUserFuncInvoked = true s.mu.Unlock() return s.MaybeAssociateHostWithScimUserFunc(ctx, hostID) } func (s *DataStore) NewChallenge(ctx context.Context) (string, error) { s.mu.Lock() s.NewChallengeFuncInvoked = true s.mu.Unlock() return s.NewChallengeFunc(ctx) } func (s *DataStore) ConsumeChallenge(ctx context.Context, challenge string) error { s.mu.Lock() s.ConsumeChallengeFuncInvoked = true s.mu.Unlock() return s.ConsumeChallengeFunc(ctx, challenge) } func (s *DataStore) CleanupExpiredChallenges(ctx context.Context) (int64, error) { s.mu.Lock() s.CleanupExpiredChallengesFuncInvoked = true s.mu.Unlock() return s.CleanupExpiredChallengesFunc(ctx) } func (s *DataStore) ConditionalAccessMicrosoftCreateIntegration(ctx context.Context, tenantID string, proxyServerSecret string) error { s.mu.Lock() s.ConditionalAccessMicrosoftCreateIntegrationFuncInvoked = true s.mu.Unlock() return s.ConditionalAccessMicrosoftCreateIntegrationFunc(ctx, tenantID, proxyServerSecret) } func (s *DataStore) ConditionalAccessMicrosoftGet(ctx context.Context) (*fleet.ConditionalAccessMicrosoftIntegration, error) { s.mu.Lock() s.ConditionalAccessMicrosoftGetFuncInvoked = true s.mu.Unlock() return s.ConditionalAccessMicrosoftGetFunc(ctx) } func (s *DataStore) ConditionalAccessMicrosoftMarkSetupDone(ctx context.Context) error { s.mu.Lock() s.ConditionalAccessMicrosoftMarkSetupDoneFuncInvoked = true s.mu.Unlock() return s.ConditionalAccessMicrosoftMarkSetupDoneFunc(ctx) } func (s *DataStore) ConditionalAccessMicrosoftDelete(ctx context.Context) error { s.mu.Lock() s.ConditionalAccessMicrosoftDeleteFuncInvoked = true s.mu.Unlock() return s.ConditionalAccessMicrosoftDeleteFunc(ctx) } func (s *DataStore) LoadHostConditionalAccessStatus(ctx context.Context, hostID uint) (*fleet.HostConditionalAccessStatus, error) { s.mu.Lock() s.LoadHostConditionalAccessStatusFuncInvoked = true s.mu.Unlock() return s.LoadHostConditionalAccessStatusFunc(ctx, hostID) } func (s *DataStore) CreateHostConditionalAccessStatus(ctx context.Context, hostID uint, deviceID string, userPrincipalName string) error { s.mu.Lock() s.CreateHostConditionalAccessStatusFuncInvoked = true s.mu.Unlock() return s.CreateHostConditionalAccessStatusFunc(ctx, hostID, deviceID, userPrincipalName) } func (s *DataStore) SetHostConditionalAccessStatus(ctx context.Context, hostID uint, managed bool, compliant bool) error { s.mu.Lock() s.SetHostConditionalAccessStatusFuncInvoked = true s.mu.Unlock() return s.SetHostConditionalAccessStatusFunc(ctx, hostID, managed, compliant) } func (s *DataStore) GetHostIdentityCertBySerialNumber(ctx context.Context, serialNumber uint64) (*types.HostIdentityCertificate, error) { s.mu.Lock() s.GetHostIdentityCertBySerialNumberFuncInvoked = true s.mu.Unlock() return s.GetHostIdentityCertBySerialNumberFunc(ctx, serialNumber) } func (s *DataStore) GetHostIdentityCertByName(ctx context.Context, name string) (*types.HostIdentityCertificate, error) { s.mu.Lock() s.GetHostIdentityCertByNameFuncInvoked = true s.mu.Unlock() return s.GetHostIdentityCertByNameFunc(ctx, name) } func (s *DataStore) UpdateHostIdentityCertHostIDBySerial(ctx context.Context, serialNumber uint64, hostID uint) error { s.mu.Lock() s.UpdateHostIdentityCertHostIDBySerialFuncInvoked = true s.mu.Unlock() return s.UpdateHostIdentityCertHostIDBySerialFunc(ctx, serialNumber, hostID) } func (s *DataStore) GetMDMSCEPCertBySerial(ctx context.Context, serialNumber uint64) (deviceUUID string, err error) { s.mu.Lock() s.GetMDMSCEPCertBySerialFuncInvoked = true s.mu.Unlock() return s.GetMDMSCEPCertBySerialFunc(ctx, serialNumber) } func (s *DataStore) GetConditionalAccessCertHostIDBySerialNumber(ctx context.Context, serial uint64) (uint, error) { s.mu.Lock() s.GetConditionalAccessCertHostIDBySerialNumberFuncInvoked = true s.mu.Unlock() return s.GetConditionalAccessCertHostIDBySerialNumberFunc(ctx, serial) } func (s *DataStore) GetConditionalAccessCertCreatedAtByHostID(ctx context.Context, hostID uint) (*time.Time, error) { s.mu.Lock() s.GetConditionalAccessCertCreatedAtByHostIDFuncInvoked = true s.mu.Unlock() return s.GetConditionalAccessCertCreatedAtByHostIDFunc(ctx, hostID) } func (s *DataStore) RevokeOldConditionalAccessCerts(ctx context.Context, gracePeriod time.Duration) (int64, error) { s.mu.Lock() s.RevokeOldConditionalAccessCertsFuncInvoked = true s.mu.Unlock() return s.RevokeOldConditionalAccessCertsFunc(ctx, gracePeriod) } func (s *DataStore) NewCertificateAuthority(ctx context.Context, ca *fleet.CertificateAuthority) (*fleet.CertificateAuthority, error) { s.mu.Lock() s.NewCertificateAuthorityFuncInvoked = true s.mu.Unlock() return s.NewCertificateAuthorityFunc(ctx, ca) } func (s *DataStore) GetCertificateAuthorityByID(ctx context.Context, id uint, includeSecrets bool) (*fleet.CertificateAuthority, error) { s.mu.Lock() s.GetCertificateAuthorityByIDFuncInvoked = true s.mu.Unlock() return s.GetCertificateAuthorityByIDFunc(ctx, id, includeSecrets) } func (s *DataStore) GetAllCertificateAuthorities(ctx context.Context, includeSecrets bool) ([]*fleet.CertificateAuthority, error) { s.mu.Lock() s.GetAllCertificateAuthoritiesFuncInvoked = true s.mu.Unlock() return s.GetAllCertificateAuthoritiesFunc(ctx, includeSecrets) } func (s *DataStore) GetGroupedCertificateAuthorities(ctx context.Context, includeSecrets bool) (*fleet.GroupedCertificateAuthorities, error) { s.mu.Lock() s.GetGroupedCertificateAuthoritiesFuncInvoked = true s.mu.Unlock() return s.GetGroupedCertificateAuthoritiesFunc(ctx, includeSecrets) } func (s *DataStore) ListCertificateAuthorities(ctx context.Context) ([]*fleet.CertificateAuthoritySummary, error) { s.mu.Lock() s.ListCertificateAuthoritiesFuncInvoked = true s.mu.Unlock() return s.ListCertificateAuthoritiesFunc(ctx) } func (s *DataStore) DeleteCertificateAuthority(ctx context.Context, certificateAuthorityID uint) (*fleet.CertificateAuthoritySummary, error) { s.mu.Lock() s.DeleteCertificateAuthorityFuncInvoked = true s.mu.Unlock() return s.DeleteCertificateAuthorityFunc(ctx, certificateAuthorityID) } func (s *DataStore) UpdateCertificateAuthorityByID(ctx context.Context, id uint, certificateAuthority *fleet.CertificateAuthority) error { s.mu.Lock() s.UpdateCertificateAuthorityByIDFuncInvoked = true s.mu.Unlock() return s.UpdateCertificateAuthorityByIDFunc(ctx, id, certificateAuthority) } func (s *DataStore) BatchApplyCertificateAuthorities(ctx context.Context, ops fleet.CertificateAuthoritiesBatchOperations) error { s.mu.Lock() s.BatchApplyCertificateAuthoritiesFuncInvoked = true s.mu.Unlock() return s.BatchApplyCertificateAuthoritiesFunc(ctx, ops) } func (s *DataStore) UpsertCertificateStatus(ctx context.Context, update *fleet.CertificateStatusUpdate) error { s.mu.Lock() s.UpsertCertificateStatusFuncInvoked = true s.mu.Unlock() return s.UpsertCertificateStatusFunc(ctx, update) } func (s *DataStore) BatchUpsertCertificateTemplates(ctx context.Context, certificates []*fleet.CertificateTemplate) ([]uint, error) { s.mu.Lock() s.BatchUpsertCertificateTemplatesFuncInvoked = true s.mu.Unlock() return s.BatchUpsertCertificateTemplatesFunc(ctx, certificates) } func (s *DataStore) BatchDeleteCertificateTemplates(ctx context.Context, certificateTemplateIDs []uint) (bool, error) { s.mu.Lock() s.BatchDeleteCertificateTemplatesFuncInvoked = true s.mu.Unlock() return s.BatchDeleteCertificateTemplatesFunc(ctx, certificateTemplateIDs) } func (s *DataStore) CreateCertificateTemplate(ctx context.Context, certificateTemplate *fleet.CertificateTemplate) (*fleet.CertificateTemplateResponse, error) { s.mu.Lock() s.CreateCertificateTemplateFuncInvoked = true s.mu.Unlock() return s.CreateCertificateTemplateFunc(ctx, certificateTemplate) } func (s *DataStore) DeleteCertificateTemplate(ctx context.Context, id uint) error { s.mu.Lock() s.DeleteCertificateTemplateFuncInvoked = true s.mu.Unlock() return s.DeleteCertificateTemplateFunc(ctx, id) } func (s *DataStore) GetCertificateTemplateById(ctx context.Context, id uint) (*fleet.CertificateTemplateResponse, error) { s.mu.Lock() s.GetCertificateTemplateByIdFuncInvoked = true s.mu.Unlock() return s.GetCertificateTemplateByIdFunc(ctx, id) } func (s *DataStore) GetCertificateTemplateByIdForHost(ctx context.Context, id uint, hostUUID string) (*fleet.CertificateTemplateResponseForHost, error) { s.mu.Lock() s.GetCertificateTemplateByIdForHostFuncInvoked = true s.mu.Unlock() return s.GetCertificateTemplateByIdForHostFunc(ctx, id, hostUUID) } func (s *DataStore) GetCertificateTemplatesByTeamID(ctx context.Context, teamID uint, opts fleet.ListOptions) ([]*fleet.CertificateTemplateResponseSummary, *fleet.PaginationMetadata, error) { s.mu.Lock() s.GetCertificateTemplatesByTeamIDFuncInvoked = true s.mu.Unlock() return s.GetCertificateTemplatesByTeamIDFunc(ctx, teamID, opts) } func (s *DataStore) GetCertificateTemplatesByIdsAndTeam(ctx context.Context, ids []uint, teamID uint) ([]*fleet.CertificateTemplateResponse, error) { s.mu.Lock() s.GetCertificateTemplatesByIdsAndTeamFuncInvoked = true s.mu.Unlock() return s.GetCertificateTemplatesByIdsAndTeamFunc(ctx, ids, teamID) } func (s *DataStore) GetCertificateTemplateByTeamIDAndName(ctx context.Context, teamID uint, name string) (*fleet.CertificateTemplateResponse, error) { s.mu.Lock() s.GetCertificateTemplateByTeamIDAndNameFuncInvoked = true s.mu.Unlock() return s.GetCertificateTemplateByTeamIDAndNameFunc(ctx, teamID, name) } func (s *DataStore) ListAndroidHostUUIDsWithDeliverableCertificateTemplates(ctx context.Context, offset int, limit int) ([]string, error) { s.mu.Lock() s.ListAndroidHostUUIDsWithDeliverableCertificateTemplatesFuncInvoked = true s.mu.Unlock() return s.ListAndroidHostUUIDsWithDeliverableCertificateTemplatesFunc(ctx, offset, limit) } func (s *DataStore) ListCertificateTemplatesForHosts(ctx context.Context, hostUUIDs []string) ([]fleet.CertificateTemplateForHost, error) { s.mu.Lock() s.ListCertificateTemplatesForHostsFuncInvoked = true s.mu.Unlock() return s.ListCertificateTemplatesForHostsFunc(ctx, hostUUIDs) } func (s *DataStore) GetCertificateTemplateForHost(ctx context.Context, hostUUID string, certificateTemplateID uint) (*fleet.CertificateTemplateForHost, error) { s.mu.Lock() s.GetCertificateTemplateForHostFuncInvoked = true s.mu.Unlock() return s.GetCertificateTemplateForHostFunc(ctx, hostUUID, certificateTemplateID) } func (s *DataStore) GetHostCertificateTemplateRecord(ctx context.Context, hostUUID string, certificateTemplateID uint) (*fleet.HostCertificateTemplate, error) { s.mu.Lock() s.GetHostCertificateTemplateRecordFuncInvoked = true s.mu.Unlock() return s.GetHostCertificateTemplateRecordFunc(ctx, hostUUID, certificateTemplateID) } func (s *DataStore) BulkInsertHostCertificateTemplates(ctx context.Context, hostCertTemplates []fleet.HostCertificateTemplate) error { s.mu.Lock() s.BulkInsertHostCertificateTemplatesFuncInvoked = true s.mu.Unlock() return s.BulkInsertHostCertificateTemplatesFunc(ctx, hostCertTemplates) } func (s *DataStore) DeleteHostCertificateTemplates(ctx context.Context, hostCertTemplates []fleet.HostCertificateTemplate) error { s.mu.Lock() s.DeleteHostCertificateTemplatesFuncInvoked = true s.mu.Unlock() return s.DeleteHostCertificateTemplatesFunc(ctx, hostCertTemplates) } func (s *DataStore) DeleteHostCertificateTemplate(ctx context.Context, hostUUID string, certificateTemplateID uint) error { s.mu.Lock() s.DeleteHostCertificateTemplateFuncInvoked = true s.mu.Unlock() return s.DeleteHostCertificateTemplateFunc(ctx, hostUUID, certificateTemplateID) } func (s *DataStore) ListAndroidHostUUIDsWithPendingCertificateTemplates(ctx context.Context, offset int, limit int) ([]string, error) { s.mu.Lock() s.ListAndroidHostUUIDsWithPendingCertificateTemplatesFuncInvoked = true s.mu.Unlock() return s.ListAndroidHostUUIDsWithPendingCertificateTemplatesFunc(ctx, offset, limit) } func (s *DataStore) GetAndTransitionCertificateTemplatesToDelivering(ctx context.Context, hostUUID string) (*fleet.HostCertificateTemplatesForDelivery, error) { s.mu.Lock() s.GetAndTransitionCertificateTemplatesToDeliveringFuncInvoked = true s.mu.Unlock() return s.GetAndTransitionCertificateTemplatesToDeliveringFunc(ctx, hostUUID) } func (s *DataStore) TransitionCertificateTemplatesToDelivered(ctx context.Context, hostUUID string, templateIDs []uint) error { s.mu.Lock() s.TransitionCertificateTemplatesToDeliveredFuncInvoked = true s.mu.Unlock() return s.TransitionCertificateTemplatesToDeliveredFunc(ctx, hostUUID, templateIDs) } func (s *DataStore) RevertHostCertificateTemplatesToPending(ctx context.Context, hostUUID string, certificateTemplateIDs []uint) error { s.mu.Lock() s.RevertHostCertificateTemplatesToPendingFuncInvoked = true s.mu.Unlock() return s.RevertHostCertificateTemplatesToPendingFunc(ctx, hostUUID, certificateTemplateIDs) } func (s *DataStore) SetHostCertificateTemplatesToPendingRemove(ctx context.Context, certificateTemplateID uint) error { s.mu.Lock() s.SetHostCertificateTemplatesToPendingRemoveFuncInvoked = true s.mu.Unlock() return s.SetHostCertificateTemplatesToPendingRemoveFunc(ctx, certificateTemplateID) } func (s *DataStore) SetHostCertificateTemplatesToPendingRemoveForHost(ctx context.Context, hostUUID string) error { s.mu.Lock() s.SetHostCertificateTemplatesToPendingRemoveForHostFuncInvoked = true s.mu.Unlock() return s.SetHostCertificateTemplatesToPendingRemoveForHostFunc(ctx, hostUUID) } func (s *DataStore) GetAndroidCertificateTemplatesForRenewal(ctx context.Context, limit int) ([]fleet.HostCertificateTemplateForRenewal, error) { s.mu.Lock() s.GetAndroidCertificateTemplatesForRenewalFuncInvoked = true s.mu.Unlock() return s.GetAndroidCertificateTemplatesForRenewalFunc(ctx, limit) } func (s *DataStore) SetAndroidCertificateTemplatesForRenewal(ctx context.Context, templates []fleet.HostCertificateTemplateForRenewal) error { s.mu.Lock() s.SetAndroidCertificateTemplatesForRenewalFuncInvoked = true s.mu.Unlock() return s.SetAndroidCertificateTemplatesForRenewalFunc(ctx, templates) } func (s *DataStore) GetOrCreateFleetChallengeForCertificateTemplate(ctx context.Context, hostUUID string, certificateTemplateID uint) (string, error) { s.mu.Lock() s.GetOrCreateFleetChallengeForCertificateTemplateFuncInvoked = true s.mu.Unlock() return s.GetOrCreateFleetChallengeForCertificateTemplateFunc(ctx, hostUUID, certificateTemplateID) } func (s *DataStore) GetCurrentTime(ctx context.Context) (time.Time, error) { s.mu.Lock() s.GetCurrentTimeFuncInvoked = true s.mu.Unlock() return s.GetCurrentTimeFunc(ctx) } func (s *DataStore) UpdateOrDeleteHostMDMWindowsProfile(ctx context.Context, profile *fleet.HostMDMWindowsProfile) error { s.mu.Lock() s.UpdateOrDeleteHostMDMWindowsProfileFuncInvoked = true s.mu.Unlock() return s.UpdateOrDeleteHostMDMWindowsProfileFunc(ctx, profile) } func (s *DataStore) GetWindowsMDMCommandsForResending(ctx context.Context, failedCommandIds []string) ([]*fleet.MDMWindowsCommand, error) { s.mu.Lock() s.GetWindowsMDMCommandsForResendingFuncInvoked = true s.mu.Unlock() return s.GetWindowsMDMCommandsForResendingFunc(ctx, failedCommandIds) } func (s *DataStore) ResendWindowsMDMCommand(ctx context.Context, mdmDeviceId string, newCmd *fleet.MDMWindowsCommand, oldCmd *fleet.MDMWindowsCommand) error { s.mu.Lock() s.ResendWindowsMDMCommandFuncInvoked = true s.mu.Unlock() return s.ResendWindowsMDMCommandFunc(ctx, mdmDeviceId, newCmd, oldCmd) } func (s *DataStore) GetHostVPPInstallByCommandUUID(ctx context.Context, commandUUID string) (*fleet.HostVPPSoftwareInstallLite, error) { s.mu.Lock() s.GetHostVPPInstallByCommandUUIDFuncInvoked = true s.mu.Unlock() return s.GetHostVPPInstallByCommandUUIDFunc(ctx, commandUUID) } func (s *DataStore) RetryVPPInstall(ctx context.Context, vppInstall *fleet.HostVPPSoftwareInstallLite) error { s.mu.Lock() s.RetryVPPInstallFuncInvoked = true s.mu.Unlock() return s.RetryVPPInstallFunc(ctx, vppInstall) } func (s *DataStore) MDMWindowsUpdateEnrolledDeviceCredentials(ctx context.Context, deviceId string, credentialsHash []byte) error { s.mu.Lock() s.MDMWindowsUpdateEnrolledDeviceCredentialsFuncInvoked = true s.mu.Unlock() return s.MDMWindowsUpdateEnrolledDeviceCredentialsFunc(ctx, deviceId, credentialsHash) } func (s *DataStore) MDMWindowsAcknowledgeEnrolledDeviceCredentials(ctx context.Context, deviceId string) error { s.mu.Lock() s.MDMWindowsAcknowledgeEnrolledDeviceCredentialsFuncInvoked = true s.mu.Unlock() return s.MDMWindowsAcknowledgeEnrolledDeviceCredentialsFunc(ctx, deviceId) }