Documentation ¶
Index ¶
- func GetNumber(min, max int, used []int) (int, error)
- type Action
- type Cmd
- type DrbdAdm
- func (a *DrbdAdm) Adjust(arg ...string) ([]byte, error)
- func (a *DrbdAdm) Attach(arg ...string) ([]byte, error)
- func (a *DrbdAdm) Connect(arg ...string) ([]byte, error)
- func (a *DrbdAdm) CreateMetaData(arg ...string) ([]byte, error)
- func (a *DrbdAdm) Detach(arg ...string) ([]byte, error)
- func (a *DrbdAdm) Disconnect(arg ...string) ([]byte, error)
- func (a *DrbdAdm) Down(arg ...string) ([]byte, error)
- func (a *DrbdAdm) Primary(arg ...string) ([]byte, error)
- func (a *DrbdAdm) Secondary(arg ...string) ([]byte, error)
- func (a *DrbdAdm) SetTimeout(timeout time.Duration)
- func (a *DrbdAdm) Up(arg ...string) ([]byte, error)
- type DrbdCmd
- type Host
- type NumberPool
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DrbdAdm ¶
type DrbdAdm struct {
// contains filtered or unexported fields
}
func NewDrbdAdm ¶
func (*DrbdAdm) SetTimeout ¶
type DrbdCmd ¶
type DrbdCmd struct {
// contains filtered or unexported fields
}
func NewDrbdCmd ¶
func (*DrbdCmd) CombinedOutput ¶
func (*DrbdCmd) SetTimeout ¶
type NumberPool ¶
NumberPool is used as a stateful type to keep track of used numbers
func NewNumberPool ¶
func NewNumberPool(min, max int, used []int) *NumberPool
NewNumberPool is used to allacte a new number pool
type Resource ¶
Resource is a DRBD resource
func NewResource ¶
NewResource returns a new DRBD resource object
func (*Resource) WriteConfig ¶
WriteConfig writes the configuration of a DRBD resource to file parsable by drbd-utils It is up to the user to check for errors and to check if the file is valid (and to remove it if it isn't).
Click to show internal directories.
Click to hide internal directories.