package endpoints

import "github.com/aws/aws-sdk-go-v2/service/s3/internal/endpoints"

Index

Functions

func GetDNSSuffix

func GetDNSSuffix(id string) (string, error)

GetDNSSuffix returns the dnsSuffix URL component for the given partition id

func GetDNSSuffixFromRegion

func GetDNSSuffixFromRegion(region string) (string, error)

GetDNSSuffixFromRegion returns the dnsSuffix URL component for the given partition id

Types

type Options

type Options struct {
	DisableHTTPS bool
}

Options is the endpoint resolver configuration options

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver S3 endpoint resolver

func New

func New() *Resolver

New returns a new Resolver

func (*Resolver) ResolveEndpoint

func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error)

ResolveEndpoint resolves the service endpoint for the given region and options

Source Files

endpoints.go

Version
v1.9.0
Published
May 25, 2021
Platform
windows/amd64
Imports
5 packages
Last checked
9 hours ago

Tools for package owners.