gcp

package
v0.0.0-...-97303f7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

package gcp implements uploading os images to gcp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

Uploader can upload and remove os images on GCP.

func New

func New(ctx context.Context, project, location, bucketName string, log *zap.Logger) (*Uploader, error)

New creates a new Uploader.

func (*Uploader) Upload

func (u *Uploader) Upload(ctx context.Context, req *osimage.UploadRequest) (map[string]string, error)

Upload uploads an OS image to GCP.

Jump to

Keyboard shortcuts

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