fs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MPL-2.0 Imports: 13 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyVersion

type AnyVersion struct {
	Product    product.Product
	ExtraPaths []string
	// contains filtered or unexported fields
}

AnyVersion finds the first executable binary of the product name within system $PATH and any declared ExtraPaths (which are *appended* to any directories in $PATH)

func (*AnyVersion) Find

func (av *AnyVersion) Find(ctx context.Context) (string, error)

func (*AnyVersion) IsSourceImpl

func (*AnyVersion) IsSourceImpl() src.InstallSrcSigil

func (*AnyVersion) SetLogger

func (av *AnyVersion) SetLogger(logger *log.Logger)

func (*AnyVersion) Validate

func (av *AnyVersion) Validate() error

type ExactVersion

type ExactVersion struct {
	Product    product.Product
	Version    *version.Version
	ExtraPaths []string
	Timeout    time.Duration
	// contains filtered or unexported fields
}

ExactVersion finds the first executable binary of the product name which matches the Version within system $PATH and any declared ExtraPaths (which are *appended* to any directories in $PATH)

func (*ExactVersion) Find

func (ev *ExactVersion) Find(ctx context.Context) (string, error)

func (*ExactVersion) IsSourceImpl

func (*ExactVersion) IsSourceImpl() src.InstallSrcSigil

func (*ExactVersion) SetLogger

func (ev *ExactVersion) SetLogger(logger *log.Logger)

func (*ExactVersion) Validate

func (ev *ExactVersion) Validate() error

Jump to

Keyboard shortcuts

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