Versions in this module Expand all Collapse all v1 v1.0.0 Oct 26, 2023 Changes in this version + const AutoPublishBatchSize + const DefaultPort + const DefaultProxyHost + const DefaultProxyPort + const Filename + const GaiaContext + const InProgress + const Limit + const OkResponseCode + const SleepTime + const TimeOut + const WebContext + type APIResponse struct + ErrorMsg string + StatusCode string + Success bool + func (r *APIResponse) GetData() map[string]interface{} + func (r *APIResponse) GetResTmp() map[string]interface{} + type ApiClient struct + func APIClient(apiCA ApiClientArgs) *ApiClient + func (c *ApiClient) ApiCall(command string, payload map[string]interface{}, sid string, waitForTask bool, ...) (APIResponse, error) + func (c *ApiClient) ApiCallSimple(command string, payload map[string]interface{}) (APIResponse, error) + func (c *ApiClient) ApiLogin(username string, password string, continueLastSession bool, domain string, ...) (APIResponse, error) + func (c *ApiClient) ApiLoginWithApiKey(apiKey string, continueLastSession bool, domain string, readOnly bool, ...) (APIResponse, error) + func (c *ApiClient) ApiQuery(command string, detailsLevel string, containerKey string, ...) (APIResponse, error) + func (c *ApiClient) CheckFingerprint() (bool, error) + func (c *ApiClient) DisableAutoPublish() + func (c *ApiClient) GetAutoPublishBatchSize() int + func (c *ApiClient) GetContext() string + func (c *ApiClient) GetPort() int + func (c *ApiClient) GetSessionID() string + func (c *ApiClient) IsPortDefault() bool + func (c *ApiClient) IsProxyUsed() bool + func (c *ApiClient) Login(username string, password string, continueLastSession bool, domain string, ...) (APIResponse, error) + func (c *ApiClient) LoginWithApiKey(apiKey string, continueLastSession bool, domain string, readOnly bool, ...) (APIResponse, error) + func (c *ApiClient) ResetTotalCallsCounter() + func (c *ApiClient) SetAutoPublishBatchSize(autoPublishBatchSize int) + func (c *ApiClient) SetPort(portToSet int) + func (c *ApiClient) SetSleepTime(sleepTime time.Duration) + func (c *ApiClient) SetTimeout(timeout time.Duration) + type ApiClientArgs struct + AcceptServerCertificate bool + ApiVersion string + AutoPublishBatchSize int + CloudMgmtId string + Context string + DebugFile string + Fingerprint string + HttpDebugLevel string + IgnoreServerCertificate bool + Port int + ProxyHost string + ProxyPort int + Server string + Sid string + Sleep time.Duration + Timeout time.Duration + UserAgent string + func APIClientArgs(port int, fingerprint string, sid string, server string, proxyHost string, ...) ApiClientArgs + type Client struct + func CreateClient(server string, sid string, timeout time.Duration) (*Client, error) + func CreateProxyClient(server string, serverProxy string, sid string, portProxy int, ...) (*Client, error) + func (c *Client) GetClient() *http.Client + func (c *Client) GetServer() string + func (c *Client) SetDebugLevel(level string)