identity

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CONSUMER_TYPE is the npm repository type.
	CONSUMER_TYPE = "Registry.npmjs.com"

	// ATTR_USERNAME is the username attribute. Required for login at any npm registry.
	ATTR_USERNAME = cpi.ATTR_USERNAME
	// ATTR_PASSWORD is the password attribute. Required for login at any npm registry.
	ATTR_PASSWORD = cpi.ATTR_PASSWORD
	// ATTR_EMAIL is the email attribute. Required for login at any npm registry.
	ATTR_EMAIL = cpi.ATTR_EMAIL
	// ATTR_TOKEN is the token attribute. May exist after login at any npm registry.
	ATTR_TOKEN = cpi.ATTR_TOKEN
)

Variables

View Source
var REALM = logging.DefineSubRealm("NPM registry", "NPM")

Logging Realm.

Functions

func GetConsumerId

func GetConsumerId(rawURL string, pkgName string) cpi.ConsumerIdentity

func GetCredentials

func GetCredentials(ctx cpi.ContextProvider, repoUrl string, pkgName string) common.Properties

Types

This section is empty.

Jump to

Keyboard shortcuts

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