service

package
v0.0.0-...-d4ad31f Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterMap

type FilterMap map[string]string

FilterMap is used to keep filter information

func (*FilterMap) Set

func (i *FilterMap) Set(value string) error

Set is used to push the list of values into the filter

func (*FilterMap) String

func (i *FilterMap) String() string

type Service

type Service struct {
	*s3.Client
	// contains filtered or unexported fields
}

Service is responsible by the connection to s3 and the operations performed on s3

func New

func New(config aws.Config) *Service

New creates a S3 service using aws configuration. ~/.aws/credentials, environment variables, ...

func (*Service) Objects

func (s *Service) Objects(filter FilterMap) ([]model.ObjectData, error)

List all objects from S3 using the filter

Jump to

Keyboard shortcuts

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