entity

package
v1.27.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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 CertCreationResult struct {
	H             string
	Cert          string
	PEM           string
	CertBin       string
	PrivateKey    string
	PrivateKeyBin string
	Checked       bool
	Key           []byte
}

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 Explorer

type Explorer struct {
	XMLInput  string
	XMLOutput string
}

type IEEE8021xConfig

type IEEE8021xConfig struct {
	ProfileName            string `bson:"profilename"`
	AuthenticationProtocol int    `bson:"authenticationprotocol"`
	PXETimeout             *int   `bson:"pxetimeout"`
	WiredInterface         bool   `bson:"wiredinterface"`
	TenantID               string `bson:"tenantid"`
	Version                string `bson:"version"`
}

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 ProfileWiFiConfigs struct {
	Priority            int    `bson:"priority"`
	ProfileName         string `bson:"profilename"`
	WirelessProfileName string `bson:"wirelessprofilename"`
	TenantID            string `bson:"tenantid"`
}

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"`
}

Directories

Path Synopsis
dto
v1
v2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL