oss

package
v0.83.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectPackageJsonFiles added in v0.77.1

func DetectPackageJsonFiles(dirPath string) (map[string]PackageJson, map[string]PackageJson, map[string]string)

func GeneratePackageLockFiles

func GeneratePackageLockFiles(path string, noLockFiles map[string]PackageJson) (string, map[string]string, error)

Types

type Dependencies added in v0.77.1

type Dependencies map[string]Dependency

func (Dependencies) MarshalJSON added in v0.77.1

func (ds Dependencies) MarshalJSON() ([]byte, error)

type Dependency added in v0.77.1

type Dependency struct {
	Name    string
	Version string
	Line    int32
	Path    string
}

type PackageJson

type PackageJson struct {
	Dependencies Dependencies `json:"dependencies,omitempty"`
}

func (*PackageJson) UnmarshalJSON added in v0.77.1

func (pj *PackageJson) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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