util

package
v0.0.0-...-ea7bf49 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const (
	DevDir            = "/dev/longhorn"
	VolumeStackPrefix = "volume-"
)

Variables

This section is empty.

Functions

func Backoff

func Backoff(maxDuration time.Duration, timeoutMessage string, f func() (bool, error)) error

func ConstructSocketNameInContainer

func ConstructSocketNameInContainer(driverName string) string

func ConstructSocketNameOnHost

func ConstructSocketNameOnHost(driverName string) string

func ConvertSize

func ConvertSize(size string) (string, string, error)

func Execute

func Execute(binary string, args []string) (string, error)

func VolumeToStackName

func VolumeToStackName(volumeName string) string

Types

type MetadataConfig

type MetadataConfig struct {
	DriverName    string
	Image         string
	ContainerName string
}

func GetMetadataConfig

func GetMetadataConfig(metadataURL string) (MetadataConfig, error)

Jump to

Keyboard shortcuts

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