s3pstore

package
v0.0.0-...-dd83066 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package s3pstore is a series of helper functions to pull certs from s3 and push updated certs to s3

Index

Constants

This section is empty.

Variables

View Source
var (
	//S3bucket is an exported variable because we need to set it in main
	S3bucket string
	//FilePrefix is Exported to be set by main
	FilePrefix     string
	SessionProfile string

	//Trace is a setting for logging to allow for a specific log type of trace level logging
	Trace *log.Logger
	//Info is a setting for logging to allow for a specific log type of info level logging
	Info *log.Logger
	//Warning is a setting for logging to allow for a specific log type of warning level logging
	Warning *log.Logger
	//Error is a setting for logging to allow for a specific log type of error level logging
	Error *log.Logger
)

Functions

func IsEmpty

func IsEmpty(name string) (bool, error)

IsEmpty checks if the directory is empty to determine if we should pull certs or push certs

func ListObjects

func ListObjects(S3bucket string, FilePrefix string) (objectList *s3.ListObjectsV2Output, err error)

ListObjects is an exported call to list objects in a bucket

func PullObjects

func PullObjects(cacheFile string, prefix string) (err error)

PullObjects pulls object from s3bucket and stores locally in cache

func PushCerts

func PushCerts(cert string, bucket string) (err error)

PushCerts allows external libraries to push a cert to S3

Types

This section is empty.

Jump to

Keyboard shortcuts

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