command

package
v1.3.18-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigureCmd added in v1.3.4

func NewConfigureCmd(f *cmdutils.Factory) *cobra.Command

func NewConfigureNpmCmd added in v1.3.4

func NewConfigureNpmCmd(f *cmdutils.Factory) *cobra.Command

func NewCreateRegistryCmd

func NewCreateRegistryCmd(c *cmdutils.Factory) *cobra.Command

NewCreateRegistryCmd wires up:

hc registry create

func NewDeleteRegistryCmd

func NewDeleteRegistryCmd(c *cmdutils.Factory) *cobra.Command

func NewFirewallAuditCmd added in v1.3.4

func NewFirewallAuditCmd(f *cmdutils.Factory) *cobra.Command

func NewFirewallCmd added in v1.3.4

func NewFirewallCmd(f *cmdutils.Factory) *cobra.Command

func NewFirewallExplainCmd added in v1.3.4

func NewFirewallExplainCmd(f *cmdutils.Factory) *cobra.Command

func NewGetRegistryCmd

func NewGetRegistryCmd(f *cmdutils.Factory) *cobra.Command

NewGetRegistryCmd wires up:

hc registry get <args>

func NewListRegistryCmd

func NewListRegistryCmd(f *cmdutils.Factory) *cobra.Command

NewListRegistryCmd wires up:

hc registry list

func NewMetadataCmd added in v1.3.0

func NewMetadataCmd(f *cmdutils.Factory) *cobra.Command

func NewMetadataDeleteCmd added in v1.3.0

func NewMetadataDeleteCmd(f *cmdutils.Factory) *cobra.Command

func NewMetadataGetCmd added in v1.3.0

func NewMetadataGetCmd(f *cmdutils.Factory) *cobra.Command

func NewMetadataSetCmd added in v1.3.0

func NewMetadataSetCmd(f *cmdutils.Factory) *cobra.Command

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.

type ScanResult added in v1.3.4

type ScanResult struct {
	PackageName string `json:"packageName"`
	Version     string `json:"version"`
	ScanID      string `json:"scanId"`
	ScanStatus  string `json:"scanStatus"`
}

Jump to

Keyboard shortcuts

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