utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2015 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 26 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

Index

Constants

View Source
const (
	APIVERSION = "1.17"
)

Variables

View Source
var (
	GITCOMMIT string = "0"
	VERSION   string = "0.2.1"

	IAMSTATIC string = "true"
	INITSHA1  string = ""
	INITPATH  string = ""
)

Functions

func Base64Decode

func Base64Decode(fileContent string) (string, error)

func ConvertPermStrToInt

func ConvertPermStrToInt(str string) int

func DownloadFile

func DownloadFile(uri, target string) error

func FormatMountLabel

func FormatMountLabel(src, mountLabel string) string

FormatMountLabel returns a string to be used by the mount command. The format of this string will be used to alter the labeling of the mountpoint. The string returned is suitable to be used as the options field of the mount command. If you need to have additional mount point options, you can pass them in as the first parameter. Second parameter is the label that you wish to apply to all content in the mount point.

func MatchesContentType

func MatchesContentType(contentType, expectedType string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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