Versions in this module Expand all Collapse all v1 v1.0.1 Aug 10, 2023 Changes in this version + const MaxNumOfRetries + const RetryWaitMaxSeconds + const RetryWaitMinSeconds + type Client struct + HTTPClient *http.Client + Logger logger.Logger + URL string + UserAgent string + func NewClient(username, password, apiKey, ziaCloud, userAgent string) (*Client, error) + func (c *Client) Create(endpoint string, o interface{}) (interface{}, error) + func (c *Client) Delete(endpoint string) error + func (c *Client) GetContentType() string + func (c *Client) Logout() error + func (c *Client) Read(endpoint string, o interface{}) error + func (c *Client) Request(endpoint, method string, data []byte, contentType string) ([]byte, error) + func (c *Client) Update(endpoint string, o interface{}) (interface{}, error) + func (c *Client) UpdateWithPut(endpoint string, o interface{}) (interface{}, error) + type Credentials struct + APIKey string + Password string + TimeStamp string + Username string + type ErrorResponse struct + Err error + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + func (r ErrorResponse) IsObjectNotFound() bool + type Session struct + AuthType string + JSessionID string + ObfuscateAPIKey bool + PasswordExpiryDays int + PasswordExpiryTime int + Source string + func MakeAuthRequestZIA(credentials *Credentials, url string, client *http.Client, userAgent string) (*Session, error)