Documentation ¶
Index ¶
- Constants
- func MakeListDevicesEndpoint(svc Service) endpoint.Endpoint
- func MakeRemoveDevicesEndpoint(svc Service) endpoint.Endpoint
- func MarshalDevice(dev *Device) ([]byte, error)
- func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption)
- func UnmarshalDevice(data []byte, dev *Device) error
- type DEPProfileStatus
- type Device
- type DeviceDTO
- type DeviceService
- type DeviceWorkerStore
- type Endpoints
- type ListDevicesOption
- type Service
- type Store
- type Worker
Constants ¶
View Source
const ( EMPTY DEPProfileStatus = "empty" ASSIGNED = "assigned" PUSHED = "pushed" REMOVED = "removed" )
DEPProfileStatus values
View Source
const DeviceEnrolledTopic = "mdm.DeviceEnrolled"
Variables ¶
This section is empty.
Functions ¶
func MakeListDevicesEndpoint ¶
func MakeRemoveDevicesEndpoint ¶ added in v1.3.1
func MarshalDevice ¶
func RegisterHTTPHandlers ¶
func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption)
func UnmarshalDevice ¶
Types ¶
type DEPProfileStatus ¶
type DEPProfileStatus string
DEPProfileStatus is the status of the DEP Profile can be either "empty", "assigned", "pushed", or "removed"
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 LastSeen 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)
func (*DeviceService) RemoveDevices ¶ added in v1.3.1
func (svc *DeviceService) RemoveDevices(ctx context.Context, udids []string) error
type DeviceWorkerStore ¶
type Endpoints ¶
type Endpoints struct { ListDevicesEndpoint endpoint.Endpoint RemoveDevicesEndpoint endpoint.Endpoint }
func MakeServerEndpoints ¶
func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints
func (Endpoints) ListDevices ¶
type ListDevicesOption ¶
type Service ¶
type Service interface { ListDevices(ctx context.Context, opt ListDevicesOption) ([]DeviceDTO, error) RemoveDevices(ctx context.Context, udids []string) error }
func NewHTTPClient ¶
func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error)
Source Files ¶
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.