client

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2019 License: GPL-3.0 Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(httpClient *http.Client, url, username, password string) *Client

func (*Client) ApplMgmt

func (c *Client) ApplMgmt() (string, error)

ApplMgmt provides health status of applmgmt services.

func (*Client) DatabaseStorage

func (c *Client) DatabaseStorage() (string, error)

DatabaseStorage provides health status of database storage health.

func (*Client) Load

func (c *Client) Load() (string, error)

Load provides health status of load health.

func (*Client) Login

func (c *Client) Login() error

Login creates a session with the API. This operation exchanges user credentials supplied in the security context for a session identifier that is to be used for authenticating subsequent calls.

func (*Client) Logout

func (c *Client) Logout() error

Logout terminates the validity of a session token.

func (*Client) Mem

func (c *Client) Mem() (string, error)

Mem provides health status of memory health.

func (*Client) Ping

func (c *Client) Ping() error

Ping sent a request to VCSA server to ensure the link is operating. In case of 401 error Ping tries to re authenticate.

func (*Client) SoftwarePackages

func (c *Client) SoftwarePackages() (string, error)

SoftwarePackages provides information on available software updates available in remote VUM repository. Red indicates that security updates are available. Orange indicates that non-security updates are available. Green indicates that there are no updates available. Gray indicates that there was an error retrieving information on software updates.

func (*Client) Storage

func (c *Client) Storage() (string, error)

Storage provides health status of storage health.

func (*Client) Swap

func (c *Client) Swap() (string, error)

Swap provides health status of swap health.

func (*Client) System

func (c *Client) System() (string, error)

System provides overall health of system.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL