drbd

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignRes

func AssignRes(r Resource) (bool, error)

func IsClient

func IsClient(r Resource) bool

func UnassignRes

func UnassignRes(r Resource) error

func WaitForAssignment

func WaitForAssignment(r Resource, maxRetries int) (bool, error)

Poll drbdmanage until resource assignment is complete.

func WaitForDevPath

func WaitForDevPath(r Resource, maxRetries int) (string, error)

Types

type Mounter

type Mounter struct {
	*Resource
	FSType string
}

func (Mounter) Mount

func (m Mounter) Mount(path string) error

func (Mounter) UnMount

func (m Mounter) UnMount(path string) error

type Resource

type Resource struct {
	Name     string
	NodeName string
	ReadOnly bool
}

Jump to

Keyboard shortcuts

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