parser

package
v0.0.0-...-2a0a49f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: BSD-4-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentParser

type EnvironmentParser interface {
	// ParseEnvironmentInfo creates environment information. Where and how
	// this information is retrieved is up to the implementation.
	ParseEnvironmentInfo() (*buildinfo.EnvironmentInfo, error)
}

EnvironmentParser is a generic contract to extract environment information

func ParseEnvironmentParser

func ParseEnvironmentParser() (EnvironmentParser, error)

ParseEnvironmentParser attempts to detect the execution environment in order to have access to the most reliable information.

type VersionParser

type VersionParser interface {
	// ParseVersionInformation creates version information. Where and how
	// this information is retrieved is up to the implementation.
	ParseVersionInfo() (*buildinfo.VersionInfo, error)
}

VersionParser is a generic contract to extract version information

func ParseVersionParser

func ParseVersionParser(dir string) (VersionParser, error)

ParseVersionParser attempts to detect the version control system in use under the given directory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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