Documentation ¶
Overview ¶
Copyright (C) 2020 Serge ALEXANDRE
This file is part of koobind project ¶
koobind is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
koobind is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with koobind. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Config *internal.Config
var Context string
var HttpConnection *internal.HttpConnection
Global variables. Shared by all commands
var JsonOutput bool
Variable shared by at least two packages
var Log *logrus.Entry
package logger
var Provider string
Functions ¶
func DoLoginSilently ¶
Warning: As this function is used by the 'auth' command, which send json result to stdout, it may only send prompt to stderr
func InitHttpConnection ¶
func InitHttpConnection()
func RetrieveTokenBag ¶
Retrieve the token locally, or, if expired, validate again against the server. Return "" if there is no valid token
func ValidateToken ¶
Types ¶
This section is empty.