s3ry

package module
v0.0.0-...-2de4477 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 17 Imported by: 0

README

CircleCI Scrutinizer Code Quality Code Intelligence Status codecov

s3ry

s3ry is Amazon S3 CLI Tool by using promptui.

  • download
  • upload
  • delete
  • list

S3ry.png

The Gopher character is based on the Go mascot designed by Renée French.

demo

Code Intelligence Status

godoc

https://godoc.org/github.com/seike460/s3ry

release

Pre-release

https://github.com/seike460/s3ry/releases/tag/0.1

Documentation

Overview

Package s3ry is Amazon S3 CLI Tool by using promptui.

Index

Constants

View Source
const ApNortheastOne = "ap-northeast-1"

ApNortheastOne Japan Region String

Variables

This section is empty.

Functions

func Operations

func Operations(region string, bucket string)

Operations for Another package

func SelectBucketAndRegion

func SelectBucketAndRegion() (string, string)

SelectBucketAndRegion get Region and Bucket

Types

type PromptItems

type PromptItems struct {
	Key          int
	Val          string
	Size         int64
	LastModified time.Time
	Tag          string
}

PromptItems struct for promptui

type S3ry

type S3ry struct {
	Sess   *session.Session
	Svc    *s3.S3
	Bucket string
}

S3ry Service Client Operator

func NewS3ry

func NewS3ry(region string) *S3ry

NewS3ry Create New S3ry struct

func (S3ry) DeleteObject

func (s S3ry) DeleteObject(bucket string, item string)

DeleteObject delete Object from S3 bucket

func (S3ry) GetObject

func (s S3ry) GetObject(bucket string, objectKey string)

GetObject get Object from S3 bucket

func (S3ry) ListBuckets

func (s S3ry) ListBuckets() []PromptItems

ListBuckets return ListBuckets for PromptItems

func (S3ry) ListObjects

func (s S3ry) ListObjects(bucket string) []PromptItems

ListObjects return ListObjects for PromptItems

func (S3ry) ListObjectsPages

func (s S3ry) ListObjectsPages(bucket string) []PromptItems

ListObjectsPages return ListObjectsPages for PromptItems

func (S3ry) ListOperation

func (s S3ry) ListOperation() []PromptItems

ListOperation return ListOperation for PromptItems

func (S3ry) ListUpload

func (s S3ry) ListUpload(bucket string) []PromptItems

ListUpload return ListUpload for PromptItems

func (S3ry) SaveObjectList

func (s S3ry) SaveObjectList(bucket string)

SaveObjectList create S3 ObjectList And SaveList

func (S3ry) SelectItem

func (s S3ry) SelectItem(label string, items []PromptItems) string

SelectItem select PromptItems using promptui

func (S3ry) UploadObject

func (s S3ry) UploadObject(bucket string, selectUpload string)

UploadObject put Object in S3 bucket

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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