privilege

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLICommand = "privilege"
)

Variables

View Source
var (
	ErrNoElevUtil = errors.New("no privilege elevation utility found")
)

Functions

func RegisterInterfaceImpl

func RegisterInterfaceImpl(impl any)

func Run

func Run(run Runner) (err error)

func SendRunner

func SendRunner(dst io.Writer, r Runner) error

Types

type Runner

type Runner interface {
	Run() error
}

func ReceiveRunner

func ReceiveRunner(src io.Reader) (Runner, error)

Jump to

Keyboard shortcuts

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