Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOsVersion ¶
GetOsVersion returns a human friendly string of the current OS in the case of an error this still returns a valid string for the details that can be found.
func SetReleaseGetter ¶
func SetReleaseGetter(r ReleaseFileGetter)
SetReleaseGetter sets the current releaseFileGetter
Types ¶
type DefaultReleaseFileGetter ¶
type DefaultReleaseFileGetter struct{}
DefaultReleaseFileGetter is the default implementation of ReleaseFileGetter
func (*DefaultReleaseFileGetter) GetFileContents ¶
func (r *DefaultReleaseFileGetter) GetFileContents(file string) (string, error)
GetFileContents returns the file contents
type ReleaseFileGetter ¶
ReleaseFileGetter defines the interface for read system file
Click to show internal directories.
Click to hide internal directories.