Versions in this module Expand all Collapse all v0 v0.0.3 Feb 28, 2022 v0.0.2 Feb 28, 2022 v0.0.1 Feb 28, 2022 Changes in this version + type Client struct + BaseURL string + Password string + Session *http.Cookie + TLSClientConfig *tls.Config + Token string + Username string + func NewClient(baseURL string, username string, password string) *Client + func (c *Client) Device(ctx context.Context) ([]Device, error) + func (c *Client) DeviceCounter(ctx context.Context) ([]DeviceCounter, error) + func (c *Client) DeviceInterface(ctx context.Context, synced bool, options *DeviceInterfaceListOptions) ([]DeviceInterface, error) + func (c *Client) DeviceMonitor(ctx context.Context) ([]DeviceMonitor, error) + func (c *Client) DeviceStateSystemStatus(ctx context.Context) ([]DeviceStateSystemStatus, error) + func (c *Client) DeviceSystemStatus(ctx context.Context, synced bool, options *DeviceSystemStatusListOptions) ([]DeviceSystemStatus, error) + func (c *Client) Fetch(ctx context.Context, endpoint string, options FetchOptions, ...) (interface{}, error) + func (c *Client) Login() error + func (c *Client) Logout() error + func (c *Client) Request() (*resty.Request, error) + type Device struct + BoardSerial string + CertificateValidity string + ConnectedVManages []string + ControlConnections string + DeviceGroups []string + DeviceID string + DeviceModel string + DeviceOS string + DeviceType string + DomainID string + Hostname string + IsDeviceGeoData bool + Lastupdated int64 + Latitude string + LayoutLevel int + LinuxCPUCount string + LocalSystemIP string + Longitude string + MaxControllers string + ModelSKU string + OmpPeers string + Personality string + Platform string + Reachability string + SiteID string + State string + StateDescription string + Status string + StatusOrder int + SystemIP string + TestbedMode bool + Timezone string + TotalCPUCount string + UUID string + UptimeDate int64 + Validity string + Version string + func (d *Device) IsReachable() bool + type DeviceCounter struct + CrashCount int + ExpectedControlConnections int + NumberVsmartControlConnections int + OmpPeersDown int + OmpPeersUp int + RebootCount int + SystemIP string + type DeviceCounterList struct + Data []DeviceCounter + type DeviceInterface struct + AfType string + EncapType string + Hwaddr string + IPAddress string + IfAdminStatus string + IfIndex interface{} + IfOperStatus string + Ifname string + Ipv6Address string + Lastupdated int64 + PortType string + RxDrops int + RxErrors int + RxKbps int + RxOctets int + RxPackets int + RxPps int + Secondary string + SecondaryAddress string + TxDrops int + TxErrors int + TxKbps int + TxOctets int + TxPackets int + TxPps int + Uptime string + UptimeDate int64 + VdeviceDataKey string + VdeviceHostName string + VdeviceName string + VpnID string + func (d *DeviceInterface) IfIndexInt() int + func (d *DeviceInterface) IsUpAdmin() bool + func (d *DeviceInterface) IsUpOper() bool + type DeviceInterfaceList struct + Data []DeviceInterface + type DeviceInterfaceListOptions struct + AfType string + DeviceID string + Ifname string + VpnID string + func (o *DeviceInterfaceListOptions) Params() url.Values + type DeviceList struct + Data []Device + type DeviceMonitor struct + DeviceModel string + DeviceType string + HostName string + ID int + LayoutLevel int + SiteID string + Status string + SystemIP string + type DeviceMonitorList struct + Data []DeviceMonitor + type DeviceStateSystemStatus struct + BoardType string + BootloaderVersion string + BuildNumber string + CreateTimeStamp int64 + DiskStatus string + FipsMode string + FpCPUCount string + Lastupdated int64 + LinuxCPUCount string + LoghostStatus string + ModelSku string + Personality string + RebootReason string + RebootType string + RecordID string + Rid int + State string + StateDescription string + TcpdCPUCount string + TestbedMode string + TotalCPUCount string + UptimeDate int64 + VdeviceDataKey string + VdeviceHostName string + VdeviceName string + Version string + VmanageStorageDiskMount string + VmanageSystemIP string + type DeviceStateSystemStatusList struct + Data []DeviceStateSystemStatus + type DeviceSystemStatus struct + BoardType string + BootloaderVersion string + BuildNumber string + CPUIdle string + CPUSystem string + CPUUser string + ChassisSerialNumber string + ConfigDateDateTimeString string + DiskAvail string + DiskFs string + DiskMount string + DiskSize string + DiskStatus string + DiskUse string + DiskUsed string + FipsMode string + FpCPUCount string + Lastupdated int64 + LinuxCPUCount string + LoghostStatus string + MemBuffers string + MemCached string + MemFree string + MemTotal string + MemUsed string + Min15Avg string + Min1Avg string + Min5Avg string + ModelSku string + Personality string + Procs string + State string + StateDescription string + TcpdCPUCount string + TestbedMode string + Timezone string + TotalCPUCount string + Uptime string + UptimeDate int64 + VdeviceDataKey string + VdeviceHostName string + VdeviceName string + Version string + func (d *DeviceSystemStatus) CPU() DeviceSystemStatusCPU + func (d *DeviceSystemStatus) Memory() DeviceSystemStatusMemory + type DeviceSystemStatusCPU struct + IdlePercentage float64 + LoadAvg1 float64 + LoadAvg15 float64 + LoadAvg5 float64 + SystemPercentage float64 + UserPercentage float64 + type DeviceSystemStatusList struct + Data []DeviceSystemStatus + type DeviceSystemStatusListOptions struct + DeviceID string + func (o *DeviceSystemStatusListOptions) Params() url.Values + type DeviceSystemStatusMemory struct + Buffers int + Cached int + Free int + Total int + Used int + type FetchOptions interface + Params func() url.Values