client

package
v0.0.0-...-0a771b7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SubaccountKey is used as URL parameter
	SubaccountKey = "subaccount_id"
	// LocationHeaderKey is used in the async API calls
	LocationHeaderKey = "Location"
	// LabelsQueryKey is used as URL parameter for Service Manager label querying
	LabelsQueryKey = "labelQuery"
)

Variables

This section is empty.

Functions

func NewCallerProvider

func NewCallerProvider() *callerProvider

NewCallerProvider creates new callerProvider

func NewClient

func NewClient(cfg config.Config, callerProvider ExternalSvcCallerProvider) *client

NewClient creates a new client

Types

type ExternalSvcCaller

type ExternalSvcCaller interface {
	Call(*http.Request) (*http.Response, error)
}

ExternalSvcCaller is used to call external services with given authentication

type ExternalSvcCallerProvider

type ExternalSvcCallerProvider interface {
	GetCaller(cfg config.Config, region string) (ExternalSvcCaller, error)
}

ExternalSvcCallerProvider provides ExternalSvcCaller based on the provided config and region

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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