Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update system/status structs #70

Merged
merged 2 commits into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ lint:
# If these catch legitimate uses, just remove the piece that caught it.
nopollution:
# Avoid cross pollution.
grep -riE 'readar|radar|sonar|prowl|series|episode|author|book|edition|movie|v3' lidarr || exit 0 && exit 1
grep -riE 'readar|sonar|lidar|prowl|series|episode|author|book|artist|album|v1' radarr || exit 0 && exit 1
grep -riE 'readar|radar|sonar|prowl|series|episode|book|edition|movie|v3' lidarr || exit 0 && exit 1
grep -riE 'readar|sonar|lidar|prowl|series|episode|book|artist|album|v1' radarr || exit 0 && exit 1
grep -riE 'radar|sonar|lidar|prowl|episode|movie|artist|album|v3' readarr || exit 0 && exit 1
grep -riE 'readar|radar|lidar|prowl|book|edition|movie|artist|album|v1' sonarr || exit 0 && exit 1
grep -riE 'readar|radar|lidar|sonar|series|episode|book|edition|movie|artist|album|track|v3' prowlarr || exit 0 && exit 1
53 changes: 28 additions & 25 deletions lidarr/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,34 @@ const bpSystem = APIver + "/system"

// SystemStatus is the /api/v1/system/status endpoint.
type SystemStatus struct {
Version string `json:"version"`
BuildTime time.Time `json:"buildTime"`
IsDebug bool `json:"isDebug"`
IsProduction bool `json:"isProduction"`
IsAdmin bool `json:"isAdmin"`
IsUserInteractive bool `json:"isUserInteractive"`
StartupPath string `json:"startupPath"`
AppData string `json:"appData"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
IsMonoRuntime bool `json:"isMonoRuntime"`
IsMono bool `json:"isMono"`
IsLinux bool `json:"isLinux"`
IsOsx bool `json:"isOsx"`
IsWindows bool `json:"isWindows"`
IsDocker bool `json:"isDocker"`
Mode string `json:"mode"`
Branch string `json:"branch"`
Authentication string `json:"authentication"`
SqliteVersion string `json:"sqliteVersion"`
MigrationVersion int64 `json:"migrationVersion"`
URLBase string `json:"urlBase"`
RuntimeVersion string `json:"runtimeVersion"`
RuntimeName string `json:"runtimeName"`
StartTime time.Time `json:"startTime"`
AppData string `json:"appData"`
AppName string `json:"appName"`
Authentication string `json:"authentication"`
Branch string `json:"branch"`
BuildTime time.Time `json:"buildTime"`
InstanceName string `json:"instanceName"`
IsAdmin bool `json:"isAdmin"`
IsDebug bool `json:"isDebug"`
IsDocker bool `json:"isDocker"`
IsLinux bool `json:"isLinux"`
IsNetCore bool `json:"isNetCore"`
IsOsx bool `json:"isOsx"`
IsProduction bool `json:"isProduction"`
IsUserInteractive bool `json:"isUserInteractive"`
IsWindows bool `json:"isWindows"`
MigrationVersion int64 `json:"migrationVersion"`
Mode string `json:"mode"`
OsName string `json:"osName"`
PackageAuthor string `json:"packageAuthor"`
PackageUpdateMechanism string `json:"packageUpdateMechanism"`
PackageVersion string `json:"packageVersion"`
RuntimeName string `json:"runtimeName"`
RuntimeVersion string `json:"runtimeVersion"`
SqliteVersion string `json:"sqliteVersion"`
StartTime time.Time `json:"startTime"`
StartupPath string `json:"startupPath"`
URLBase string `json:"urlBase"`
Version string `json:"version"`
}

// GetSystemStatus returns system status.
Expand Down
44 changes: 23 additions & 21 deletions prowlarr/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,37 @@ const bpSystem = APIver + "/system"

// SystemStatus is the /api/v1/system/status endpoint.
type SystemStatus struct {
Version string `json:"version"`
AppData string `json:"appData"`
AppName string `json:"appName"`
Authentication string `json:"authentication"`
Branch string `json:"branch"`
BuildTime time.Time `json:"buildTime"`
IsDebug bool `json:"isDebug"`
IsProduction bool `json:"isProduction"`
DatabaseType string `json:"databaseType"`
DatabaseVersion string `json:"databaseVersion"`
InstanceName string `json:"instanceName"`
IsAdmin bool `json:"isAdmin"`
IsUserInteractive bool `json:"isUserInteractive"`
StartupPath string `json:"startupPath"`
AppData string `json:"appData"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
IsNetCore bool `json:"isNetCore"`
IsMono bool `json:"isMono"`
IsDebug bool `json:"isDebug"`
IsDocker bool `json:"isDocker"`
IsLinux bool `json:"isLinux"`
IsMono bool `json:"isMono"`
IsNetCore bool `json:"isNetCore"`
IsOsx bool `json:"isOsx"`
IsProduction bool `json:"isProduction"`
IsUserInteractive bool `json:"isUserInteractive"`
IsWindows bool `json:"isWindows"`
IsDocker bool `json:"isDocker"`
MigrationVersion int64 `json:"migrationVersion"`
Mode string `json:"mode"`
Branch string `json:"branch"`
Authentication string `json:"authentication"`
DatabaseType string `json:"databaseType"`
DatabaseVersion string `json:"databaseVersion"`
MigrationVersion int `json:"migrationVersion"`
URLBase string `json:"urlBase"`
RuntimeVersion string `json:"runtimeVersion"`
RuntimeName string `json:"runtimeName"`
StartTime time.Time `json:"startTime"`
PackageVersion string `json:"packageVersion"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
PackageAuthor string `json:"packageAuthor"`
PackageUpdateMechanism string `json:"packageUpdateMechanism"`
PackageVersion string `json:"packageVersion"`
RuntimeName string `json:"runtimeName"`
RuntimeVersion string `json:"runtimeVersion"`
StartTime time.Time `json:"startTime"`
StartupPath string `json:"startupPath"`
URLBase string `json:"urlBase"`
Version string `json:"version"`
}

// GetSystemStatus returns system status.
Expand Down
51 changes: 29 additions & 22 deletions radarr/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,35 @@ const bpSystem = APIver + "/system"

// SystemStatus is the /api/v3/system/status endpoint.
type SystemStatus struct {
Version string `json:"version"`
BuildTime time.Time `json:"buildTime"`
StartupPath string `json:"startupPath"`
AppData string `json:"appData"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
Branch string `json:"branch"`
Authentication string `json:"authentication"`
SqliteVersion string `json:"sqliteVersion"`
URLBase string `json:"urlBase"`
RuntimeVersion string `json:"runtimeVersion"`
RuntimeName string `json:"runtimeName"`
MigrationVersion int `json:"migrationVersion"`
IsDebug bool `json:"isDebug"`
IsProduction bool `json:"isProduction"`
IsAdmin bool `json:"isAdmin"`
IsUserInteractive bool `json:"isUserInteractive"`
IsNetCore bool `json:"isNetCore"`
IsMono bool `json:"isMono"`
IsLinux bool `json:"isLinux"`
IsOsx bool `json:"isOsx"`
IsWindows bool `json:"isWindows"`
AppData string `json:"appData"`
AppName string `json:"appName"`
Authentication string `json:"authentication"`
Branch string `json:"branch"`
BuildTime time.Time `json:"buildTime"`
DatabaseType string `json:"databaseType"`
DatabaseVersion string `json:"databaseVersion"`
InstanceName string `json:"instanceName"`
IsAdmin bool `json:"isAdmin"`
IsDebug bool `json:"isDebug"`
IsDocker bool `json:"isDocker"`
IsLinux bool `json:"isLinux"`
IsNetCore bool `json:"isNetCore"`
IsOsx bool `json:"isOsx"`
IsProduction bool `json:"isProduction"`
IsUserInteractive bool `json:"isUserInteractive"`
IsWindows bool `json:"isWindows"`
MigrationVersion int64 `json:"migrationVersion"`
Mode string `json:"mode"`
OsName string `json:"osName"`
PackageAuthor string `json:"packageAuthor"`
PackageUpdateMechanism string `json:"packageUpdateMechanism"`
PackageVersion string `json:"packageVersion"`
RuntimeName string `json:"runtimeName"`
RuntimeVersion string `json:"runtimeVersion"`
StartTime time.Time `json:"startTime"`
StartupPath string `json:"startupPath"`
URLBase string `json:"urlBase"`
Version string `json:"version"`
}

