jx: github.com/jenkins-x/jx/pkg/util/system Index | Files

package system

import "github.com/jenkins-x/jx/pkg/util/system"


Package Files


func GetOsVersion Uses

func GetOsVersion() (string, error)

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 Uses

func SetReleaseGetter(r ReleaseFileGetter)

SetReleaseGetter sets the current releaseFileGetter

type DefaultReleaseFileGetter Uses

type DefaultReleaseFileGetter struct{}

DefaultReleaseFileGetter is the default implementation of ReleaseFileGetter

func (*DefaultReleaseFileGetter) GetFileContents Uses

func (r *DefaultReleaseFileGetter) GetFileContents(file string) (string, error)

GetFileContents returns the file contents

type ReleaseFileGetter Uses

type ReleaseFileGetter interface {
    GetFileContents(string) (string, error)

ReleaseFileGetter defines the interface for read system file

Package system imports 5 packages (graph). Updated 2020-05-29. Refresh now. Tools for package owners.