Documentation ¶
Index ¶
- func RegisterRouter(ws *restful.WebService)
- func UpdateFilter(reqFilter map[string]string, filter map[string]string) error
- func WriteError(response *restful.Response, msg string, errCode int, err error)
- type APIService
- func (s *APIService) CreateVolume(request *restful.Request, response *restful.Response)
- func (s *APIService) DeleteVolume(request *restful.Request, response *restful.Response)
- func (s *APIService) GetVolume(request *restful.Request, response *restful.Response)
- func (s *APIService) ListVolumes(request *restful.Request, response *restful.Response)
- func (s *APIService) UpdateVolume(request *restful.Request, response *restful.Response)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouter ¶
func RegisterRouter(ws *restful.WebService)
RegisterRouter - route request to appropriate method
func UpdateFilter ¶ added in v1.0.1
func WriteError ¶ added in v1.0.1
Types ¶
type APIService ¶
type APIService struct {
// contains filtered or unexported fields
}
func NewAPIService ¶
func NewAPIService(c client.Client) *APIService
func (*APIService) CreateVolume ¶
func (s *APIService) CreateVolume(request *restful.Request, response *restful.Response)
Create Volume
func (*APIService) DeleteVolume ¶ added in v1.0.1
func (s *APIService) DeleteVolume(request *restful.Request, response *restful.Response)
func (*APIService) GetVolume ¶ added in v1.0.1
func (s *APIService) GetVolume(request *restful.Request, response *restful.Response)
func (*APIService) ListVolumes ¶
func (s *APIService) ListVolumes(request *restful.Request, response *restful.Response)
func (*APIService) UpdateVolume ¶ added in v1.0.1
func (s *APIService) UpdateVolume(request *restful.Request, response *restful.Response)
Click to show internal directories.
Click to hide internal directories.