session

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSession

func NewSession(opts *Options) (*session.Session, error)

NewSession creates an AWS session to use AWS Services or compatible.

Types

type Options

type Options struct {
	Endpoint              string
	Region                string
	BucketName            string
	ObjectKey             string
	Profile               string
	AccessKeyID           string
	SecretAccessKey       string
	SessionToken          string
	DisableSSL            bool
	S3ForcePathStyle      bool
	EnvAuthentication     bool
	IgnoreEnvCreds        bool
	IgnoreConfigCreds     bool
	IgnoreEC2RoleCreds    bool
	UseAccelerateEndpoint bool
}

Options defines session builder options.

func FromURL

func FromURL(u string) (*Options, error)

FromURL parses the given url to build a session object.

Jump to

Keyboard shortcuts

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