common

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//PollStatusInSeconds the amount of time to wait before updating state
	PollStatusInSeconds = 60

	//WaitForVolumeState the amount of time to wait for volume state changes
	WaitForVolumeState = 1
)

Variables

View Source
var (
	//ErrNodeNotFound The node was not found
	ErrNodeNotFound = errors.New("The node was not found")

	//ErrAttributeNotFound The attribute was not found
	ErrAttributeNotFound = errors.New("The attribute was not found")
)

Functions

func FindScaleIONodeByExecutorID

func FindScaleIONodeByExecutorID(nodes []*types.ScaleIONode, executorID string) *types.ScaleIONode

FindScaleIONodeByExecutorID Get ScaleIO node by ExecutorID

func FindScaleIONodeByHostname

func FindScaleIONodeByHostname(nodes []*types.ScaleIONode, hostname string) *types.ScaleIONode

FindScaleIONodeByHostname Find ScaleIO node by Hostname

func GetGatewayAddress

func GetGatewayAddress(state *types.ScaleIOFramework) (string, error)

GetGatewayAddress returns the ScaleIO gateway address

func GetPrimaryMdmNode

func GetPrimaryMdmNode(state *types.ScaleIOFramework) (*types.ScaleIONode, error)

GetPrimaryMdmNode gets the Primary node

func PersonaIDToString

func PersonaIDToString(persona int) string

PersonaIDToString PersonaID -> String

func PersonaStringToID

func PersonaStringToID(persona string) int

PersonaStringToID String -> PersonaID

func SyncRunState

func SyncRunState(state *types.ScaleIOFramework, runState int, allNodes bool) bool

SyncRunState a function to waiting on a specific state

Types

type RetrieveState

type RetrieveState func() (*types.ScaleIOFramework, error)

RetrieveState is a call back to retrieve an update of the state

Jump to

Keyboard shortcuts

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