harbor/tests/apitests/apilib/harborlogout.go

16 lines
226 B
Go
Raw Normal View History

2016-06-07 06:19:48 +02:00
// HarborLogout.go
2016-08-08 10:40:14 +02:00
package apilib
2016-06-07 06:19:48 +02:00
import (
"net/http"
)
func (a HarborAPI) HarborLogout() (int, error) {
response, err := http.Get(a.basePath + "/logout")
defer response.Body.Close()
return response.StatusCode, err
}