udash

package
v0.82.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

func ConfigFilePath() (string, error)

ConfigFilePath returns the path of the config file

func IsConfigFile added in v0.80.0

func IsConfigFile() (string, bool)

IsConfigFile checks if the udash config file exists

func Login

func Login(serviceURL, clientID, issuer, audience, accessToken string) error

Login will open a browser to authenticate a user and retrieve an access token

func Logout

func Logout(url string) error

Logout remove a token from the local updatecli configuration file

func Publish

func Publish(r *reports.Report) error

Publish publish a pipeline report to the updatecli api

func Token

func Token(audience string) (URL string, ApiURL string, Token string, err error)

Token return the token for a specific auth domain

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL