runtime

package
v10.7.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: MPL-2.0 Imports: 7 Imported by: 0

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