// GetSystemStatus returns system status.
Expand Down
43 changes: 23 additions & 20 deletions readarr/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,37 @@ const bpSystem = APIver + "/system"

// SystemStatus is the /api/v1/system/status endpoint.
type SystemStatus struct {
Version string `json:"version"`
AppData string `json:"appData"`
AppName string `json:"appName"`
Authentication string `json:"authentication"`
Branch string `json:"branch"`
BuildTime time.Time `json:"buildTime"`
IsDebug bool `json:"isDebug"`
IsProduction bool `json:"isProduction"`
DatabaseType string `json:"databaseType"`
DatabaseVersion string `json:"databaseVersion"`
InstanceName string `json:"instanceName"`
IsAdmin bool `json:"isAdmin"`
IsUserInteractive bool `json:"isUserInteractive"`
StartupPath string `json:"startupPath"`
AppData string `json:"appData"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
IsNetCore bool `json:"isNetCore"`
IsMono bool `json:"isMono"`
IsDebug bool `json:"isDebug"`
IsDocker bool `json:"isDocker"`
IsLinux bool `json:"isLinux"`
IsMono bool `json:"isMono"`
IsNetCore bool `json:"isNetCore"`
IsOsx bool `json:"isOsx"`
IsProduction bool `json:"isProduction"`
IsUserInteractive bool `json:"isUserInteractive"`
IsWindows bool `json:"isWindows"`
IsDocker bool `json:"isDocker"`
MigrationVersion int64 `json:"migrationVersion"`
Mode string `json:"mode"`
Branch string `json:"branch"`
Authentication string `json:"authentication"`
SqliteVersion string `json:"sqliteVersion"`
MigrationVersion int `json:"migrationVersion"`
URLBase string `json:"urlBase"`
RuntimeVersion string `json:"runtimeVersion"`
RuntimeName string `json:"runtimeName"`
StartTime time.Time `json:"startTime"`
PackageVersion string `json:"packageVersion"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
PackageAuthor string `json:"packageAuthor"`
PackageUpdateMechanism string `json:"packageUpdateMechanism"`
PackageVersion string `json:"packageVersion"`
RuntimeName string `json:"runtimeName"`
RuntimeVersion string `json:"runtimeVersion"`
StartTime time.Time `json:"startTime"`
StartupPath string `json:"startupPath"`
URLBase string `json:"urlBase"`
Version string `json:"version"`
}

