nodeinfo

package
v0.0.0-...-58f6e79 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DistroUbuntu  Distro = osutils.Ubuntu
	DistroAmzn    Distro = "amzn"
	DistroRhcos   Distro = "rhcos"
	DistroUnknown        = "unknown"

	PkgMgrYum  PkgMgr = "yum"
	PkgMgrApt  PkgMgr = "apt"
	PkgMgrNone PkgMgr = "none"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary interface {
	FindPath(binaryName string) string
}

type BinaryClient

type BinaryClient struct{}

func NewBinary

func NewBinary() *BinaryClient

func (*BinaryClient) FindPath

func (b *BinaryClient) FindPath(binaryName string) string

type Distro

type Distro = string

type Node

type Node interface {
	GetInfo(ctx context.Context) (*NodeInfo, error)
}

type NodeClient

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

func New

func New() *NodeClient

func NewDetailed

func NewDetailed(osUtils osutils.Utils, binary Binary) *NodeClient

func (*NodeClient) GetInfo

func (n *NodeClient) GetInfo(ctx context.Context) (*NodeInfo, error)

type NodeInfo

type NodeInfo struct {
	PkgMgr     PkgMgr
	Distro     Distro
	HostSystem models.HostSystem
}

type PkgMgr

type PkgMgr = string

Jump to

Keyboard shortcuts

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