harbor/tests/apitests/apilib/harborlogout.go

16 lines
229 B
Go
Raw Normal View History

2016-06-07 06:19:48 +02:00
// 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
}