Documentation ¶
Index ¶
- Constants
- Variables
- func TimeInMiliseconds(d time.Duration) string
- type Characteristic
- type Parameter
- type ProvisioningDoc
- func (doc *ProvisioningDoc) NewCertStore(identityRootCertificate *x509.Certificate, certStore string, ...)
- func (doc *ProvisioningDoc) NewDMClient(providerID string, providerParameters []Parameter, ...)
- func (doc *ProvisioningDoc) NewEmptyApplication(providerID string)
- func (doc *ProvisioningDoc) NewW7Application(providerID, name, managementServiceURL, certStore, clientSubject string)
Constants ¶
const ROBORenewPeriod = 42
ROBORenewPeriod is the amount of days before a certificate expires to begin automatic renewal
const ROBORetryInterval = 4
ROBORetryInterval is the amount of days between trying an automatic certificate renewal
Variables ¶
var DefaultPollCharacteristic = Characteristic{ Type: "Poll", Params: []Parameter{ { Name: "IntervalForFirstSetOfRetries", Value: "3", DataType: "integer", }, { Name: "NumberOfFirstRetries", Value: "5", DataType: "integer", }, { Name: "IntervalForSecondSetOfRetries", Value: "15", DataType: "integer", }, { Name: "NumberOfSecondRetries", Value: "8", DataType: "integer", }, { Name: "IntervalForRemainingScheduledRetries", Value: "480", DataType: "integer", }, { Name: "NumberOfRemainingScheduledRetries", Value: "0", DataType: "integer", }, { Name: "PollOnLogin", Value: "true", DataType: "boolean", }, { Name: "AllUsersPollOnFirstLogin", Value: "true", DataType: "boolean", }, }, }
DefaultPollCharacteristic is a default "Poll" characteristic with default parameter set. This characteristic is for use with the DMClient characteristics.
Functions ¶
func TimeInMiliseconds ¶
TimeInMiliseconds converts a duration into a time string
Types ¶
type Characteristic ¶
type Characteristic struct { Type string `xml:"type,attr,omitempty"` Params []Parameter Characteristics []Characteristic `xml:"characteristic,omitempty"` }
Characteristic is a management client characteristic
type Parameter ¶
type Parameter struct { XMLName xml.Name `xml:"parm"` Name string `xml:"name,attr,omitempty"` Value string `xml:"value,attr,omitempty"` DataType string `xml:"datatype,attr,omitempty"` }
Parameter is a management client parameter (setting) that is set on a characteristic
type ProvisioningDoc ¶
type ProvisioningDoc struct { XMLName xml.Name `xml:"wap-provisioningdoc"` Version string `xml:"version,attr"` Characteristic []Characteristic `xml:"characteristic"` }
ProvisioningDoc contains the manage client configuration
func NewProvisioningDoc ¶
func NewProvisioningDoc() ProvisioningDoc
NewProvisioningDoc returns a new empty WAP Provisioning Document
func (*ProvisioningDoc) NewCertStore ¶
func (doc *ProvisioningDoc) NewCertStore(identityRootCertificate *x509.Certificate, certStore string, clientIssuedCertificateRaw []byte, renewURL string)
NewCertStore creates a new "CertificateStore" characteristic on the document
func (*ProvisioningDoc) NewDMClient ¶
func (doc *ProvisioningDoc) NewDMClient(providerID string, providerParameters []Parameter, providerCharacteristics []Characteristic)
NewDMClient creates a new "DMClient" characteristic on the document
func (*ProvisioningDoc) NewEmptyApplication ¶
func (doc *ProvisioningDoc) NewEmptyApplication(providerID string)
NewEmptyApplication creates a new "APPLICATION" characteristic on the document
func (*ProvisioningDoc) NewW7Application ¶
func (doc *ProvisioningDoc) NewW7Application(providerID, name, managementServiceURL, certStore, clientSubject string)
NewW7Application creates a new "w7 APPLICATION" characteristic on the document