jx: github.com/jenkins-x/jx/pkg/cloud/amazon/storage Index | Files

package storage

import "github.com/jenkins-x/jx/pkg/cloud/amazon/storage"

Index

Package Files

bucket_provider.go

func NewAmazonBucketProvider Uses

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

NewAmazonBucketProvider create a new provider for AWS

type AmazonBucketProvider Uses

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

AmazonBucketProvider the bucket provider for AWS

func (*AmazonBucketProvider) CreateNewBucketForCluster Uses

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

CreateNewBucketForCluster creates a new dynamic bucket

func (*AmazonBucketProvider) DownloadFileFromBucket Uses

func (b *AmazonBucketProvider) DownloadFileFromBucket(bucketURL string) (*bufio.Scanner, error)

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

func (*AmazonBucketProvider) EnsureBucketIsCreated Uses

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

EnsureBucketIsCreated ensures the bucket URL is created

func (*AmazonBucketProvider) UploadFileToBucket Uses

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

Package storage imports 19 packages (graph) and is imported by 1 packages. Updated 2019-11-01. Refresh now. Tools for package owners.