awsx

package
v0.0.0-...-8fc9d4d Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadEnv

func ReadEnv(cfg *Config) error

ReadEnv - 指定したenvfileからAWSに関する設定を読み込む

Types

type Config

type Config struct {
	AccessKey       string `split_words:"true"`
	SecretAccessKey string `split_words:"true"`
	S3Bucket        string `split_words:"true"`
	Region          string `split_words:"true"`
}

Config - AWSの接続情報に関する設定

func (*Config) Connect

func (c *Config) Connect() (*Connection, error)

Connect - AWSに接続

type Connection

type Connection struct {
	Config  Config
	Session *session.Session
	SVC     *s3.S3
}

Jump to

Keyboard shortcuts

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