forked from IceWhaleTech/CasaOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the app store classification problem Fix the application market classification problem
- Loading branch information
Showing
15 changed files
with
482 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package model | ||
|
||
// | ||
type SmartctlA struct { | ||
Smartctl struct { | ||
Version []int `json:"version"` | ||
SvnRevision string `json:"svn_revision"` | ||
PlatformInfo string `json:"platform_info"` | ||
BuildInfo string `json:"build_info"` | ||
Argv []string `json:"argv"` | ||
ExitStatus int `json:"exit_status"` | ||
} `json:"smartctl"` | ||
Device struct { | ||
Name string `json:"name"` | ||
InfoName string `json:"info_name"` | ||
Type string `json:"type"` | ||
Protocol string `json:"protocol"` | ||
} `json:"device"` | ||
ModelName string `json:"model_name"` | ||
SerialNumber string `json:"serial_number"` | ||
FirmwareVersion string `json:"firmware_version"` | ||
UserCapacity struct { | ||
Blocks int `json:"blocks"` | ||
Bytes int64 `json:"bytes"` | ||
} `json:"user_capacity"` | ||
SmartStatus struct { | ||
Passed bool `json:"passed"` | ||
} `json:"smart_status"` | ||
AtaSmartData struct { | ||
OfflineDataCollection struct { | ||
Status struct { | ||
Value int `json:"value"` | ||
String string `json:"string"` | ||
} `json:"status"` | ||
CompletionSeconds int `json:"completion_seconds"` | ||
} `json:"offline_data_collection"` | ||
SelfTest struct { | ||
Status struct { | ||
Value int `json:"value"` | ||
String string `json:"string"` | ||
Passed bool `json:"passed"` | ||
} `json:"status"` | ||
PollingMinutes struct { | ||
Short int `json:"short"` | ||
Extended int `json:"extended"` | ||
Conveyance int `json:"conveyance"` | ||
} `json:"polling_minutes"` | ||
} `json:"self_test"` | ||
Capabilities struct { | ||
Values []int `json:"values"` | ||
ExecOfflineImmediateSupported bool `json:"exec_offline_immediate_supported"` | ||
OfflineIsAbortedUponNewCmd bool `json:"offline_is_aborted_upon_new_cmd"` | ||
OfflineSurfaceScanSupported bool `json:"offline_surface_scan_supported"` | ||
SelfTestsSupported bool `json:"self_tests_supported"` | ||
ConveyanceSelfTestSupported bool `json:"conveyance_self_test_supported"` | ||
SelectiveSelfTestSupported bool `json:"selective_self_test_supported"` | ||
AttributeAutosaveEnabled bool `json:"attribute_autosave_enabled"` | ||
ErrorLoggingSupported bool `json:"error_logging_supported"` | ||
GpLoggingSupported bool `json:"gp_logging_supported"` | ||
} `json:"capabilities"` | ||
} `json:"ata_smart_data"` | ||
PowerOnTime struct { | ||
Hours int `json:"hours"` | ||
} `json:"power_on_time"` | ||
PowerCycleCount int `json:"power_cycle_count"` | ||
Temperature struct { | ||
Current int `json:"current"` | ||
} `json:"temperature"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.