Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSession ¶
type AWSSession struct {
// contains filtered or unexported fields
}
AWSSession represent a live session to AWS services
func NewAWSSession ¶
func NewAWSSession(accessKey string, secret string, endpoint string, region string, bucket string) (*AWSSession, error)
NewAWSSession create a new session
func NewAWSSessionFromEnvironment ¶
func NewAWSSessionFromEnvironment() (*AWSSession, error)
NewAWSSessionFromEnvironment create a new session from environment variable. This will be looking for the environment variable AWS_S3_ENDPOINT, AWS_S3_REGION and AWS_S3_BUCKET
func (*AWSSession) GetBucket ¶
func (s *AWSSession) GetBucket() string
GetBucket associated with a session
func (*AWSSession) GetCredentials ¶
func (s *AWSSession) GetCredentials() (credentials.Value, error)
GetCredentials from the established session
func (*AWSSession) UploadFile ¶
func (s *AWSSession) UploadFile(localFile string, s3FilePath string) error
UploadFile to a S3 bucket
type MinIOSession ¶
type MinIOSession struct {
// contains filtered or unexported fields
}
func NewMinIOSession ¶
func NewMinIOSession(accessKey string, secret string, endpoint string, region string, bucket string) (*MinIOSession, error)
NewMinIOSession create a new session
func NewMinIOSessionFromEnvironment ¶
func NewMinIOSessionFromEnvironment() (*MinIOSession, error)
NewMinIOSessionFromEnvironment create a new session from environment variable. This will be looking for the environment variable MINIO_ENDPOINT, MINIO_REGION and MINIO_BUCKET
func (*MinIOSession) GetBucket ¶
func (s *MinIOSession) GetBucket() string
GetBucket associated with a session
func (*MinIOSession) UploadFile ¶
func (s *MinIOSession) UploadFile(localFile string, s3FilePath string) error
UploadFile to a MinIO S3 bucket