// GetSystemStatus returns system status.
Expand Down
38 changes: 20 additions & 18 deletions sonarr/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,34 @@ const bpSystem = APIver + "/system"

// SystemStatus is the /api/v3/system/status endpoint.
type SystemStatus struct {
Version string `json:"version"`
AppData string `json:"appData"`
AppName string `json:"appName"`
Authentication string `json:"authentication"`
Branch string `json:"branch"`
BuildTime time.Time `json:"buildTime"`
IsDebug bool `json:"isDebug"`
IsProduction bool `json:"isProduction"`
InstanceName string `json:"instanceName"`
IsAdmin bool `json:"isAdmin"`
IsUserInteractive bool `json:"isUserInteractive"`
StartupPath string `json:"startupPath"`
AppData string `json:"appData"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
IsMonoRuntime bool `json:"isMonoRuntime"`
IsMono bool `json:"isMono"`
IsDebug bool `json:"isDebug"`
IsLinux bool `json:"isLinux"`
IsMono bool `json:"isMono"`
IsMonoRuntime bool `json:"isMonoRuntime"`
IsOsx bool `json:"isOsx"`
IsProduction bool `json:"isProduction"`
IsUserInteractive bool `json:"isUserInteractive"`
IsWindows bool `json:"isWindows"`
Mode string `json:"mode"`
Branch string `json:"branch"`
Authentication string `json:"authentication"`
SqliteVersion string `json:"sqliteVersion"`
URLBase string `json:"urlBase"`
RuntimeVersion string `json:"runtimeVersion"`
RuntimeName string `json:"runtimeName"`
StartTime time.Time `json:"startTime"`
PackageVersion string `json:"packageVersion"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
PackageAuthor string `json:"packageAuthor"`
PackageUpdateMechanism string `json:"packageUpdateMechanism"`
PackageVersion string `json:"packageVersion"`
RuntimeName string `json:"runtimeName"`
RuntimeVersion string `json:"runtimeVersion"`
SqliteVersion string `json:"sqliteVersion"`
StartTime time.Time `json:"startTime"`
StartupPath string `json:"startupPath"`
URLBase string `json:"urlBase"`
Version string `json:"version"`
}

// GetSystemStatus returns system status.
Expand Down