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: 51

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