dependencies

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// GetLatestVersionForDependencyEndpoint - returns the latest single version for a dependency
	GetLatestVersionForDependencyEndpoint = "v1/dependency/getLatestVersionForDependency"
	// GetVersionsForDependencyEndpoint - returns the list of known versions for a dependency
	GetVersionsForDependencyEndpoint = "v1/dependency/getVersionsForDependency"
	// ResolveDependenciesInFileEndpoint - given a dependency file and ecosystem name returns the full tree of known dependencies
	ResolveDependenciesInFileEndpoint = "v1/dependency/resolveDependenciesInFile"
	// ResolveFromFileEndpoint - given a dependency file and ecosystem name returns the full tree of known dependencies.
	// Only supports Gemfile.lock.
	ResolveFromFileEndpoint = "v1/dependency/resolveFromFile"
	// ResolveDependencySearchEndpoint is a string representation of the current endpoint for searching dependencies
	ResolveDependencySearchEndpoint = "v1/dependency/search"
	// GetDependencyVersions is a string representation of the current endpoint for returns the list of known versions for a dependency
	GetDependencyVersions = "v1/dependency/getVersions"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Name            string       `json:"name,omitempty"`
	Version         string       `json:"version"`
	LatestVersion   string       `json:"latest_version"`
	Org             string       `json:"org"`
	Type            string       `json:"type"`
	Package         string       `json:"package"`
	Scope           string       `json:"scope"`
	Requirement     string       `json:"requirement"`
	Dependencies    []Dependency `json:"dependencies"`
	Confidence      float32      `json:"confidence"`
	CreatedAt       time.Time    `json:"created_at,omitempty"`
	UpdatedAt       time.Time    `json:"updated_at,omitempty"`
	OutdatedVersion OutdatedMeta `json:"outdated_version"`
}

Dependency represents all the known information for a dependency object within the Ion Channel API

type DependencyResolutionRequest added in v0.19.1

type DependencyResolutionRequest struct {
	Ecosystem string
	File      string
	Flatten   bool
}

DependencyResolutionRequest options for creating a resolution request for a dependency file of a ecosystem type

type DependencyResolutionResponse added in v0.19.1

type DependencyResolutionResponse struct {
	Dependencies []Dependency `json:"dependencies,omitempty"`
	Meta         Meta         `json:"meta"`
}

DependencyResolutionResponse represents all the known information for a dependency object within the Ion Channel API

type Meta added in v0.19.1

type Meta struct {
	// {"first_degree_count":13,"no_version_count":0,"total_unique_count":62,"update_available_count":12}
	FirstDegreeCount     int `json:"first_degree_count"`
	NoVersionCount       int `json:"no_version_count"`
	TotalUniqueCount     int `json:"total_unique_count"`
	UpdateAvailableCount int `json:"update_available_count"`
}

Meta represents all the known meta information for a dependency set within the Ion Channel API

type OutdatedMeta added in v0.21.0

type OutdatedMeta struct {
	MajorBehind int `json:"major_behind" xml:"major_behind"`
	MinorBehind int `json:"minor_behind" xml:"minor_behind"`
	PatchBehind int `json:"patch_behind" xml:"patch_behind"`
}

OutdatedMeta is used to represent the number of versions behind a dependency is

Jump to

Keyboard shortcuts

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