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.
Click to show internal directories.
Click to hide internal directories.