shell

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectorName   = "collector.sh"
	CollectorScript = "scripts/collector.sh"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ShellType     config.ShellType
	ShellLocation string
	IsRoot        bool
	SudoExecUser  *user.User
	OdaDir        string
	HomeDir       string
}

Config is the configuration for the shell

type Shell

type Shell struct {
	Config *Config
	// contains filtered or unexported fields
}

Shell is the shell configuration

func NewShell

func NewShell(config *Config, logger zerolog.Logger) (*Shell, error)

NewShell creates a new shell configuration

func (*Shell) DeleteShellConfiguration

func (s *Shell) DeleteShellConfiguration() error

DeleteShellConfiguration removes the shell configuration

func (*Shell) InjectShellSource

func (s *Shell) InjectShellSource(nonInteractive bool) error

InjectShellSource injects the shell source

func (*Shell) InstallShellConfiguration

func (s *Shell) InstallShellConfiguration() error

InstallShellConfiguration installs the shell configuration

Jump to

Keyboard shortcuts

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