harbor/tests/apitests/apilib/harborlogout.go
2016-06-07 12:19:48 +08:00

16 lines
229 B
Go

// HarborLogout.go
package HarborAPI
import (
"net/http"
)
func (a HarborAPI) HarborLogout() (int, error) {
response, err := http.Get(a.basePath + "/logout")
defer response.Body.Close()
return response.StatusCode, err
}