osagnostic

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVar

type EnvVar struct {
	Key   string
	Value string
}

type EnvVarInstall

type EnvVarInstall func() error

type EnvVarUninstall

type EnvVarUninstall func() error

type ExpectedDirectory

type ExpectedDirectory struct {
	Path       string
	Permission os.FileMode
}

func NewExpectedDirectory

func NewExpectedDirectory(path string) *ExpectedDirectory

func (ExpectedDirectory) Install

func (e ExpectedDirectory) Install() (*bytes.Buffer, error)

func (ExpectedDirectory) Name

func (e ExpectedDirectory) Name() string

func (ExpectedDirectory) Uninstall

func (e ExpectedDirectory) Uninstall() (*bytes.Buffer, error)

func (ExpectedDirectory) Validate

func (e ExpectedDirectory) Validate() (out *bytes.Buffer, err error)

type ExpectedEnvVar

type ExpectedEnvVar struct {
	Key         string
	OnInstall   EnvVarInstall
	OnUninstall EnvVarUninstall
}

func (ExpectedEnvVar) Install

func (e ExpectedEnvVar) Install() (*bytes.Buffer, error)

func (ExpectedEnvVar) Name

func (e ExpectedEnvVar) Name() string

func (ExpectedEnvVar) Uninstall

func (e ExpectedEnvVar) Uninstall() (*bytes.Buffer, error)

func (ExpectedEnvVar) Validate

func (e ExpectedEnvVar) Validate() (out *bytes.Buffer, err error)

type OperatingSystem

type OperatingSystem struct {
	Name                    string
	HomeDirectoryPath       string
	CurrentWorkingDirectory string
	EnvironmentVariables    []*EnvVar
}

func NewOperatingSystem

func NewOperatingSystem() *OperatingSystem

func (*OperatingSystem) CreateDirectory

func (o *OperatingSystem) CreateDirectory(path string)

func (*OperatingSystem) UpdateCurrentWorkingDirectory

func (o *OperatingSystem) UpdateCurrentWorkingDirectory(path string)

Jump to

Keyboard shortcuts

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