Documentation
¶
Index ¶
- Constants
- func CurrentProcessElevated() bool
- func SplitStepsByElevation(steps []Step, elevated bool) (runnable []Step, skipped []Step)
- func StepRequiresElevation(step Step) bool
- func SupportedOS() []string
- type Command
- type CommandResult
- type Options
- type Plan
- type Privilege
- type Reference
- type RunOptions
- type Shell
- type Step
- type StepResult
Constants ¶
View Source
const ProfileHighThroughputUpload = "high-throughput-upload"
Variables ¶
This section is empty.
Functions ¶
func CurrentProcessElevated ¶
func CurrentProcessElevated() bool
func SplitStepsByElevation ¶
func StepRequiresElevation ¶
func SupportedOS ¶
func SupportedOS() []string
Types ¶
type Command ¶
func CommandsForSteps ¶
type CommandResult ¶
func RunCommands ¶
func RunCommands(ctx context.Context, commands []Command, options RunOptions) []CommandResult
type Plan ¶
type Plan struct {
OS string
Profile string
InterfaceName string
SnapshotPath string
Summary string
UserSteps []Step
NetworkTests []Step
SnapshotSteps []Step
AdminSteps []Step
RestoreSteps []Step
Warnings []string
Notes []string
References []Reference
}
func (Plan) RepairChangeSteps ¶
func (Plan) RepairPostChangeSteps ¶
func (Plan) RepairPreflightSteps ¶
func (Plan) RepairSteps ¶
func (Plan) RestorePlanSteps ¶
func (Plan) VerificationSteps ¶
type RunOptions ¶
type StepResult ¶
type StepResult struct {
Step Step
CommandResults []CommandResult
SkippedForPrivilege bool
Err error
SoftFailed bool
}
func RunSteps ¶
func RunSteps(ctx context.Context, steps []Step, options RunOptions) []StepResult
func RunStepsWithElevation ¶
func RunStepsWithElevation(ctx context.Context, steps []Step, elevated bool, options RunOptions) []StepResult
Click to show internal directories.
Click to hide internal directories.