graph

package
v0.0.0-...-69eaee5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchGraph

func FetchGraph(plugins []*api.Plugin, d common.Downloader, workingDir string, maxWorkers int, optional bool) (*api.Graph, error)

FetchGraph computes the graph for a list of plugins or read it from the store

func GetGraphPath

func GetGraphPath(hash string, workingDir string) string

GetGraphPath returns the path to the plugin graph in the store

func GetStorePath

func GetStorePath(workingDir string) string

GetStorePath returns the path to the store

func LockPlugins

func LockPlugins(g *api.Graph, optional bool) (*api.PluginsRegistry, error)

LockPlugins generates a fully-qualified registry of plugins from a graph

func NewNode

func NewNode(p *api.Plugin, workingDir string, optional bool) (*api.Graph_Node, error)

NewNode will return a graph node for the given plugin

func ReadGraph

func ReadGraph(graphPath string) (*api.Graph, error)

ReadGraph reads a graph from the store

func WriteGraph

func WriteGraph(g *api.Graph, graphPath string) error

WriteGraph will write a graph into a file

Types

type Incompatibilities

type Incompatibilities []Incompatibility

Incompatibilities maps a plugin to a target incompatibility

func FindIncompatibilities

func FindIncompatibilities(plugins []*api.Plugin, lockedPlugins []*api.Plugin, g *api.Graph) (Incompatibilities, error)

FindIncompatibilities walks through a graph and check if there are missmatches between a list of requested plugins and the locked plugin versions.

func (Incompatibilities) Print

func (incs Incompatibilities) Print()

Print prints a map of incompatibilities

type Incompatibility

type Incompatibility struct {
	Plugin     *api.Plugin
	Cause      string
	Requesters []string
}

Incompatibility represents a versioning issue between a lock file and a plugin registry

Jump to

Keyboard shortcuts

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