dependencies

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLicenseRestrictions

func CheckLicenseRestrictions(dependency Dependency, licenseName string, licenseRestriction LicenseRestriction) error

Types

type Dependency

type Dependency struct {
	Name     string   `json:"name"`
	Version  string   `json:"version"`
	Licenses []string `json:"licenses"`
}

type DependencyInfo

type DependencyInfo struct {
	Dependencies []Dependency      `json:"dependencies"`
	Licenses     map[string]string `json:"licenseInfo"`
}

func NewDependencyInfo

func NewDependencyInfo() DependencyInfo

func (*DependencyInfo) Unmarshal

func (d *DependencyInfo) Unmarshal(data []byte) error

func (*DependencyInfo) UpdateLicenseList

func (d *DependencyInfo) UpdateLicenseList() error

Jump to

Keyboard shortcuts

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