upgrader

package
v0.0.0-...-c23f332 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ClientIDFlagKey = "client-id"
	DefaultTimeout  = "90m"
)

Parameter key shared with external packages

Variables

View Source
var (
	SupportedVersions = []string{
		versionWindows2008r2,
		versionWindows2012r2,
		versionWindows2016,
		versionWindows2019,
		versionWindows2022,
	}
)

SupportedVersions shows all supported OS versions of the tool.

Functions

func Run

func Run(p *InputParams, logger logging.Logger) error

Run runs upgrader.

Types

type InputParams

type InputParams struct {
	ClientID               string
	ProjectPtr             *string
	Zone                   string
	Instance               string
	CreateMachineBackup    bool
	AutoRollback           bool
	SourceOS               string
	TargetOS               string
	Timeout                string
	UseStagingInstallMedia bool
	ScratchBucketGcsPath   string
	Oauth                  string
	Ce                     string
	GcsLogsDisabled        bool
	CloudLogsDisabled      bool
	StdoutLogsDisabled     bool
}

InputParams contains input params for the upgrade.

Jump to

Keyboard shortcuts

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