runtime

package
v10.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: MPL-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowError

func AllowError(errString string, command string, args ...string) (bool, error)

Runs command `command` with arguments `args`. If standard error from command includes `errString` then true, is returned with no error. Otherwise false is returned, with or without an error.

func Error

func Error(c *exec.Cmd) ([]byte, error)

Error runs the command and returns its standard error.

func RunCommands

func RunCommands(allowFail bool, commands ...[]string) error

Types

type OSUser

type OSUser struct {
	Name     string
	Password string
}

func (*OSUser) Create

func (user *OSUser) Create(okIfExists bool) error

func (*OSUser) CreateNew

func (user *OSUser) CreateNew() error

func (*OSUser) EnsureCreated

func (user *OSUser) EnsureCreated() error

func (*OSUser) MakeAdmin

func (user *OSUser) MakeAdmin() error

Jump to

Keyboard shortcuts

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