utils

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NextDeviceInfo = &types.NextDeviceInfo{
	Prefix:  "sd",
	Pattern: "[c-z]",
	Ignore:  false,
}

NextDeviceInfo is the NextDeviceInfo object for Azure.

On Azure Linux instance /dev/sda is the boot volume, /dev/sdb is a temporary disk. Other letters can be used for data volumes.

Functions

func InstanceID

func InstanceID(ctx types.Context) (*types.InstanceID, error)

InstanceID returns the instance ID for the local host.

func IsAzureInstance

func IsAzureInstance(ctx types.Context) (bool, error)

IsAzureInstance returns a flag indicating whether the executing host is an Azure instance .

Types

This section is empty.

Jump to

Keyboard shortcuts

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