Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMachineID = errors.New("no stable machine identifier available")
ErrNoMachineID is returned by GetMachineID when no stable machine identifier is available.
Functions ¶
func WithVersion ¶
func WithVersion(v string) opt
Types ¶
type RuntimeInfo ¶
type RuntimeInfo interface {
// application
GetName() string
SetName(string)
GetVersion() string
SetVersion(string)
// GetMachineID returns the identifier of the machine the application runs on, or ErrNoMachineID when no stable identifier is available.
GetMachineID() (string, error)
}
RuntimeInfo describes the runtime the application runs in, grouped into application and machine information.
func New ¶
func New(opts ...opt) RuntimeInfo
Click to show internal directories.
Click to hide internal directories.