sys

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelOnSignal

func CancelOnSignal(cancel context.CancelFunc)

func EscapeEnv

func EscapeEnv(env map[string]string) []string

EscapeEnv escapes a map of environment variables to be used by the env command.

func EscapeString

func EscapeString(s string) string

EscapeString escapes a string for shell usage.

func StartAgent

func StartAgent()

func StopAgent

func StopAgent()

func UserGroup

func UserGroup(info os.FileInfo, remote bool) (string, string)

func UserGroupNum

func UserGroupNum(info os.FileInfo) (int, int)

Types

type UFile

type UFile struct {
	os.FileInfo
	User  string
	Group string
	Path  string
}

func (UFile) FSize

func (f UFile) FSize() string

func (UFile) PaddedGroup

func (f UFile) PaddedGroup(l int) string

func (UFile) PaddedName

func (f UFile) PaddedName(l int) string

func (UFile) PaddedSize

func (f UFile) PaddedSize(l int) string

func (UFile) PaddedUser

func (f UFile) PaddedUser(l int) string

Jump to

Keyboard shortcuts

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