Split Operator and Management API into different Swagger files (#875)

* Split Operator and Management API into different Swagger files

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>

* Linting

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Daniel Valdivia
2021-07-19 11:48:50 -07:00
committed by GitHub
parent 63582de380
commit 982ff0da5e
228 changed files with 20846 additions and 9852 deletions

View File

@@ -41,7 +41,7 @@ func registerLogoutHandlers(api *operations.ConsoleAPI) {
})
}
// logout() call Expire() on the provided consoleCredentials
// logout() call Expire() on the provided ConsoleCredentials
func logout(credentials ConsoleCredentialsI) {
credentials.Expire()
}
@@ -49,6 +49,6 @@ func logout(credentials ConsoleCredentialsI) {
// getLogoutResponse performs logout() and returns nil or error
func getLogoutResponse(session *models.Principal) {
creds := getConsoleCredentialsFromSession(session)
credentials := consoleCredentials{consoleCredentials: creds}
credentials := ConsoleCredentials{ConsoleCredentials: creds}
logout(credentials)
}