go-aws-utility

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

README

Go Report Card Build Status

go-aws-utility

This project acts like a wrapper for the AWS go SDK. More functionality will be following...

How to use

package main

import (
	"fmt"
	"github.com/go-aws-utility/util/services"
)

func main() {
	// Get credentials
	credentials := services.GetAccountInfo()
	fmt.Printf("We found your acocunt Key: %v \n", credentials)

	// //list buckets
	buckets, err := services.GetS3Buckets()
	if err != nil {
		fmt.Println("Error: ", err)
	}
	buckets.ListBuckets()

	// read files in parrallel
	input := services.FilesInput{Bucket: "YOUR_BUCKET", FileNames: []string{"PATH_TO_FILE"}}
	returnValues := services.GetS3Files(input)

	fmt.Println("All files read!")
	for i := 0; i < len(returnValues.Files); i++ {
		fmt.Println("", returnValues.Files[i])

	}

}


Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
util

Jump to

Keyboard shortcuts

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