aws

package
v0.0.0-...-c2befbc Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents an AWS Client

func NewClient

func NewClient(profile string, region string) *Client

NewClient returns a new AWS client instance with current configuration

func (*Client) DeleteObjects

func (client *Client) DeleteObjects(items []Object, bucket string) error

DeleteObjects delete specified objects from given bucket

func (*Client) GetBucketList

func (client *Client) GetBucketList() []string

GetBucketList returns list of buckets present in current region and profile

func (*Client) ListObjectWithVersions

func (client *Client) ListObjectWithVersions(bucket string) ([]Object, error)

ListObjectWithVersions returns list of objects present (with each version) in given bucket

func (*Client) ListObjects

func (client *Client) ListObjects(bucket string) ([]Object, error)

ListObjects returns list of objects present in given bucket

type Object

type Object struct {
	Name          string
	LastModified  time.Time
	IsLastVersion bool
	VersionID     string
}

Object represents a S3 Object

Jump to

Keyboard shortcuts

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