helpers

package
v0.0.0-...-9575221 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailOnError

func FailOnError(err error, msg string)

func GetHostName

func GetHostName() string

func RandomString

func RandomString(length int) string

Types

type Distro

type Distro struct {
	Family     string // Major distribution type currently "debian" or "centos"
	InitSystem string // The Linux init system used by this operating system
	Version    string // Major version of the distribution // TODO
}

func GetDistro

func GetDistro() (*Distro, error)

func (*Distro) SetFamily

func (d *Distro) SetFamily(family string) error

Set the "family" name of the operating system

func (*Distro) SetInitSystem

func (d *Distro) SetInitSystem() error

Set the init system based on the operating system family

Jump to

Keyboard shortcuts

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