Documentation ¶
Index ¶
- func CreateBucketHandle(ctx context.Context, bucketName string) (*storage.BucketHandle, error)
- func CreateSignedURL(handle *storage.BucketHandle, objectName string) (string, error)
- func CreateStorage(ctx context.Context, ic *installconfig.InstallConfig, ...) error
- func FillBucket(ctx context.Context, bucketHandle *storage.BucketHandle, contents string) error
- func GetBootstrapStorageName(clusterID string) string
- func NewStorageClient(ctx context.Context) (*storage.Client, error)
- func ProvisionBootstrapStorage(ctx context.Context, ic *installconfig.InstallConfig, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucketHandle ¶ added in v0.90.99
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 ¶
FillBucket will add the contents to the bootstrap storage bucket object.
func GetBootstrapStorageName ¶
GetBootstrapStorageName gets the name of the storage bucket for the bootstrap process.
func NewStorageClient ¶
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.