feat: Add device storage and WiFi management functionalities
- Implemented storage configuration management in device_storage.go: - GetStorageConfigurations - GetStorageConfiguration - CreateStorageConfiguration - SetStorageConfiguration - DeleteStorageConfiguration - SetHashingAlgorithm - Added unit tests for storage configuration operations in device_storage_test.go. - Implemented WiFi management functionalities in device_wifi.go: - GetDot11Capabilities - GetDot11Status - GetDot1XConfiguration - GetDot1XConfigurations - SetDot1XConfiguration - CreateDot1XConfiguration - DeleteDot1XConfiguration - ScanAvailableDot11Networks - Added unit tests for WiFi management operations in device_wifi_test.go. - Updated types.go to include new structures for geo location and access policy.
This commit is contained in:
@@ -1027,8 +1027,24 @@ type UserCredential struct {
|
||||
|
||||
// LocationEntity represents geo location
|
||||
type LocationEntity struct {
|
||||
// Simplified - full implementation would include lat/long
|
||||
Entity string
|
||||
Entity string `xml:"Entity"`
|
||||
Token string `xml:"Token"`
|
||||
Fixed bool `xml:"Fixed"`
|
||||
Lon float64 `xml:"Lon,attr"`
|
||||
Lat float64 `xml:"Lat,attr"`
|
||||
Elevation float64 `xml:"Elevation,attr"`
|
||||
}
|
||||
|
||||
// GeoLocation represents geographic location coordinates
|
||||
type GeoLocation struct {
|
||||
Lon float64 `xml:"lon,attr,omitempty"` // Longitude in degrees
|
||||
Lat float64 `xml:"lat,attr,omitempty"` // Latitude in degrees
|
||||
Elevation float64 `xml:"elevation,attr,omitempty"` // Elevation in meters
|
||||
}
|
||||
|
||||
// AccessPolicy represents device access policy configuration
|
||||
type AccessPolicy struct {
|
||||
PolicyFile *BinaryData
|
||||
}
|
||||
|
||||
// PasswordComplexityConfiguration represents password complexity config
|
||||
|
||||
Reference in New Issue
Block a user