util

package
v0.0.0-...-7230ca3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OvfEnvPath = "/var/lib/waagent/ovf-env.xml"
)

Variables

This section is empty.

Functions

func GetAzureUser

func GetAzureUser() (string, error)

GetAzureUser returns the username provided at VM provisioning time to Azure.

func ParseINI

func ParseINI(s string) (map[string]string, error)

ParseINI basic INI config file format into a map. Example expected format:

KEY=VAL
KEY2=VAL2

func PathExists

func PathExists(path string) (bool, error)

PathExists checks if a path is a directory or file on the filesystem.

func ScriptDir

func ScriptDir() (string, error)

ScriptDir returns the absolute path of the running process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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