Versions in this module Expand all Collapse all v1 v1.0.1 Aug 10, 2023 Changes in this version + const ZCC_CLIENT_ID + const ZCC_CLIENT_SECRET + const ZCC_CLOUD + type AuthRequest struct + APIKey string + SecretKey string + type AuthToken struct + AccessToken string + type BackoffConfig struct + Enabled bool + MaxNumOfRetries int + RetryWaitMaxSeconds int + RetryWaitMinSeconds int + type Client struct + Config *Config + func NewClient(config *Config) (c *Client) + func (client *Client) NewRequestDo(method, url string, options, body, v interface{}) (*http.Response, error) + type Config struct + AuthToken *AuthToken + BackoffConf *BackoffConfig + BaseURL *url.URL + ClientID string + ClientSecret string + Cloud string + Logger logger.Logger + UserAgent string + func NewConfig(clientID, clientSecret, cloud, userAgent string) (*Config, error) + func (c *Config) GetHTTPClient() *http.Client + func (c *Config) SetBackoffConfig(backoffConf BackoffConfig) + type CredentialsConfig struct + ClientID string + ClientSecret string + CustomerID string + ZpaCloud string + type ErrorResponse struct + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + func (r ErrorResponse) IsObjectNotFound() bool