osagnostic

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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{}

func (OperatingSystem) GetName

func (o OperatingSystem) GetName() (os string, err error)

func (OperatingSystem) HomeDir

func (o OperatingSystem) HomeDir() (path string, err error)

Jump to

Keyboard shortcuts

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