manager

package
v0.0.0-...-f2d997f Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxDiskUsedPercent uint          = 99
	HeartbeatDuration  time.Duration = time.Second * 5
	ReadOnly           bool          = false
	DefaultExpires                   = time.Minute * 30
)

Functions

This section is empty.

Types

type Size

type Size interface {
	Size() int64
}

type VolumeManager

type VolumeManager struct {
	DataDir string
	Volumes map[uint64]*volume.Volume

	AdminPort    int
	AdminHost    string
	PublicPort   int
	PublicHost   string
	AdminServer  *http.ServeMux
	PublicServer *http.ServeMux

	Machine    string
	DataCenter string

	MasterHost string
	MasterPort int
}

func NewVolumeManager

func NewVolumeManager(dir string) (*VolumeManager, error)

func (*VolumeManager) Heartbeat

func (vm *VolumeManager) Heartbeat()

func (*VolumeManager) Start

func (vm *VolumeManager) Start()

func (*VolumeManager) Stop

func (vm *VolumeManager) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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