system

package
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package system contains the system hostname provider

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostInfo

type HostInfo struct {
	OS   string
	FQDN string
}

func GetHostInfo

func GetHostInfo(logger *zap.Logger) (hostInfo *HostInfo)

GetHostInfo gets system information about the hostname

func (*HostInfo) GetHostname

func (hi *HostInfo) GetHostname(logger *zap.Logger) string

GetHostname gets the hostname provided by the system

type Provider

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

func NewProvider

func NewProvider(logger *zap.Logger) *Provider

func (*Provider) HostInfo

func (p *Provider) HostInfo() *HostInfo

func (*Provider) Source

func (p *Provider) Source(context.Context) (source.Source, error)

Jump to

Keyboard shortcuts

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