spec

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildDep

type BuildDep struct {
	Name    string
	Version string
	Cond    Cond
}

func (BuildDep) String

func (d BuildDep) String() string

String returns string representation of build dependency

type BuildDeps

type BuildDeps []BuildDep

func GetDeps

func GetDeps(spec string) (BuildDeps, error)

GetDeps returns slice with build dependencies from given spec file

func (BuildDeps) Len

func (p BuildDeps) Len() int

func (BuildDeps) Less

func (p BuildDeps) Less(i, j int) bool

func (BuildDeps) Names

func (d BuildDeps) Names(withVersion bool) []string

Names returns slice with dependencies names

func (BuildDeps) Swap

func (p BuildDeps) Swap(i, j int)

type Cond

type Cond uint8
const (
	EQ Cond = 1 // Equal | =
	LT Cond = 2 // Less than | <
	LE Cond = 3 // Less or equal | <=
	GT Cond = 4 // Greater than | >
	GE Cond = 5 // Greater or equal | >=
)

func (Cond) Clause

func (c Cond) Clause() string

Clause returns condition as clause

func (Cond) String

func (c Cond) String() string

String returns string representation of condition

Jump to

Keyboard shortcuts

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