Documentation ¶
Index ¶
- Constants
- func MakeHTTPHandler(e Endpoints, logger log.Logger) *mux.Router
- func MakeListDevicesEndpoint(svc Service) endpoint.Endpoint
- func MarshalDevice(dev *Device) ([]byte, error)
- func UnmarshalDevice(data []byte, dev *Device) error
- type DEPProfileStatus
- type Device
- type DeviceDTO
- type DeviceService
- type Endpoints
- type ListDevicesOption
- type Service
- type Store
Constants ¶
View Source
const DeviceEnrolledTopic = "mdm.DeviceEnrolled"
Variables ¶
This section is empty.
Functions ¶
func MakeListDevicesEndpoint ¶
func MarshalDevice ¶
func UnmarshalDevice ¶
Types ¶
type DEPProfileStatus ¶
type DEPProfileStatus string
DEPProfileStatus is the status of the DEP Profile can be either "empty", "assigned", "pushed", or "removed"
const ( EMPTY DEPProfileStatus = "empty" ASSIGNED DEPProfileStatus = "assigned" PUSHED DEPProfileStatus = "pushed" REMOVED DEPProfileStatus = "removed" )
DEPProfileStatus values
type Device ¶
type Device struct { UUID string UDID string SerialNumber string OSVersion string BuildVersion string ProductName string IMEI string MEID string MDMTopic string PushMagic string AwaitingConfiguration bool Token string UnlockToken string Enrolled bool DEPDevice bool Description string Model string ModelName string DeviceName string Color string AssetTag string DEPProfileStatus DEPProfileStatus DEPProfileUUID string DEPProfileAssignTime time.Time DEPProfilePushTime time.Time DEPProfileAssignedDate time.Time DEPProfileAssignedBy string LastCheckin time.Time LastQueryResponse []byte }
type DeviceService ¶
type DeviceService struct {
// contains filtered or unexported fields
}
func New ¶
func New(store Store) *DeviceService
func (*DeviceService) ListDevices ¶
func (svc *DeviceService) ListDevices(ctx context.Context, opt ListDevicesOption) ([]DeviceDTO, error)
type ListDevicesOption ¶
type Service ¶
type Service interface {
ListDevices(ctx context.Context, opt ListDevicesOption) ([]DeviceDTO, error)
}
func NewHTTPClient ¶
func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error)
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
deviceproto
Package deviceproto is a generated protocol buffer package.
|
Package deviceproto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.