environ

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 27 Imported by: 3

Documentation

Overview

Package environ implements utilities for managing host environment during an operation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupOperationState

func CleanupOperationState(printer utils.Printer, logger log.FieldLogger) error

CleanupOperationState removes all operation state after the operation is complete

func ConfigureStateDirectory

func ConfigureStateDirectory(stateDir, devicePath string) (err error)

ConfigureStateDirectory sets up the state directory stateDir on host. Optional devicePath specifies the device dedicated for state. If the device has been specified, it will be formatted and mounted as the state directory.

func DisableAgentServices

func DisableAgentServices(logger log.FieldLogger) error

DisableAgentServices disables agent services (installer agent and/or service) without stopping

func UninstallAgentServices

func UninstallAgentServices(printer utils.Printer, logger log.FieldLogger) error

UninstallAgentServices stops and uninstalls system agent services

func UninstallPackageServices

func UninstallPackageServices(printer utils.Printer, logger log.FieldLogger) error

UninstallPackageServices stops and uninstalls system package services

func UninstallService

func UninstallService(service string) error

UninstallService stops and uninstalls a service with the specified name

func UninstallSystem

func UninstallSystem(ctx context.Context, printer utils.Printer, logger log.FieldLogger) (err error)

UninstallSystem removes all state from the system on best-effort basis

func ValidateInstall

func ValidateInstall(baseDir, serviceName string, env *localenv.LocalEnvironment) func() error

ValidateInstall performs a local environment sanity check to make sure that install on this node can proceed without issues

func ValidateNoPackageState

func ValidateNoPackageState(packages pack.PackageService, stateDir string) error

ValidateNoPackageState checks whether the specified package service has state (i.e. has packages) and returns an error in this case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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