awsspec

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Spec

type S3Spec struct {
	Session *session.Session
}

S3Spec contains the AWS session

func New

func New(s *session.Session) S3Spec

New creates a new AWSSpec

func (S3Spec) S3ObjectHasTag

func (s S3Spec) S3ObjectHasTag(bucket, key string, tag TagGetter) (res bool, err error)

S3ObjectHasTag verifies that an S3 object has the indicated tag

type Tag

type Tag struct {
	Key   string
	Value string
}

Tag represents an S3 object tag

func (Tag) GetKey

func (t Tag) GetKey() string

GetKey retrieves the Tag Key

func (Tag) GetValue

func (t Tag) GetValue() string

GetValue retrieves the Tag Value

type TagGetter

type TagGetter interface {
	GetKey() string
	GetValue() string
}

TagGetter is an interface that wraps the GetKey and GetValue methods

Jump to

Keyboard shortcuts

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