gcp

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSignedURL

func CreateSignedURL(clusterID 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 DestroyStorage

func DestroyStorage(ctx context.Context, clusterID string) error

DestroyStorage Destroy the bucket and the bucket objects that are associated with the bucket.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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