Documentation ¶
Index ¶
- type APIResponse
- type APIResponseCode
- type HttpAPI
- func (this *HttpAPI) AbortSeed(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) AvailableLocalSnapshots(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) AvailableSnapshots(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) CreateSnapshot(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) DeleteMySQLDataDir(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) DiskUsage(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) GetMount(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) GetMySQLDataDirAvailableDiskSpace(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) Hostname(params martini.Params, r render.Render)
- func (this *HttpAPI) ListLogicalVolumes(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) ListSnapshotsLogicalVolumes(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) LogicalVolume(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) MountLV(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) MySQLDiskUsage(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) MySQLErrorLogTail(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) MySQLPort(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) MySQLRunning(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) MySQLStart(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) MySQLStop(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) PostCopy(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) ReceiveMySQLSeedData(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) RegisterRequests(m *martini.ClassicMartini)
- func (this *HttpAPI) RemoveLV(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) SeedCommandCompleted(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) SeedCommandSucceeded(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) SendMySQLSeedData(params martini.Params, r render.Render, req *http.Request)
- func (this *HttpAPI) Unmount(params martini.Params, r render.Render, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Code APIResponseCode Message string Details interface{} }
APIResponse is a response returned as JSON to various requests.
type APIResponseCode ¶
type APIResponseCode int
APIResponseCode is an OK/ERROR response code
const ( ERROR APIResponseCode = iota OK )
func (*APIResponseCode) MarshalJSON ¶
func (this *APIResponseCode) MarshalJSON() ([]byte, error)
func (*APIResponseCode) String ¶
func (this *APIResponseCode) String() string
type HttpAPI ¶
type HttpAPI struct{}
func (*HttpAPI) AvailableLocalSnapshots ¶
func (this *HttpAPI) AvailableLocalSnapshots(params martini.Params, r render.Render, req *http.Request)
LocalSnapshots lists dc-local available snapshots for this host
func (*HttpAPI) AvailableSnapshots ¶
Snapshots lists available snapshots for this host
func (*HttpAPI) CreateSnapshot ¶
CreateSnapshot lists dc-local available snapshots for this host
func (*HttpAPI) DeleteMySQLDataDir ¶
DeleteMySQLDataDir compeltely erases MySQL data directory. Use with care!
func (*HttpAPI) GetMySQLDataDirAvailableDiskSpace ¶
func (this *HttpAPI) GetMySQLDataDirAvailableDiskSpace(params martini.Params, r render.Render, req *http.Request)
GetMySQLDataDirAvailableDiskSpace returns the number of bytes free within the MySQL datadir mount
func (*HttpAPI) ListLogicalVolumes ¶
ListLogicalVolumes lists logical volumes by pattern
func (*HttpAPI) ListSnapshotsLogicalVolumes ¶
func (this *HttpAPI) ListSnapshotsLogicalVolumes(params martini.Params, r render.Render, req *http.Request)
ListSnapshotsLogicalVolumes lists logical volumes by pattern
func (*HttpAPI) LogicalVolume ¶
LogicalVolume lists a logical volume by name/path/mount point
func (*HttpAPI) MySQLDiskUsage ¶
MySQLDiskUsage returns the number of bytes on the MySQL datadir
func (*HttpAPI) MySQLErrorLogTail ¶
returns rows in tail of mysql error log
func (*HttpAPI) MySQLRunning ¶
MySQLRunning checks whether the MySQL service is up
func (*HttpAPI) MySQLStart ¶
MySQLStop starts the MySQL service
func (*HttpAPI) ReceiveMySQLSeedData ¶
func (this *HttpAPI) ReceiveMySQLSeedData(params martini.Params, r render.Render, req *http.Request)
ReceiveMySQLSeedData
func (*HttpAPI) RegisterRequests ¶
func (this *HttpAPI) RegisterRequests(m *martini.ClassicMartini)
RegisterRequests makes for the de-facto list of known API calls
func (*HttpAPI) SeedCommandCompleted ¶
func (this *HttpAPI) SeedCommandCompleted(params martini.Params, r render.Render, req *http.Request)
SeedCommandCompleted
func (*HttpAPI) SeedCommandSucceeded ¶
func (this *HttpAPI) SeedCommandSucceeded(params martini.Params, r render.Render, req *http.Request)
SeedCommandCompleted
func (*HttpAPI) SendMySQLSeedData ¶
SendMySQLSeedData