Documentation ¶
Index ¶
- Variables
- type Descriptor
- func (descriptor *Descriptor) AnyRequires(build bool, quiet bool) (results Requires, err error)
- func (descriptor *Descriptor) BuildRequires(quiet bool) (results Requires, err error)
- func (descriptor *Descriptor) Path() string
- func (descriptor *Descriptor) Provides(path string, ver *version.Version, quiet bool) (results Provides, err error)
- func (descriptor *Descriptor) Requires(quiet bool) (results Requires, err error)
- func (descriptor *Descriptor) Trim(quiet bool) error
- type Provides
- type Requires
- type VersionRange
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
func New ¶
func New(path string) (*Descriptor, error)
Parses a Go .mod module descriptor, without using the “go mod” command
func (*Descriptor) AnyRequires ¶
func (descriptor *Descriptor) AnyRequires(build bool, quiet bool) (results Requires, err error)
Returns the provides associated with a module descriptor
func (*Descriptor) BuildRequires ¶
func (descriptor *Descriptor) BuildRequires(quiet bool) (results Requires, err error)
func (*Descriptor) Path ¶
func (descriptor *Descriptor) Path() string
func (*Descriptor) Provides ¶
func (descriptor *Descriptor) Provides(path string, ver *version.Version, quiet bool) (results Provides, err error)
Returns the provides associated with a module descriptor To be future-proof, can return multiple results, even though the initial implementation only returns one item
func (*Descriptor) Requires ¶
func (descriptor *Descriptor) Requires(quiet bool) (results Requires, err error)
func (*Descriptor) Trim ¶
func (descriptor *Descriptor) Trim(quiet bool) error
Remove module directives that make no sense in a clean system component environment
Click to show internal directories.
Click to hide internal directories.