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 ¶
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 ¶
PullObjects pulls object from s3bucket and stores locally in cache
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.