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

package storage

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

Index

Package Files

bucket_provider.go long_term_storage.go

func EnableLongTermStorage Uses

func EnableLongTermStorage(gcloud gke.GClouder, installValues map[string]string, providedBucketName string) (string, error)

EnableLongTermStorage will take the cluster install values and a provided bucket name and use it / create a new one for gs

func NewGKEBucketProvider Uses

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

NewGKEBucketProvider create a new provider for GKE

type GKEBucketProvider Uses

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

GKEBucketProvider the bucket provider for GKE

func (*GKEBucketProvider) CreateNewBucketForCluster Uses

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

CreateNewBucketForCluster creates a new dynamic bucket

func (*GKEBucketProvider) DownloadFileFromBucket Uses

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

DownloadFileFromBucket downloads a file from GCS from the given bucketURL and server its contents with a bufio.Scanner

func (*GKEBucketProvider) EnsureBucketIsCreated Uses

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

EnsureBucketIsCreated ensures the bucket URL is createtd

func (*GKEBucketProvider) UploadFileToBucket Uses

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

UploadFileToBucket uploads a file to the provided GCS bucket with the provided outputName

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