Documentation
¶
Index ¶
Constants ¶
View Source
const ( TLSModeNone int = iota TLSModeServerOnly TLSModeServerAllowNonTLS TLSModeMutualOnly TLSModeMutualAllowNonTLS )
View Source
const ( TLSSigningAuthoritySelfSigned string = "SelfSigned" TLSSigningAuthorityMicrosoftCA string = "MicrosoftCA" )
View Source
const ( UserConsentNone string = "None" UserConsentAll string = "All" UserConsentKVMOnly string = "KVM" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIRAConfig ¶
type CIRAConfig struct {
ConfigName string `bson:"configname"`
MPSAddress string `bson:"mpsaddress"`
MPSPort int `bson:"mpsport"`
Username string `bson:"username"`
Password string `bson:"password"`
CommonName string `bson:"commonname"`
ServerAddressFormat int `bson:"serveraddressformat"`
AuthMethod int `bson:"authmethod"`
MPSRootCertificate string `bson:"mpsrootcertificate"`
ProxyDetails string `bson:"proxydetails"`
TenantID string `bson:"tenantid"`
GenerateRandomPassword bool `bson:"generaterandompassword"`
Version string `bson:"version"`
}
type CertCreationResult ¶
type Device ¶
type Device struct {
ConnectionStatus bool `bson:"connectionstatus"`
MPSInstance string `bson:"mpsinstance"`
Hostname string `bson:"hostname"`
GUID string `bson:"guid"`
MPSUsername string `bson:"mpsusername"`
Tags string `bson:"tags"`
TenantID string `bson:"tenantid"`
FriendlyName string `bson:"friendlyname"`
DNSSuffix string `bson:"dnssuffix"`
LastConnected *time.Time `bson:"lastconnected"`
LastSeen *time.Time `bson:"lastseen"`
LastDisconnected *time.Time `bson:"lastdisconnected"`
DeviceInfo string `bson:"deviceinfo"`
Username string `bson:"username"`
Password string `bson:"password"`
MPSPassword *string `bson:"mpspassword"`
MEBXPassword *string `bson:"mebxpassword"`
UseTLS bool `bson:"usetls"`
AllowSelfSigned bool `bson:"allowselfsigned"`
CertHash *string `bson:"certhash"`
}
BSON tags are lowercase to match the mongo-driver codec default — do not change to camelCase or existing data won't decode.
type Domain ¶
type Domain struct {
ProfileName string `bson:"profilename"`
DomainSuffix string `bson:"domainsuffix"`
ProvisioningCert string `bson:"provisioningcert"`
ProvisioningCertStorageFormat string `bson:"provisioningcertstorageformat"`
ProvisioningCertPassword string `bson:"provisioningcertpassword"`
ExpirationDate string `bson:"expirationdate"`
TenantID string `bson:"tenantid"`
Version string `bson:"version"`
}
type IEEE8021xConfig ¶
type Profile ¶
type Profile struct {
ProfileName string `bson:"profilename"`
AMTPassword string `bson:"amtpassword"`
CreationDate string `bson:"creationdate,omitempty"`
CreatedBy string `bson:"createdby,omitempty"`
GenerateRandomPassword bool `bson:"generaterandompassword"`
CIRAConfigName *string `bson:"ciraconfigname"`
Activation string `bson:"activation"`
MEBXPassword string `bson:"mebxpassword"`
GenerateRandomMEBxPassword bool `bson:"generaterandommebxpassword"`
Tags string `bson:"tags"`
DHCPEnabled bool `bson:"dhcpenabled"`
IPSyncEnabled bool `bson:"ipsyncenabled"`
LocalWiFiSyncEnabled bool `bson:"localwifisyncenabled"`
TenantID string `bson:"tenantid"`
TLSMode int `bson:"tlsmode"`
TLSSigningAuthority string `bson:"tlssigningauthority"`
UserConsent string `bson:"userconsent"`
IDEREnabled bool `bson:"iderenabled"`
KVMEnabled bool `bson:"kvmenabled"`
SOLEnabled bool `bson:"solenabled"`
IEEE8021xProfileName *string `bson:"ieee8021xprofilename"`
UEFIWiFiSyncEnabled bool `bson:"uefiwifisyncenabled"`
// columns to populate from join query — never persisted (bson:"-").
Version string `bson:"-"`
AuthenticationProtocol *int `bson:"-"`
ServerName string `bson:"-"`
Domain string `bson:"-"`
Username string `bson:"-"`
Password string `bson:"-"`
RoamingIdentity string `bson:"-"`
ActiveInS0 bool `bson:"-"`
PXETimeout *int `bson:"-"`
WiredInterface *bool `bson:"-"`
}
type ProfileWiFiConfigs ¶
type TLSCerts ¶
type TLSCerts struct {
RootCertificate CertCreationResult
IssuedCertificate CertCreationResult
Version string
}
type WirelessConfig ¶
type WirelessConfig struct {
ProfileName string `bson:"profilename"`
AuthenticationMethod int `bson:"authenticationmethod"`
EncryptionMethod int `bson:"encryptionmethod"`
SSID string `bson:"ssid"`
PSKValue int `bson:"pskvalue"`
PSKPassphrase string `bson:"pskpassphrase"`
LinkPolicy *string `bson:"linkpolicy"`
TenantID string `bson:"tenantid"`
IEEE8021xProfileName *string `bson:"ieee8021xprofilename"`
Version string `bson:"version"`
// columns to populate from join query IEEE8021xProfileName
AuthenticationProtocol *int `bson:"authenticationprotocol"`
PXETimeout *int `bson:"pxetimeout"`
WiredInterface *bool `bson:"wiredinterface"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.