Documentation ¶
Index ¶
- func AddBackend(w http.ResponseWriter, r *http.Request)
- func AddGeneric(w http.ResponseWriter, r *http.Request, response httpResponse, ...)
- func AddNode(w http.ResponseWriter, r *http.Request)
- func AddSnapshot(w http.ResponseWriter, r *http.Request)
- func AddStorageClass(w http.ResponseWriter, r *http.Request)
- func AddVolume(w http.ResponseWriter, r *http.Request)
- func DeleteBackend(w http.ResponseWriter, r *http.Request)
- func DeleteGeneric(w http.ResponseWriter, r *http.Request, deleter deleteFunc, varName string)
- func DeleteGenericTwoArg(w http.ResponseWriter, r *http.Request, deleter deleteFuncTwoArg, ...)
- func DeleteNode(w http.ResponseWriter, r *http.Request)
- func DeleteSnapshot(w http.ResponseWriter, r *http.Request)
- func DeleteStorageClass(w http.ResponseWriter, r *http.Request)
- func DeleteVolume(w http.ResponseWriter, r *http.Request)
- func GetBackend(w http.ResponseWriter, r *http.Request)
- func GetBackendByBackendUUID(w http.ResponseWriter, r *http.Request)
- func GetGeneric(w http.ResponseWriter, r *http.Request, varName string, response interface{}, ...)
- func GetGenericNoArg(w http.ResponseWriter, r *http.Request, response interface{}, ...)
- func GetGenericTwoArg(w http.ResponseWriter, r *http.Request, varName1, varName2 string, ...)
- func GetNode(w http.ResponseWriter, r *http.Request)
- func GetSnapshot(w http.ResponseWriter, r *http.Request)
- func GetStorageClass(w http.ResponseWriter, r *http.Request)
- func GetVersion(w http.ResponseWriter, r *http.Request)
- func GetVolume(w http.ResponseWriter, r *http.Request)
- func ImportVolume(w http.ResponseWriter, r *http.Request)
- func IsValidUUID(s string) bool
- func ListBackends(w http.ResponseWriter, r *http.Request)
- func ListGeneric(w http.ResponseWriter, r *http.Request, response listResponse, ...)
- func ListGenericOneArg(w http.ResponseWriter, r *http.Request, varName string, response listResponse, ...)
- func ListNodes(w http.ResponseWriter, r *http.Request)
- func ListSnapshots(w http.ResponseWriter, r *http.Request)
- func ListSnapshotsForVolume(w http.ResponseWriter, r *http.Request)
- func ListStorageClasses(w http.ResponseWriter, r *http.Request)
- func ListVolumes(w http.ResponseWriter, r *http.Request)
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter() *mux.Router
- func UpdateBackend(w http.ResponseWriter, r *http.Request)
- func UpdateBackendState(w http.ResponseWriter, r *http.Request)
- func UpdateGeneric(w http.ResponseWriter, r *http.Request, varName string, response httpResponse, ...)
- func UpgradeVolume(w http.ResponseWriter, r *http.Request)
- type APIServerHTTP
- type APIServerHTTPS
- type AddBackendResponse
- type AddNodeResponse
- type AddSnapshotResponse
- type AddStorageClassResponse
- type AddVolumeResponse
- type DeleteResponse
- type GetBackendResponse
- type GetNodeResponse
- type GetSnapshotResponse
- type GetStorageClassResponse
- type GetVersionResponse
- type GetVolumeResponse
- type ImportVolumeResponse
- type ListBackendsResponse
- type ListNodesResponse
- type ListSnapshotsResponse
- type ListStorageClassesResponse
- type ListVolumesResponse
- type Route
- type Routes
- type UpdateBackendResponse
- type UpgradeVolumeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBackend ¶
func AddBackend(w http.ResponseWriter, r *http.Request)
func AddGeneric ¶
func AddSnapshot ¶
func AddSnapshot(w http.ResponseWriter, r *http.Request)
func AddStorageClass ¶
func AddStorageClass(w http.ResponseWriter, r *http.Request)
func DeleteBackend ¶
func DeleteBackend(w http.ResponseWriter, r *http.Request)
DeleteBackend calls OfflineBackend in the orchestrator, as we currently do not allow for full deletion of backends due to the potential for race conditions and the additional bookkeeping that would be required.
func DeleteGeneric ¶
func DeleteGeneric( w http.ResponseWriter, r *http.Request, deleter deleteFunc, varName string, )
func DeleteGenericTwoArg ¶
func DeleteGenericTwoArg( w http.ResponseWriter, r *http.Request, deleter deleteFuncTwoArg, varName1, varName2 string, )
func DeleteNode ¶
func DeleteNode(w http.ResponseWriter, r *http.Request)
func DeleteSnapshot ¶
func DeleteSnapshot(w http.ResponseWriter, r *http.Request)
func DeleteStorageClass ¶
func DeleteStorageClass(w http.ResponseWriter, r *http.Request)
func DeleteVolume ¶
func DeleteVolume(w http.ResponseWriter, r *http.Request)
func GetBackend ¶
func GetBackend(w http.ResponseWriter, r *http.Request)
func GetBackendByBackendUUID ¶
func GetBackendByBackendUUID(w http.ResponseWriter, r *http.Request)
func GetGeneric ¶
func GetGenericNoArg ¶
func GetGenericNoArg( w http.ResponseWriter, r *http.Request, response interface{}, getter func() int, )
func GetGenericTwoArg ¶
func GetSnapshot ¶
func GetSnapshot(w http.ResponseWriter, r *http.Request)
func GetStorageClass ¶
func GetStorageClass(w http.ResponseWriter, r *http.Request)
func GetVersion ¶
func GetVersion(w http.ResponseWriter, r *http.Request)
func ImportVolume ¶
func ImportVolume(w http.ResponseWriter, r *http.Request)
func IsValidUUID ¶
IsValidUUID returns true if the supplied string 's' is a UUID, otherwise false
func ListBackends ¶
func ListBackends(w http.ResponseWriter, r *http.Request)
func ListGeneric ¶
func ListGeneric( w http.ResponseWriter, r *http.Request, response listResponse, lister func() int, )
func ListGenericOneArg ¶
func ListSnapshots ¶
func ListSnapshots(w http.ResponseWriter, r *http.Request)
func ListSnapshotsForVolume ¶
func ListSnapshotsForVolume(w http.ResponseWriter, r *http.Request)
func ListStorageClasses ¶
func ListStorageClasses(w http.ResponseWriter, r *http.Request)
func ListVolumes ¶
func ListVolumes(w http.ResponseWriter, r *http.Request)
func UpdateBackend ¶
func UpdateBackend(w http.ResponseWriter, r *http.Request)
func UpdateBackendState ¶
func UpdateBackendState(w http.ResponseWriter, r *http.Request)
func UpdateGeneric ¶
func UpgradeVolume ¶
func UpgradeVolume(w http.ResponseWriter, r *http.Request)
Types ¶
type APIServerHTTP ¶
type APIServerHTTP struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(p core.Orchestrator, address, port string) *APIServerHTTP
func (*APIServerHTTP) Activate ¶
func (s *APIServerHTTP) Activate() error
func (*APIServerHTTP) Deactivate ¶
func (s *APIServerHTTP) Deactivate() error
func (*APIServerHTTP) GetName ¶
func (s *APIServerHTTP) GetName() string
func (*APIServerHTTP) Version ¶
func (s *APIServerHTTP) Version() string
type APIServerHTTPS ¶
type APIServerHTTPS struct {
// contains filtered or unexported fields
}
func NewHTTPSServer ¶
func NewHTTPSServer( p core.Orchestrator, address, port, caCertFile, serverCertFile, serverKeyFile string, ) (*APIServerHTTPS, error)
func (*APIServerHTTPS) Activate ¶
func (s *APIServerHTTPS) Activate() error
func (*APIServerHTTPS) Deactivate ¶
func (s *APIServerHTTPS) Deactivate() error
func (*APIServerHTTPS) GetName ¶
func (s *APIServerHTTPS) GetName() string
func (*APIServerHTTPS) Version ¶
func (s *APIServerHTTPS) Version() string
type AddBackendResponse ¶
type AddNodeResponse ¶
type AddSnapshotResponse ¶
type AddStorageClassResponse ¶
type AddVolumeResponse ¶
type DeleteResponse ¶
type DeleteResponse struct {
Error string `json:"error,omitempty"`
}
type GetBackendResponse ¶
type GetBackendResponse struct { Backend *storage.BackendExternal `json:"backend"` Error string `json:"error,omitempty"` }
type GetNodeResponse ¶
type GetSnapshotResponse ¶
type GetSnapshotResponse struct { Snapshot *storage.SnapshotExternal `json:"snapshot"` Error string `json:"error,omitempty"` }
type GetStorageClassResponse ¶
type GetStorageClassResponse struct { StorageClass *storageclass.External `json:"storageClass"` Error string `json:"error,omitempty"` }
type GetVersionResponse ¶
type GetVolumeResponse ¶
type GetVolumeResponse struct { Volume *storage.VolumeExternal `json:"volume"` Error string `json:"error,omitempty"` }
type ImportVolumeResponse ¶
type ImportVolumeResponse struct { Volume *storage.VolumeExternal `json:"volume"` Error string `json:"error,omitempty"` }
type ListBackendsResponse ¶
type ListNodesResponse ¶
type ListSnapshotsResponse ¶
type ListVolumesResponse ¶
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
type UpdateBackendResponse ¶
type UpgradeVolumeResponse ¶
type UpgradeVolumeResponse struct { Volume *storage.VolumeExternal `json:"volume"` Error string `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.