Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) GetHardwareToken() (string, error)
- func (c *Client) GetResourceUsage() (*ResourceUsage, error)
- func (c *Client) ListUserDevices() ([]UserDevice, error)
- func (c *Client) Login() error
- func (c *Client) Logout() error
- func (c *Client) Session(fnSession func(c *Client) error) error
- func (c *Client) Validate() error
- type Config
- type ResourceUsage
- type UserDevice
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResourceUsageFuncScript = `` /* 127-byte string literal not displayed */ ResourceUsageFuncName = "resourceUsage" )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetHardwareToken ¶
GetHardwareToken Get the generated random number to be used in authentication
func (*Client) GetResourceUsage ¶
func (c *Client) GetResourceUsage() (*ResourceUsage, error)
GetResourceUsage Get current resource usages. Client must be authenticated.
func (*Client) ListUserDevices ¶
func (c *Client) ListUserDevices() ([]UserDevice, error)
ListUserDevices Get all user devices. Client must be authenticated.
func (*Client) Login ¶
Login Authenticate using saved username/password. Authentication cookies will be persisted in the lifetime of Client.
type ResourceUsage ¶
type UserDevice ¶
type UserDevice struct { Domain string IpAddr string MacAddr string Port string PortID string DevStatus string IpType string Time string HostName string IPv4Enabled string IPv6Enabled string DeviceType string UserDevAlias string UserSpecifiedDeviceType string LeaseTimeRemaining string }
func (*UserDevice) Online ¶
func (d *UserDevice) Online() bool
Click to show internal directories.
Click to hide internal directories.