Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2018 v1.3.0 Jun 10, 2018 Changes in this version + func IsNotFound(err error) bool + func MakeApplyProfileEndpoint(svc Service) endpoint.Endpoint + func MakeGetProfilesEndpoint(svc Service) endpoint.Endpoint + func MakeRemoveProfilesEndpoint(svc Service) endpoint.Endpoint + func MarshalProfile(p *Profile) ([]byte, error) + func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption) + func UnmarshalProfile(data []byte, p *Profile) error + type Endpoints struct + ApplyProfileEndpoint endpoint.Endpoint + GetProfilesEndpoint endpoint.Endpoint + RemoveProfilesEndpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints + func (e Endpoints) ApplyProfile(ctx context.Context, p *Profile) error + func (e Endpoints) GetProfiles(ctx context.Context, opt GetProfilesOption) ([]Profile, error) + func (e Endpoints) RemoveProfiles(ctx context.Context, ids []string) error + type GetProfilesOption struct + Identifier string + type Mobileconfig []byte + func (mc *Mobileconfig) GetPayloadIdentifier() (string, error) + type Profile struct + Identifier string + Mobileconfig Mobileconfig + func (p *Profile) Validate() error + type ProfileService struct + func New(store Store) *ProfileService + func (svc *ProfileService) ApplyProfile(ctx context.Context, p *Profile) error + func (svc *ProfileService) GetProfiles(ctx context.Context, opt GetProfilesOption) ([]Profile, error) + func (svc *ProfileService) RemoveProfiles(ctx context.Context, ids []string) error + type Service interface + ApplyProfile func(ctx context.Context, p *Profile) error + GetProfiles func(ctx context.Context, opt GetProfilesOption) ([]Profile, error) + RemoveProfiles func(ctx context.Context, ids []string) error + func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error) + type Store interface + Delete func(id string) error + List func() ([]Profile, error) + ProfileById func(id string) (*Profile, error) + Save func(p *Profile) error