build

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup added in v0.2.27

func Cleanup(fs filesystem.FileLoader, logger util.Logger) ([]string, diff.Diffs, error)

func Deployments added in v0.2.33

func Deployments(ctx context.Context, curr string, fs filesystem.FileLoader, fix bool, path string, deps []string) ([]string, diff.Diffs, error)

func Full added in v0.2.27

func Full(ctx context.Context, prj *project.Project, logger util.Logger) ([]string, error)

func Imports added in v0.2.27

func Imports(self string, fix bool, targetPath string, fs filesystem.FileLoader, logger util.Logger) ([]string, diff.Diffs, error)

func LoadDepsMap added in v0.2.28

func LoadDepsMap(projects project.Projects, minVersions int, pSvc *project.Service) (map[string]map[string][]string, error)

func OnDepsUpgrade

func OnDepsUpgrade(ctx context.Context, prj *project.Project, up string, o string, n string, pSvc *project.Service, logger util.Logger) error

func SetDepsMap added in v0.2.29

func SetDepsMap(ctx context.Context, projects project.Projects, dep *Dependency, pSvc *project.Service, logger util.Logger) (string, error)

func SetDepsProject added in v0.2.33

func SetDepsProject(ctx context.Context, prjs project.Projects, key string, pSvc *project.Service, logger util.Logger) (string, error)

Types

type Dependencies

type Dependencies []*Dependency

func LoadDeps

func LoadDeps(
	ctx context.Context, key string, path string, includeUpdates bool, fs filesystem.FileLoader, showAll bool, logger util.Logger,
) (Dependencies, error)

func LoadDepsEasyMode added in v0.2.29

func LoadDepsEasyMode(key string, fs filesystem.FileLoader) (Dependencies, error)

func (Dependencies) Get

func (d Dependencies) Get(k string) *Dependency

type Dependency

type Dependency struct {
	Key        string   `json:"key"`
	Version    string   `json:"version,omitempty"`
	Available  string   `json:"available,omitempty"`
	References []string `json:"references,omitempty"`
}

func ParseDependency added in v0.2.33

func ParseDependency(line string) *Dependency

func (*Dependency) AddRef

func (d *Dependency) AddRef(r string)

func (*Dependency) String

func (d *Dependency) String() string

type Pkg added in v0.4.1

type Pkg struct {
	Path  string   `json:"path"`
	Files []string `json:"files,omitempty"`
	Deps  []string `json:"deps,omitempty"`
}

func (*Pkg) AddDep added in v0.4.2

func (p *Pkg) AddDep(s string)

type Pkgs added in v0.4.1

type Pkgs []*Pkg

func Packages added in v0.4.1

func Packages(prj *project.Project, fs filesystem.FileLoader, showAll bool, logger util.Logger) (Pkgs, error)

func (Pkgs) Get added in v0.4.2

func (p Pkgs) Get(s string) *Pkg

func (Pkgs) Sort added in v0.4.2

func (p Pkgs) Sort()

func (Pkgs) ToGraph added in v0.4.2

func (p Pkgs) ToGraph(prefix string) string

Jump to

Keyboard shortcuts

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