Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Fetch(request string, result *[]gjson.Result) error
- func (c *Client) GetGridRest(request string) ([]byte, error)
- func (c *Client) GetMetricQuery(metric string, result *[]gjson.Result) error
- func (c *Client) Init(retries int, remote conf.Remote) error
- func (c *Client) SetVersion(v string) error
- func (c *Client) TraceLogSet(collectorName string, config *node.Node)
Constants ¶
View Source
const ( DefaultTimeout = "1m" DefaultAPIVersion = "3" )
Variables ¶
View Source
var NewClientFunc = NewClient
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Logger *slog.Logger Remote conf.Remote Timeout time.Duration APIPath string Metadata *util.Metadata // contains filtered or unexported fields }
func (*Client) Fetch ¶
Fetch makes a REST request to the cluster and stores the parsed JSON in result
func (*Client) GetGridRest ¶
GetGridRest makes a grid API request to the cluster and returns a json response as a []byte see also Fetch
func (*Client) GetMetricQuery ¶
GetMetricQuery makes a metrics API request to the cluster and fills the result argument
func (*Client) Init ¶
Init is responsible for determining the StorageGrid server version, API version, hostname, and systemId
func (*Client) SetVersion ¶
Click to show internal directories.
Click to hide internal directories.