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 *logger.Logger) (*Uploader, error)
New creates a new Uploader.
func (*Uploader) Upload ¶
func (u *Uploader) Upload(ctx context.Context, req *osimage.UploadRequest) ([]versionsapi.ImageInfoEntry, error)
Upload uploads an OS image to GCP.
Click to show internal directories.
Click to hide internal directories.