client

package
v0.49.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: GPL-3.0 Imports: 6 Imported by: 1

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