oses

package
v0.0.0-...-c423126 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DarwinOSInfo

type DarwinOSInfo struct {
	// contains filtered or unexported fields
}

Darwin

func (*DarwinOSInfo) GetCores

func (d *DarwinOSInfo) GetCores() int

func (*DarwinOSInfo) GetHostName

func (d *DarwinOSInfo) GetHostName() string

func (*DarwinOSInfo) GetKernel

func (d *DarwinOSInfo) GetKernel() string

func (*DarwinOSInfo) GetMemory

func (d *DarwinOSInfo) GetMemory() float64

func (*DarwinOSInfo) GetOsName

func (d *DarwinOSInfo) GetOsName() string

func (*DarwinOSInfo) GetPlatform

func (d *DarwinOSInfo) GetPlatform() string

func (*DarwinOSInfo) String

func (d *DarwinOSInfo) String() string

func (*DarwinOSInfo) ToContent

func (d *DarwinOSInfo) ToContent() termutil.Contents

type LinuxOSInfo

type LinuxOSInfo struct {
	// contains filtered or unexported fields
}

Linux

func (*LinuxOSInfo) GetCores

func (l *LinuxOSInfo) GetCores() int

func (*LinuxOSInfo) GetHostName

func (l *LinuxOSInfo) GetHostName() string

func (*LinuxOSInfo) GetKernel

func (l *LinuxOSInfo) GetKernel() string

func (*LinuxOSInfo) GetMemory

func (l *LinuxOSInfo) GetMemory() float64

func (*LinuxOSInfo) GetOsName

func (l *LinuxOSInfo) GetOsName() string

func (*LinuxOSInfo) GetPlatform

func (l *LinuxOSInfo) GetPlatform() string

func (*LinuxOSInfo) String

func (l *LinuxOSInfo) String() string

func (*LinuxOSInfo) ToContent

func (l *LinuxOSInfo) ToContent() termutil.Contents

type OSInfoGetter

type OSInfoGetter interface {
	GetOsName() string
	GetKernel() string
	GetPlatform() string
	GetHostName() string
	GetMemory() float64
	GetCores() int
	String() string
	ToContent() termutil.Contents
}

Blanket os info getter for all OSes (including windows)

type UserOsEnv

type UserOsEnv struct {
	// contains filtered or unexported fields
}

func InitUserOsEnv

func InitUserOsEnv() (*UserOsEnv, error)

func (*UserOsEnv) GetGitUser

func (u *UserOsEnv) GetGitUser() *gitConfig

func (*UserOsEnv) GetGoEnv

func (u *UserOsEnv) GetGoEnv() *goConfig

func (*UserOsEnv) GetGoPath

func (u *UserOsEnv) GetGoPath() string

func (*UserOsEnv) GetGoRoot

func (u *UserOsEnv) GetGoRoot() string

func (*UserOsEnv) GetOsProperties

func (u *UserOsEnv) GetOsProperties() *osProperties

func (*UserOsEnv) PrintUserOsEnv

func (u *UserOsEnv) PrintUserOsEnv() error

type WindowsOSInfo

type WindowsOSInfo struct {
	// contains filtered or unexported fields
}

Windows

func (*WindowsOSInfo) GetCores

func (w *WindowsOSInfo) GetCores() int

func (*WindowsOSInfo) GetHostName

func (w *WindowsOSInfo) GetHostName() string

func (*WindowsOSInfo) GetKernel

func (w *WindowsOSInfo) GetKernel() string

func (*WindowsOSInfo) GetMemory

func (w *WindowsOSInfo) GetMemory() float64

func (*WindowsOSInfo) GetOsName

func (w *WindowsOSInfo) GetOsName() string

func (*WindowsOSInfo) GetPlatform

func (w *WindowsOSInfo) GetPlatform() string

func (*WindowsOSInfo) String

func (w *WindowsOSInfo) String() string

func (*WindowsOSInfo) ToContent

func (w *WindowsOSInfo) ToContent() termutil.Contents

Jump to

Keyboard shortcuts

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