Documentation
¶
Overview ¶
Package osimage pushes an OS image's bytes to the platform's object store over the pre-signed targets the upload subresource hands out, so they never pass through the platform itself.
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 runs the upload flow against one platform.
func NewUploader ¶
func NewUploader(images managementv1client.OSImageInterface, logger log.Logger) *Uploader
func (*Uploader) Finalize ¶
Finalize assembles the uploaded parts into the object and records checksum. It is split from Upload so a caller can hash the file after the first upload call has been accepted, rather than reading a multi gigabyte image before the platform has said yes.
Click to show internal directories.
Click to hide internal directories.