package
21.0.0+incompatible
Repository: https://github.com/sshcom/privx-sdk-go.git
Documentation: pkg.go.dev
# Functions
Auth setup access token provider for api.
BaseURL defines a target PrivX server and possible path prefix.
ErrorFromResponse creates an error value from the REST API error response.
New creates an instance of HTTP client.
Retry HTTP I/O multiple times before failure.
TrustAnchor setups X509 certificates to trust TLS connections.
UseConfigFile setup rest client from toml file.
UseEnvironment setups rest client using environment variables.
Verbose enables debug-level logging.
# Constants
UserAgent specifies the HTTP user-agent string for the SDK clients.
# Structs
Certificate specifies a trusted CA certificate for the REST endpoint.
ErrorDetail contains detailed error information, linked with the error response.
ErrorResponse contains REST endpoint error response information.
WriteCounter count bytes for a file download.
# Interfaces
Authorizer provides access token for REST API client.
Connector is HTTP connector for api.
CURL is HTTP request.
# Type aliases
Option is configuration applied to the client.