bundler

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MPL-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilteredLockfile added in v1.0.6

func FilteredLockfile(gems []Gem, lockfile Lockfile) ([]pkg.Import, map[pkg.ID]pkg.Package)

func GraphFromLockfile added in v1.0.6

func GraphFromLockfile(lockfile Lockfile) ([]pkg.Import, map[pkg.ID]pkg.Package)

func LockfileGraph added in v1.0.6

func LockfileGraph(filename string) (graph.Deps, *errors.Error)

Types

type Bundler

type Bundler struct {
	Cmd string
}

func New added in v1.0.6

func New() (Bundler, *errors.Error)

func (*Bundler) Install

func (b *Bundler) Install(flags ...string) error

func (*Bundler) List

func (b *Bundler) List() ([]Gem, *errors.Error)

func (*Bundler) ListGraph added in v1.0.6

func (b *Bundler) ListGraph() (graph.Deps, *errors.Error)

func (*Bundler) ListLockfileGraph added in v1.0.6

func (b *Bundler) ListLockfileGraph(lockfilePath string) (graph.Deps, *errors.Error)

type Gem

type Gem struct {
	Name     string
	Revision string
}

type Lockfile

type Lockfile struct {
	Git          []Section
	Path         []Section
	Gem          []Section
	Dependencies []Requirement
}

func FromLockfile

func FromLockfile(filename string) (Lockfile, *errors.Error)

type Requirement

type Requirement struct {
	Name    string
	Pinned  bool
	Version VersionSpecifier
}

func ParseDependenciesSection

func ParseDependenciesSection(section string) []Requirement

func (*Requirement) String

func (r *Requirement) String() string

type Section

type Section struct {
	Type     string
	Remote   string
	Revision string
	Ref      string
	Tag      string
	Branch   string
	Specs    []Spec
}

func ParseSpecSection

func ParseSpecSection(section string) Section

type Spec

type Spec struct {
	Name         string
	Version      string
	Dependencies []Requirement
}

func ParseSpecs

func ParseSpecs(spec []string) []Spec

type VersionSpecifier

type VersionSpecifier string

TODO: actually parse these. We ignore them right now, so I haven't bothered implementing parsing logic.

Jump to

Keyboard shortcuts

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