Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIKeyHeader = "signadot-api-key" ClusterTokenHeader = "signadot-cluster-token" )
Variables ¶
This section is empty.
Functions ¶
func FixAPIErrors ¶
func FixAPIErrors(transport runtime.ClientTransport) runtime.ClientTransport
FixAPIErrors is middleware that extracts the remote, server-provided API error message from an SDK error.
func InitAPITransport ¶
func InitAPITransport(conf *APIConfig) (runtime.ClientTransport, error)
Types ¶
type APIConfig ¶
type APIConfig struct { APIKey string ClusterToken string BearerToken string APIURL string ArtifactsAPIURL string UserAgent string Debug bool // Advanced (optional) settings Consumers map[string]runtime.Consumer OverrideConsumers bool Producers map[string]runtime.Producer OverrideProducers bool HTTPClient *http.Client }
Click to show internal directories.
Click to hide internal directories.