Documentation
¶
Index ¶
- func NewConfigureCmd(f *cmdutils.Factory) *cobra.Command
- func NewConfigureNpmCmd(f *cmdutils.Factory) *cobra.Command
- func NewCreateRegistryCmd(c *cmdutils.Factory) *cobra.Command
- func NewDeleteRegistryCmd(c *cmdutils.Factory) *cobra.Command
- func NewFirewallAuditCmd(f *cmdutils.Factory) *cobra.Command
- func NewFirewallCmd(f *cmdutils.Factory) *cobra.Command
- func NewFirewallExplainCmd(f *cmdutils.Factory) *cobra.Command
- func NewGetRegistryCmd(f *cmdutils.Factory) *cobra.Command
- func NewListRegistryCmd(f *cmdutils.Factory) *cobra.Command
- func NewMetadataCmd(f *cmdutils.Factory) *cobra.Command
- func NewMetadataDeleteCmd(f *cmdutils.Factory) *cobra.Command
- func NewMetadataGetCmd(f *cmdutils.Factory) *cobra.Command
- func NewMetadataSetCmd(f *cmdutils.Factory) *cobra.Command
- func RestoreNpmrc() error
- type Dependency
- type NpmRegistryConfig
- type ScanResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigureNpmCmd ¶ added in v1.3.4
func NewFirewallAuditCmd ¶ added in v1.3.4
func NewFirewallExplainCmd ¶ added in v1.3.4
func NewMetadataDeleteCmd ¶ added in v1.3.0
func RestoreNpmrc ¶ added in v1.3.18
func RestoreNpmrc() error
RestoreNpmrc restores the backed-up .npmrc file if a backup exists.
Types ¶
type Dependency ¶ added in v1.3.4
type Dependency struct {
Name string `json:"name"`
Version string `json:"version"`
Source string `json:"source"`
Parent string `json:"parent,omitempty"`
}
func ParseLockFile ¶ added in v1.3.18
func ParseLockFile(filePath string) ([]Dependency, error)
type NpmRegistryConfig ¶ added in v1.3.18
type NpmRegistryConfig struct {
RegistryIdentifier string `json:"registryIdentifier"`
RegistryURL string `json:"registryUrl"`
Scope string `json:"scope,omitempty"`
OrgID string `json:"orgId,omitempty"`
ProjectID string `json:"projectId,omitempty"`
NpmrcBackupPath string `json:"npmrcBackupPath,omitempty"`
NpmrcPath string `json:"npmrcPath"`
}
NpmRegistryConfig stores npm registry configuration in ~/.harness/npm-config.json. Used by the install wrapper to detect the HAR registry without re-parsing .npmrc.
func LoadNpmRegistryConfig ¶ added in v1.3.18
func LoadNpmRegistryConfig() (*NpmRegistryConfig, error)
LoadNpmRegistryConfig loads the saved npm registry config from ~/.harness/npm-config.json.
Click to show internal directories.
Click to hide internal directories.