azurecommon

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

Hexa

Azure - Common Credentials and Http Client

This package holds utilities for parsing IntegrationInfo credentials key and an http client used for testing and other extensions.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientSecretCredentials

func ClientSecretCredentials(azureKey AzureKey, httpClient HTTPClient) (*azidentity.ClientSecretCredential, error)

func ParseResponseError added in v0.6.2

func ParseResponseError(err error) error

Types

type AzureKey

type AzureKey struct {
	AppId        string `json:"appId"`
	Secret       string `json:"secret"`
	Tenant       string `json:"tenant"`
	Subscription string `json:"subscription"`
}

func DecodeKey

func DecodeKey(key []byte) (AzureKey, error)

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
	Post(url, contentType string, body io.Reader) (resp *http.Response, err error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL