Documentation
¶
Index ¶
- Constants
- Variables
- func AccountConfiguration(device types.Device) (types.Device, error)
- func ClearCommands(device *types.Device) error
- func CommandInQueue(device types.Device, command string, afterDate time.Time) bool
- func DebugLogger(logholder LogHolder)
- func DeleteDeviceProfiles(devices []types.Device, profiles []types.DeviceProfile) ([]types.Command, error)
- func DeletePendingCommands(w http.ResponseWriter, r *http.Request)
- func DeleteProfileHandler(w http.ResponseWriter, r *http.Request)
- func DeleteSharedProfiles(devices []types.Device, profiles []types.SharedProfile) ([]types.Command, error)
- func DeviceHandler(w http.ResponseWriter, r *http.Request)
- func DisableSharedProfiles(payload types.DeleteProfilePayload) error
- func EraseLockDevice(udid string) error
- func ErrorLogger(logholder LogHolder)
- func ExpireCommands() error
- func FatalLogger(logholder LogHolder)
- func FetchDeviceAndRelations(device types.Device) (types.Device, error)
- func FetchDeviceModelAndRelations(device types.Device) (types.Device, error)
- func GetAccount(serialnumber string) (types.Account, error)
- func GetAllCommands(w http.ResponseWriter, r *http.Request)
- func GetAllDevices() ([]types.Device, error)
- func GetAllDevicesAndAssociations() ([]types.Device, error)
- func GetDevice(udid string) (types.Device, error)
- func GetDeviceProfiles(w http.ResponseWriter, r *http.Request)
- func GetDeviceSerial(serial string) (types.Device, error)
- func GetErrorCommands(w http.ResponseWriter, r *http.Request)
- func GetPendingCommands(w http.ResponseWriter, r *http.Request)
- func GetSharedApplicationss(w http.ResponseWriter, r *http.Request)
- func GetSharedProfiles(w http.ResponseWriter, r *http.Request)
- func HealthCheck(w http.ResponseWriter, r *http.Request)
- func InfoLogger(logholder LogHolder)
- func InstallAllProfiles(device types.Device) ([]types.Command, error)
- func InstallAppInQueue(device types.Device, data string) (bool, error)
- func InstallBootstrapPackages(device types.Device) ([]types.Command, error)
- func Metrics()
- func PostDeviceCommandHandler(w http.ResponseWriter, r *http.Request)
- func PostInstallApplicationHandler(w http.ResponseWriter, r *http.Request)
- func PostProfileHandler(w http.ResponseWriter, r *http.Request)
- func ProcessDeviceProfiles(device types.Device, profiles []types.DeviceProfile, pushNow bool, ...) (types.MetadataItem, error)
- func ProcessScheduledCheckinQueue(pushQueue taskq.Queue)
- func PushDevice(udid string) error
- func PushDeviceHandler(w http.ResponseWriter, r *http.Request)
- func PushInstallApplication(devices []types.Device, installApplication types.DeviceInstallApplication) ([]types.Command, error)
- func PushProfiles(devices []types.Device, profiles []types.DeviceProfile) ([]types.Command, error)
- func PushSharedInstallApplication(devices []types.Device, ...) ([]types.Command, error)
- func PushSharedProfiles(devices []types.Device, profiles []types.SharedProfile) ([]types.Command, error)
- func RedisClient() *redis.Client
- func RequestAllDeviceInfo(device types.Device) error
- func RequestCertificateList(device types.Device) error
- func RequestDeviceInformation(device types.Device) error
- func RequestDeviceUpdate(device types.Device)
- func RequestProfileList(device types.Device) error
- func RequestSecurityInfo(device types.Device) error
- func ResetDevice(device types.Device) error
- func RetryCommands()
- func RunInitialTasks(udid string) error
- func SaveDeviceConfigured(device types.Device) error
- func SaveInstallApplications(devices []types.Device, payload types.InstallApplicationPayload) error
- func SaveProfiles(devices []types.Device, profiles []types.DeviceProfile) error
- func SaveSecurityInfo(securityInfoData types.SecurityInfoData, device types.Device) error
- func SaveSharedInstallApplications(payload types.InstallApplicationPayload) error
- func SaveSharedProfiles(profiles []types.SharedProfile) error
- func SavedDeviceProfileDiffers(device types.Device, profile types.DeviceProfile) (bool, error)
- func SavedProfileIsPresent(device types.Device, profile types.DeviceProfile) (bool, error)
- func ScheduledCheckin(pushQueue taskq.Queue, onceIn time.Duration)
- func SendCommand(payload types.Payload) (types.Payload, error)
- func SendDeviceConfigured(device types.Device) error
- func SetAccount(account types.Account) (types.Account, error)
- func SetTokenUpdate(device types.Device) (types.Device, error)
- func SignProfile(key crypto.PrivateKey, cert *x509.Certificate, mobileconfig []byte) ([]byte, error)
- func SingleDeviceHandler(w http.ResponseWriter, r *http.Request)
- func SingleDeviceOutput(device types.Device, w http.ResponseWriter, r *http.Request) error
- func SingleDeviceSerialHandler(w http.ResponseWriter, r *http.Request)
- func UnconfiguredDevices()
- func UpdateCommand(ackEvent *types.AcknowledgeEvent, device types.Device, ...) error
- func UpdateDevice(newDevice types.Device) (*types.Device, error)
- func UpdateDeviceBools(newDevice *types.Device) error
- func VerifyMDMProfiles(profileListData types.ProfileListData, device types.Device) error
- func WarnLogger(logholder LogHolder)
- func WebhookHandler(w http.ResponseWriter, r *http.Request)
- type LogHolder
- type ProfileForVerification
Constants ¶
View Source
const MAX = 5
Variables ¶
View Source
var ( TotalPushes = prometheus.NewCounter(prometheus.CounterOpts{ Namespace: "micromdm", Subsystem: "apns_pushes", Name: "total", Help: "Total number of APNS Pushes completed.", }) ProfilesPushed = prometheus.NewCounter(prometheus.CounterOpts{ Namespace: "micromdm", Subsystem: "profiles", Name: "pushed_total", Help: "Number of profiles pushed.", }) InstallApplicationsPushed = prometheus.NewCounter(prometheus.CounterOpts{ Namespace: "micromdm", Subsystem: "install_applications", Name: "pushed_total", Help: "Number of InstallApplications pushed.", }) TotalPushes60s float64 ProfilesPushed60s float64 InstallApplicationsPushed60s float64 )
View Source
var DevicesFetchedFromMDM bool
Functions ¶
func ClearCommands ¶
func CommandInQueue ¶
func DebugLogger ¶
func DebugLogger(logholder LogHolder)
func DeleteDeviceProfiles ¶
func DeletePendingCommands ¶
func DeletePendingCommands(w http.ResponseWriter, r *http.Request)
func DeleteProfileHandler ¶
func DeleteProfileHandler(w http.ResponseWriter, r *http.Request)
func DeleteSharedProfiles ¶
func DeviceHandler ¶
func DeviceHandler(w http.ResponseWriter, r *http.Request)
func DisableSharedProfiles ¶
func DisableSharedProfiles(payload types.DeleteProfilePayload) error
func EraseLockDevice ¶
func ErrorLogger ¶
func ErrorLogger(logholder LogHolder)
func ExpireCommands ¶
func ExpireCommands() error
func FatalLogger ¶
func FatalLogger(logholder LogHolder)
func FetchDeviceAndRelations ¶
func GetAllCommands ¶
func GetAllCommands(w http.ResponseWriter, r *http.Request)
func GetAllDevices ¶
func GetDeviceProfiles ¶
func GetDeviceProfiles(w http.ResponseWriter, r *http.Request)
func GetErrorCommands ¶
func GetErrorCommands(w http.ResponseWriter, r *http.Request)
func GetPendingCommands ¶
func GetPendingCommands(w http.ResponseWriter, r *http.Request)
func GetSharedApplicationss ¶
func GetSharedApplicationss(w http.ResponseWriter, r *http.Request)
func GetSharedProfiles ¶
func GetSharedProfiles(w http.ResponseWriter, r *http.Request)
func HealthCheck ¶
func HealthCheck(w http.ResponseWriter, r *http.Request)
todo verify database is accessible verify we can connect to micromdm
func InfoLogger ¶
func InfoLogger(logholder LogHolder)
func PostDeviceCommandHandler ¶
func PostDeviceCommandHandler(w http.ResponseWriter, r *http.Request)
func PostInstallApplicationHandler ¶
func PostInstallApplicationHandler(w http.ResponseWriter, r *http.Request)
func PostProfileHandler ¶
func PostProfileHandler(w http.ResponseWriter, r *http.Request)
func ProcessDeviceProfiles ¶
func ProcessDeviceProfiles( device types.Device, profiles []types.DeviceProfile, pushNow bool, requestType string, ) (types.MetadataItem, error)
func ProcessScheduledCheckinQueue ¶
func ProcessScheduledCheckinQueue(pushQueue taskq.Queue)
func PushDevice ¶
func PushDeviceHandler ¶
func PushDeviceHandler(w http.ResponseWriter, r *http.Request)
func PushInstallApplication ¶
func PushProfiles ¶
func PushSharedProfiles ¶
func RedisClient ¶
func RedisClient() *redis.Client
func RequestAllDeviceInfo ¶
func RequestCertificateList ¶
func RequestDeviceUpdate ¶
func RequestProfileList ¶
func RequestSecurityInfo ¶
func ResetDevice ¶
func RetryCommands ¶
func RetryCommands()
func RunInitialTasks ¶
func SaveDeviceConfigured ¶
func SaveInstallApplications ¶
func SaveInstallApplications(devices []types.Device, payload types.InstallApplicationPayload) error
func SaveProfiles ¶
func SaveProfiles(devices []types.Device, profiles []types.DeviceProfile) error
func SaveSecurityInfo ¶
func SaveSecurityInfo(securityInfoData types.SecurityInfoData, device types.Device) error
func SaveSharedInstallApplications ¶
func SaveSharedInstallApplications(payload types.InstallApplicationPayload) error
func SaveSharedProfiles ¶
func SaveSharedProfiles(profiles []types.SharedProfile) error
func SavedProfileIsPresent ¶
func ScheduledCheckin ¶
func SendDeviceConfigured ¶
func SignProfile ¶
func SignProfile( key crypto.PrivateKey, cert *x509.Certificate, mobileconfig []byte, ) ([]byte, error)
Sign takes an unsigned payload and signs it with the provided private key and certificate.
func SingleDeviceHandler ¶
func SingleDeviceHandler(w http.ResponseWriter, r *http.Request)
func SingleDeviceOutput ¶
func SingleDeviceSerialHandler ¶
func SingleDeviceSerialHandler(w http.ResponseWriter, r *http.Request)
func UnconfiguredDevices ¶
func UnconfiguredDevices()
func UpdateCommand ¶
func UpdateDeviceBools ¶
func VerifyMDMProfiles ¶
func VerifyMDMProfiles(profileListData types.ProfileListData, device types.Device) error
func WarnLogger ¶
func WarnLogger(logholder LogHolder)
func WebhookHandler ¶
func WebhookHandler(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.