storage

package
v2.1.101 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAmazonBucketProvider

func NewAmazonBucketProvider(requirements *config.RequirementsConfig) buckets.Provider

NewAmazonBucketProvider create a new provider for AWS

Types

type AmazonBucketProvider

type AmazonBucketProvider struct {
	Requirements *config.RequirementsConfig
	// contains filtered or unexported fields
}

AmazonBucketProvider the bucket provider for AWS

func (*AmazonBucketProvider) CreateNewBucketForCluster

func (b *AmazonBucketProvider) CreateNewBucketForCluster(clusterName string, bucketKind string) (string, error)

CreateNewBucketForCluster creates a new dynamic bucket

func (*AmazonBucketProvider) DownloadFileFromBucket

func (b *AmazonBucketProvider) DownloadFileFromBucket(bucketURL string) (io.ReadCloser, error)

DownloadFileFromBucket downloads a file from an S3 bucket and converts the contents to a bufio.Scanner

func (*AmazonBucketProvider) EnsureBucketIsCreated

func (b *AmazonBucketProvider) EnsureBucketIsCreated(bucketURL string) error

EnsureBucketIsCreated ensures the bucket URL is created

func (*AmazonBucketProvider) UploadFileToBucket

func (b *AmazonBucketProvider) UploadFileToBucket(reader io.Reader, outputName string, bucketURL string) (string, error)

UploadFileToBucket uploads a file to an S3 bucket to the provided bucket with the provided outputName

Jump to

Keyboard shortcuts

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