gcp

package
v0.90.99 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBucketHandle added in v0.90.99

func CreateBucketHandle(ctx context.Context, bucketName string) (*storage.BucketHandle, error)

CreateBucketHandle will create the bucket handle that can be used as a reference for other storage resources.

func CreateSignedURL

func CreateSignedURL(handle *storage.BucketHandle, objectName string) (string, error)

CreateSignedURL creates a signed url and correlates the signed url with a storage bucket.

func CreateStorage

func CreateStorage(ctx context.Context, ic *installconfig.InstallConfig, bucketHandle *storage.BucketHandle, clusterID string) error

CreateStorage creates the gcp bucket/storage. The storage bucket does Not include the bucket object. The bucket object is created as a separate process/function, so that the two are not tied together, and the data stored inside the object can be set at a later time.

func FillBucket

func FillBucket(ctx context.Context, bucketHandle *storage.BucketHandle, contents string) error

FillBucket will add the contents to the bootstrap storage bucket object.

func GetBootstrapStorageName

func GetBootstrapStorageName(clusterID string) string

GetBootstrapStorageName gets the name of the storage bucket for the bootstrap process.

func NewStorageClient

func NewStorageClient(ctx context.Context) (*storage.Client, error)

NewStorageClient creates a new Google storage client.

func ProvisionBootstrapStorage added in v0.90.99

func ProvisionBootstrapStorage(ctx context.Context, ic *installconfig.InstallConfig, bucketHandle *storage.BucketHandle, clusterID string) (string, error)

ProvisionBootstrapStorage will provision the required storage bucket and signed url for the bootstrap process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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