gcp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prepper

type Prepper struct{}

func (*Prepper) Prepare

func (p *Prepper) Prepare(_ context.Context, imagePath, tmpDir string) (string, error)

type Uploader

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

Uploader can upload and remove os images on GCP.

func NewUploader

func NewUploader(config config.Config, log *log.Logger) (*Uploader, error)

NewUploader creates a new config.

func (*Uploader) Upload

func (u *Uploader) Upload(ctx context.Context, image io.ReadSeeker, _ int64) (ref []string, retErr 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