Documentation ¶
Index ¶
- Constants
- func MakeApplyDEPTokensEndpoint(svc Service) endpoint.Endpoint
- func MakeGetDEPTokensEndpoint(svc Service) endpoint.Endpoint
- func MakeSavePushCertificateEndpoint(svc Service) endpoint.Endpoint
- func MarshalServerConfig(conf *ServerConfig) ([]byte, error)
- func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption)
- func UnmarshalServerConfig(data []byte, conf *ServerConfig) error
- type ConfigService
- type DEPToken
- type Endpoints
- type ServerConfig
- type Service
- type Store
Constants ¶
View Source
const ConfigTopic = "mdm.ServerConfigUpdated"
View Source
const DEPTokenTopic = "mdm.TokenAdded"
Variables ¶
This section is empty.
Functions ¶
func MarshalServerConfig ¶
func MarshalServerConfig(conf *ServerConfig) ([]byte, error)
func RegisterHTTPHandlers ¶
func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption)
func UnmarshalServerConfig ¶
func UnmarshalServerConfig(data []byte, conf *ServerConfig) error
Types ¶
type ConfigService ¶
type ConfigService struct {
// contains filtered or unexported fields
}
func New ¶
func New(store Store) *ConfigService
func (*ConfigService) ApplyDEPToken ¶
func (svc *ConfigService) ApplyDEPToken(ctx context.Context, P7MContent []byte) error
func (*ConfigService) GetDEPTokens ¶
func (*ConfigService) SavePushCertificate ¶
func (svc *ConfigService) SavePushCertificate(ctx context.Context, cert, key []byte) error
type DEPToken ¶
type Endpoints ¶
type Endpoints struct { ApplyDEPTokensEndpoint endpoint.Endpoint SavePushCertificateEndpoint endpoint.Endpoint GetDEPTokensEndpoint endpoint.Endpoint }
func MakeServerEndpoints ¶
func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints
func (Endpoints) ApplyDEPToken ¶
func (Endpoints) GetDEPTokens ¶
type ServerConfig ¶
ServerConfig holds the configuration of the MDM Server.
type Service ¶
type Service interface { SavePushCertificate(ctx context.Context, cert, key []byte) error ApplyDEPToken(ctx context.Context, P7MContent []byte) error GetDEPTokens(ctx context.Context) ([]DEPToken, []byte, error) }
func NewHTTPClient ¶
func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
configproto
Package configproto is a generated protocol buffer package.
|
Package configproto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.