add toughswitch consolidated type, and use in cmd
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
package toughswitch
|
||||
|
||||
// ToughSwitch combines all types into one response.
|
||||
type ToughSwitch struct {
|
||||
Device *Device `json:"device,omitempty"`
|
||||
System *System `json:"system,omitempty"`
|
||||
Interfaces []Interface `json:"interfaces,omitempty"`
|
||||
Neighbors []Neighbor `json:"neighbors,omitempty"`
|
||||
Statistics []Statistics `json:"statistics,omitempty"`
|
||||
Services *Services `json:"services,omitempty"`
|
||||
VLANs *VLANs `json:"vlans,omitempty"`
|
||||
}
|
||||
|
||||
// LoginResponse represents the response from the login endpoint.
|
||||
type LoginResponse struct {
|
||||
StatusCode int `json:"statusCode"`
|
||||
|
||||
Reference in New Issue
Block a user