Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecutePingOperation ¶
ExecutePingOperation will send a SystemPing operation HTTP request to a Docker environment(endpoint) using the specified host and optional TLS configuration. It uses a new Http.Client for each operation.
Types ¶
type AzureAuthenticationResponse ¶
type AzureAuthenticationResponse struct { AccessToken string `json:"access_token"` ExpiresOn string `json:"expires_on"` }
AzureAuthenticationResponse represents an Azure API authentication response.
type HTTPClient ¶
HTTPClient represents a client to send HTTP requests.
func NewHTTPClient ¶
func NewHTTPClient() *HTTPClient
NewHTTPClient is used to build a new HTTPClient.
func (*HTTPClient) ExecuteAzureAuthenticationRequest ¶
func (client *HTTPClient) ExecuteAzureAuthenticationRequest(credentials *portainer.AzureCredentials) (*AzureAuthenticationResponse, error)
ExecuteAzureAuthenticationRequest is used to execute an authentication request against the Azure API. It re-uses the same http.Client.
Click to show internal directories.
Click to hide internal directories.