build

package
v0.41.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is dynamically set by the toolchain or overridden by the Makefile.
	Version = "dev"

	// Language used, can be overridden by Makefile or CI
	Language = "en"

	// RepositoryOwner is the remote GitHub organization for the releases
	RepositoryOwner = "redhat-developer"

	// RepositoryName is the remote GitHub repository for the releases
	RepositoryName = "app-services-cli"

	// DynamicConfigURL Url used to download dynamic service constants. If empty then static service constants are  used.
	DynamicConfigURL = "https://console.redhat.com/apps/application-services/service-constants.json"

	// DefaultPageSize is the default number of items per page when using list commands
	DefaultPageSize = "10"

	// DefaultPageNumber is the default page number when using list commands
	DefaultPageNumber = "1"

	// SSORedirectPath is the default SSO redirect path
	SSORedirectPath = "sso-redhat-callback"

	// MASSSORedirectPath is the default MAS-SSO redirect path
	MASSSORedirectPath = "mas-sso-callback"

	// BuildSource is a unique key which indicates the infrastructure on which the binary was built
	BuildSource = "local"
)

Define public variables here which you wish to be configurable at build time

View Source
var (
	ProductionAPIURL            = "https://api.openshift.com"
	StagingAPIURL               = "https://api.stage.openshift.com"
	ConsoleURL                  = "https://console.redhat.com"
	DefaultClientID             = "rhoas-cli-prod"
	DefaultUserAgentPrefix      = "rhoas-cli_"
	DefaultOfflineTokenClientID = "cloud-services"
	DefaultLoginTimeout         = 60 * time.Second
	OfflineTokenURL             = ConsoleURL + "/openshift/token"
	ProductionAuthURL           = "https://sso.redhat.com/auth/realms/redhat-external"
	ProductionMasAuthURL        = "https://identity.api.openshift.com/auth/realms/rhoas"
	StagingMasAuthURL           = "https://identity.api.stage.openshift.com/auth/realms/rhoas"
)

Auth Build variables

Functions

func CheckForUpdate

func CheckForUpdate(ctx context.Context, version string, logger logging.Logger, localizer localize.Localizer)

CheckForUpdate checks if there is a newer version of the CLI than the version currently being used. If so, it logs this information to the console.

func IsDevBuild added in v0.36.0

func IsDevBuild() bool

IsDevBuild returns true if the current build is "dev" (dev build)

Types

This section is empty.

Jump to

Keyboard shortcuts

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