s3

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ApplicatonMetaKey is used as a Key for s3 object's metadata and tag
	ApplicatonMetaKey = "Application"
	// EnvironmentMetaKey is used as a Key for s3 object's metadata and tag
	EnvironmentMetaKey = "Environment"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	S3Svc s3iface.S3API
	// contains filtered or unexported fields
}

Client with AWS services

func New

func New(region, bucket string) (*Client, error)

New returns clients for AWS services

func (*Client) DeleteObject added in v0.12.0

func (c *Client) DeleteObject(object *types.DeleteObjectInput) error

func (*Client) GetObjects

func (c *Client) GetObjects(object *types.GetObjectsInput) (*types.GetObjectsOuput, error)

GetObjects returns key value map for given pattern

func (*Client) PutObject

func (c *Client) PutObject(object *types.PutObjectInput) error

PutObject copy secret data on S3 bucket https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html

Jump to

Keyboard shortcuts

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