config

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

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

Go to latest
Published: Sep 22, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPClient HTTPClient

	Region string

	Endpoint Endpoint

	Credentials   Credentials
	SignatureType SignatureType
}

func (Config) ToAWS

func (c Config) ToAWS() aws.Config

type Credentials

type Credentials struct {
	AccessKey string
	SecretKey string
}

type Endpoint

type Endpoint struct {
	Host string
	Port int

	WithSSL         bool
	WithVirtualHost bool
}

func NewEndpointFromURL

func NewEndpointFromURL(url string) (e Endpoint, err error)

func (Endpoint) String

func (e Endpoint) String() string

type HTTPClient

type HTTPClient interface {
	Do(*http.Request) (*http.Response, error)
}

type SignatureType

type SignatureType int
const (
	SignatureTypeAnonymous SignatureType = 1
	SignatureTypeV2        SignatureType = 2
	SignatureTypeV2Header  SignatureType = 3
	SignatureTypeV4        SignatureType = 4
)

Jump to

Keyboard shortcuts

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