Documentation ¶
Index ¶
- Variables
- func ConfigFilePath() (string, error)
- func IsConfigFile() (string, bool)
- func Login(serviceURL, clientID, issuer, audience, accessToken string) error
- func Logout(url string) error
- func Publish(r *reports.Report) error
- func Token(audience string) (URL string, ApiURL string, Token string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultEnvVariableAPIURL defines the default environment variable used to retrieve API url DefaultEnvVariableAPIURL string = "UPDATECLI_UDASH_API_URL" // DefaultEnvVariableAccessToken defines the default environment variable used to retrieve API access token DefaultEnvVariableAccessToken string = "UPDATECLI_UDASH_ACCESS_TOKEN" // #nosec G101 // DefaultEnvVariableURL defines the default environment variable used to retrieve url DefaultEnvVariableURL string = "UPDATECLI_UDASH_URL" )
View Source
var (
Audience string
)
View Source
var ( // ErrNoUdashAPIURL is returned if we couldn't find an Updatecli report API ErrNoUdashAPIURL error = fmt.Errorf("no Updatecli API defined") )
Functions ¶
func ConfigFilePath ¶
ConfigFilePath returns the path of the config file
func IsConfigFile ¶ added in v0.80.0
IsConfigFile checks if the udash config file exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.