Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyCertificateMiddleware ¶ added in v1.5.0
func VerifyCertificateMiddleware(validateSCEPIssuer bool, validateSCEPExpiration bool, store ScepVerifyDepot, logger log.Logger) mdm.Middleware
Types ¶
type DeclarativeManagementHTTPCaller ¶ added in v1.11.0
type DeclarativeManagementHTTPCaller struct {
// contains filtered or unexported fields
}
func NewDeclarativeManagementHTTPCaller ¶ added in v1.11.0
func NewDeclarativeManagementHTTPCaller(urlPrefix string, client *http.Client) (*DeclarativeManagementHTTPCaller, error)
NewDeclarativeManagementHTTPCaller creates a new DeclarativeManagementHTTPCaller
func (*DeclarativeManagementHTTPCaller) DeclarativeManagement ¶ added in v1.11.0
func (c *DeclarativeManagementHTTPCaller) DeclarativeManagement(ctx context.Context, id, endpoint string, data []byte) ([]byte, error)
DeclarativeManagement calls out to an HTTP URL to handle the actual Declarative Management protocol
type HTTPStatusError ¶ added in v1.11.0
func (HTTPStatusError) Error ¶ added in v1.11.0
func (e HTTPStatusError) Error() string
func (HTTPStatusError) StatusCode ¶ added in v1.11.0
func (e HTTPStatusError) StatusCode() int
type ScepVerifyDepot ¶ added in v1.5.0
type ScepVerifyDepot interface { CA(pass []byte) ([]*x509.Certificate, *rsa.PrivateKey, error) HasCN(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool) (bool, error) }
type Server ¶
type Server struct { ConfigPath string Depsim string PubClient pubsub.PublishSubscriber DB *bolt.DB ServerPublicURL string SCEPChallenge string SCEPClientValidity int TLSCertPath string SCEPDepot depot.Depot UseDynSCEPChallenge bool GenDynSCEPChallenge bool SCEPChallengeDepot challenge.Store ProfileDB profile.Store ConfigDB config.Store RemoveDB block.Store CommandWebhookURL string DEPClient *dep.Client SyncDB *syncbuiltin.DB NoCmdHistory bool ValidateSCEPIssuer bool ValidateSCEPExpiration bool UDIDCertAuthWarnOnly bool Queue string DMURL string APNSPushService apns.Service CommandService command.Service MDMService mdm.Service EnrollService enroll.Service SCEPService scep.Service ConfigService config.Service CommandQueue mdm.Queue WebhooksHTTPClient *http.Client }
func (*Server) CreateDEPSyncer ¶
Click to show internal directories.
Click to hide internal directories.