pip

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSyntax = errors.New("invalid syntax")
)

Functions

func New

func New() common.Manager

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(file, line string, lineNumber int) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (*types.Dependency, error)

type PipManager

type PipManager struct{}

func (*PipManager) FindDependencies

func (m *PipManager) FindDependencies(matches []types.Match) ([]*types.Dependency, error)

func (*PipManager) IsUpgradable

func (m *PipManager) IsUpgradable(dep types.Dependency) (*types.UpgradeInfo, error)

func (*PipManager) ListUpgrades

func (m *PipManager) ListUpgrades(matches []types.Match) ([]*types.UpgradeInfo, error)

func (*PipManager) Match

func (m *PipManager) Match(path string) bool

func (*PipManager) Name

func (m *PipManager) Name() types.PackageManager

func (*PipManager) Parse

func (m *PipManager) Parse(match types.Match, data []byte) ([]*types.Dependency, error)

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(line string) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan() (TokenType, string, error)

type TokenType

type TokenType int
const (
	TokenTypeError TokenType = iota
	TokenTypeEOT
	TokenTypeIdentifier
	TokenTypeBracketLeft
	TokenTypeBracketRight
	TokenTypeOperator
	TokenTypeComma
	TokenTypeSemicolon
)

Jump to

Keyboard shortcuts

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