npm

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0

SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	// Low audit-level low.
	Low = "low"
	// Moderate audit-level moderate.
	Moderate = "moderate"
	// High audit-level high.
	High = "high"
	// Critical audit-level critical.
	Critical = "critical"
	// None used for skipping audit.
	None = "none"
)
View Source
const DefaultRegistry = "https://registry.npmjs.org"

DefaultRegistry is the default URL for npm.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token           string
	UserName        string
	Password        string
	Registry        string
	Email           string
	StrictSSL       bool
	IsStrictSSLSet  bool
	AlwaysAuth      bool
	IsAlwaysAuthSet bool
	SkipPing        bool
	DryRun          bool
	Tag             string
	AuditLevel      string
	Access          string
	Workspaces      bool
	Workspace       string
}

Config inputs.

func (*Config) Validate

func (p *Config) Validate() error

Validate assures plugin is configured correctly.

type Plugin

type Plugin interface {
	Validate() error
	Exec() error
}

Plugin interface.

func NewPlugin

func NewPlugin(c *Config) Plugin

NewPlugin creates a new plugin struct given Config.

Jump to

Keyboard shortcuts

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