udash

package
v0.76.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 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 (
	// ErrNoUdashBearerToken is returned if we couldn't find a token in the local updatecli configuration file
	ErrNoUdashBearerToken error = fmt.Errorf("no bearer token found")
	// ErrNoUdashAPIURL is returned if we couldn't find an Updatecli report API
	ErrNoUdashAPIURL error = fmt.Errorf("no Updatecli API defined")
)
View Source
var (
	Audience string
)

Functions

func ConfigFilePath

func ConfigFilePath() (string, error)

ConfigFilePath returns the path of the config file

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