Refactor XML response handling in device extended and security tests
- Adjusted formatting in XML response strings for consistency in device_extended_test.go and device_security_test.go. - Improved readability by aligning XML declaration and body content. - Updated mock server responses to ensure proper handling of various ONVIF operations. Enhance device security and storage handling - Refactored struct field declarations in device_security.go and device_storage_test.go for improved clarity. - Ensured consistent formatting across struct definitions and XML tags. Standardize whitespace and formatting across multiple files - Removed unnecessary blank lines and adjusted indentation in discovery, imaging, media, and PTZ server files. - Improved overall code readability and maintainability by ensuring consistent formatting. Update example applications for better readability - Cleaned up whitespace in example applications to enhance code clarity. - Ensured consistent formatting in main.go files across various examples. Refactor server and SOAP handler code for consistency - Standardized struct field declarations and XML tag formatting in server and SOAP handler files. - Improved readability by aligning struct fields and ensuring consistent use of whitespace. General code cleanup and formatting adjustments - Applied consistent formatting across various files, including types.go and test files. - Enhanced readability by aligning struct fields and removing unnecessary blank lines.
This commit is contained in:
@@ -872,9 +872,9 @@ const (
|
||||
|
||||
// RemoteUser represents remote user configuration
|
||||
type RemoteUser struct {
|
||||
Username string
|
||||
Password string
|
||||
UseDerivedPassword bool
|
||||
Username string
|
||||
Password string
|
||||
UseDerivedPassword bool
|
||||
}
|
||||
|
||||
// Certificate represents a certificate
|
||||
@@ -917,17 +917,17 @@ type CertificateUsage struct {
|
||||
|
||||
// DateTimeRange represents date/time range
|
||||
type DateTimeRange struct {
|
||||
From time.Time
|
||||
From time.Time
|
||||
Until time.Time
|
||||
}
|
||||
|
||||
// Dot11Capabilities represents 802.11 capabilities
|
||||
type Dot11Capabilities struct {
|
||||
TKIP bool
|
||||
ScanAvailableNetworks bool
|
||||
MultipleConfiguration bool
|
||||
AdHocStationMode bool
|
||||
WEP bool
|
||||
TKIP bool
|
||||
ScanAvailableNetworks bool
|
||||
MultipleConfiguration bool
|
||||
AdHocStationMode bool
|
||||
WEP bool
|
||||
}
|
||||
|
||||
// Dot11Status represents 802.11 status
|
||||
@@ -985,12 +985,12 @@ type TLSConfiguration struct {
|
||||
|
||||
// Dot11AvailableNetworks represents available 802.11 networks
|
||||
type Dot11AvailableNetworks struct {
|
||||
SSID string
|
||||
BSSID string
|
||||
AuthAndMangementSuite []Dot11AuthAndMangementSuite
|
||||
PairCipher []Dot11Cipher
|
||||
GroupCipher []Dot11Cipher
|
||||
SignalStrength Dot11SignalStrength
|
||||
SSID string
|
||||
BSSID string
|
||||
AuthAndMangementSuite []Dot11AuthAndMangementSuite
|
||||
PairCipher []Dot11Cipher
|
||||
GroupCipher []Dot11Cipher
|
||||
SignalStrength Dot11SignalStrength
|
||||
}
|
||||
|
||||
// Dot11AuthAndMangementSuite represents auth suite
|
||||
@@ -1011,18 +1011,18 @@ type StorageConfiguration struct {
|
||||
|
||||
// StorageConfigurationData represents storage configuration data
|
||||
type StorageConfigurationData struct {
|
||||
Type string
|
||||
LocalPath string
|
||||
StorageUri string
|
||||
User *UserCredential
|
||||
CertPathValidationPolicyID string
|
||||
Type string
|
||||
LocalPath string
|
||||
StorageUri string
|
||||
User *UserCredential
|
||||
CertPathValidationPolicyID string
|
||||
}
|
||||
|
||||
// UserCredential represents user credentials
|
||||
type UserCredential struct {
|
||||
UserName string
|
||||
Password string
|
||||
Token string
|
||||
UserName string
|
||||
Password string
|
||||
Token string
|
||||
}
|
||||
|
||||
// LocationEntity represents geo location
|
||||
@@ -1049,12 +1049,12 @@ type AccessPolicy struct {
|
||||
|
||||
// PasswordComplexityConfiguration represents password complexity config
|
||||
type PasswordComplexityConfiguration struct {
|
||||
MinLen int
|
||||
Uppercase int
|
||||
Number int
|
||||
SpecialChars int
|
||||
BlockUsernameOccurrence bool
|
||||
PolicyConfigurationLocked bool
|
||||
MinLen int
|
||||
Uppercase int
|
||||
Number int
|
||||
SpecialChars int
|
||||
BlockUsernameOccurrence bool
|
||||
PolicyConfigurationLocked bool
|
||||
}
|
||||
|
||||
// PasswordHistoryConfiguration represents password history config
|
||||
|
||||
Reference in New Issue
Block a user