executors

package
v2.1.0-dev+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrickInfo

type BrickInfo struct {
	Path string
	Host string
}

Returns information about the location of the brick

type BrickRequest

type BrickRequest struct {
	VgId             string
	Name             string
	TpSize           uint64
	Size             uint64
	PoolMetadataSize uint64
}

Brick description

type DeviceInfo

type DeviceInfo struct {
	// Size in KB
	Size       uint64
	ExtentSize uint64
}

Returns the size of the device

type DurabilityType

type DurabilityType int

Enumerate durability types

const (
	DurabilityNone DurabilityType = iota
	DurabilityReplica
	DurabilityDispersion
)

type Executor

type Executor interface {
	PeerProbe(exec_host, newnode string) error
	PeerDetach(exec_host, detachnode string) error
	DeviceSetup(host, device, vgid string) (*DeviceInfo, error)
	DeviceTeardown(host, device, vgid string) error
	BrickCreate(host string, brick *BrickRequest) (*BrickInfo, error)
	BrickDestroy(host string, brick *BrickRequest) error
	BrickDestroyCheck(host string, brick *BrickRequest) error
	VolumeCreate(host string, volume *VolumeRequest) (*VolumeInfo, error)
	VolumeDestroy(host string, volume string) error
	VolumeDestroyCheck(host, volume string) error
	VolumeExpand(host string, volume *VolumeRequest) (*VolumeInfo, error)
	SetLogLevel(level string)
}

type VolumeInfo

type VolumeInfo struct {
}

type VolumeRequest

type VolumeRequest struct {
	Bricks []BrickInfo
	Name   string
	Type   DurabilityType

	// Dispersion
	Data       int
	Redundancy int

	// Replica
	Replica int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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