Documentation ¶
Overview ¶
Package http implements an HTTP client for interacting with an HTTP API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseV1Config ¶
func ParseV1Config(rawCfg json.RawMessage) (*minderv1.RESTProviderConfig, error)
ParseV1Config parses the raw config into a HTTPConfig struct
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST is the interface for interacting with an REST API. It implements helper functions that a provider that uses the `rest` trait can use.
func NewREST ¶
func NewREST( config *minderv1.RESTProviderConfig, metrics telemetry.HttpClientMetrics, credential provifv1.RestCredential, ) (*REST, error)
NewREST creates a new RESTful client.
func (*REST) GetBaseURL ¶
GetBaseURL returns the base URL for the REST API.
Click to show internal directories.
Click to hide internal directories.