Documentation
¶
Index ¶
- func Arch(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func CPUCoreFreqMax(m remotecommand.Machine, cb ssh.HostKeyCallback) (server.MHz, error)
- func CPUCoreFreqMin(m remotecommand.Machine, cb ssh.HostKeyCallback) (server.MHz, error)
- func CPUCores(m remotecommand.Machine, cb ssh.HostKeyCallback) (int, error)
- func CPUName(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func CPUThreads(m remotecommand.Machine, cb ssh.HostKeyCallback) (int, error)
- func Disks(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]server.Disk, error)
- func EthernetDeviceName(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func EthernetIDNetNames(m remotecommand.Machine, cb ssh.HostKeyCallback) (map[string]string, error)
- func EthernetSpeed(m remotecommand.Machine, cb ssh.HostKeyCallback) (server.Mbps, error)
- func IPv4(m remotecommand.Machine, cb ssh.HostKeyCallback) (net.IP, error)
- func IPv4Gateway(m remotecommand.Machine, cb ssh.HostKeyCallback) (net.IP, error)
- func IPv4Netmask(m remotecommand.Machine, cb ssh.HostKeyCallback) (net.IP, error)
- func InstallRawImage(m remotecommand.Machine, imageURL, device string, cb ssh.HostKeyCallback) error
- func MAC(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func Memory(m remotecommand.Machine, cb ssh.HostKeyCallback) (server.GigaByte, error)
- func MemoryModules(m remotecommand.Machine, cb ssh.HostKeyCallback) (modules []string, err error)
- func Reboot(m remotecommand.Machine, cb ssh.HostKeyCallback)
- func ResolveconfDNSv4(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]string, error)
- func ResolveconfDNSv6(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]string, error)
- func ResolvectlDNSv4(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]string, error)
- func ResolvectlDNSv6(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]string, error)
- func SetConfigURL(m remotecommand.Machine, configURL, device string, cb ssh.HostKeyCallback) (string, error)
- func SetIPOptionStaticV4(m remotecommand.Machine, ipOpt *kernel.IPOptionStaticV4, device string, ...) (string, error)
- func SoftwareRAIDNotExists(m remotecommand.Machine, cb ssh.HostKeyCallback) error
- func Storage(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]server.GigaByte, error)
- func SystemFamily(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func SystemManufacturer(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func SystemProductName(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func SystemSKUNumber(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func SystemSerialNumber(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func SystemUUID(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func SystemVersion(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
- func WipeFileSystemSignatures(m remotecommand.Machine, cb ssh.HostKeyCallback) error
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Arch ¶
func Arch(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
Arch returns the machine architecture (see `uname -m`)
func CPUCoreFreqMax ¶
func CPUCoreFreqMax(m remotecommand.Machine, cb ssh.HostKeyCallback) (server.MHz, error)
CPUCoreFreqMax returns the maximum frequency of a core
func CPUCoreFreqMin ¶
func CPUCoreFreqMin(m remotecommand.Machine, cb ssh.HostKeyCallback) (server.MHz, error)
CPUCoreFreqMin returns the minimum frequency of a core
func CPUCores ¶
func CPUCores(m remotecommand.Machine, cb ssh.HostKeyCallback) (int, error)
CPUCores returns the amount of real CPU cores
func CPUName ¶
func CPUName(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
CPUName returns the CPU name
func CPUThreads ¶
func CPUThreads(m remotecommand.Machine, cb ssh.HostKeyCallback) (int, error)
CPUThreads returns the amount of CPU threads
func Disks ¶
func Disks(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]server.Disk, error)
Disks returns all disks
func EthernetDeviceName ¶
func EthernetDeviceName(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
EthernetDeviceName returns the name of the ethernet device, like eth0 or enp0s31f6 (when kernel is configured to use predictable network interface names).
func EthernetIDNetNames ¶ added in v1.0.2
func EthernetIDNetNames(m remotecommand.Machine, cb ssh.HostKeyCallback) (map[string]string, error)
EthernetIDNetNames
func EthernetSpeed ¶
func EthernetSpeed(m remotecommand.Machine, cb ssh.HostKeyCallback) (server.Mbps, error)
EthernetSpeed returns the speed of the ethernet device in Mbps.
func IPv4 ¶
func IPv4(m remotecommand.Machine, cb ssh.HostKeyCallback) (net.IP, error)
IPv4 address of ethernet device
func IPv4Gateway ¶
func IPv4Gateway(m remotecommand.Machine, cb ssh.HostKeyCallback) (net.IP, error)
IPv4Gateway returns the default gateway IPv4 of ethernet device
func IPv4Netmask ¶
func IPv4Netmask(m remotecommand.Machine, cb ssh.HostKeyCallback) (net.IP, error)
IPv4Netmask returns the IPv4 netmask of ethernet device
func InstallRawImage ¶
func InstallRawImage(m remotecommand.Machine, imageURL, device string, cb ssh.HostKeyCallback) error
InstallRawImage downloads the raw image URL and writes it to the given device.
func MAC ¶
func MAC(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
MAC returns the address of the ethernet interface
func Memory ¶
func Memory(m remotecommand.Machine, cb ssh.HostKeyCallback) (server.GigaByte, error)
Memory returns the amount of RAM
func MemoryModules ¶
func MemoryModules(m remotecommand.Machine, cb ssh.HostKeyCallback) (modules []string, err error)
MemoryModules returns memory module information
func Reboot ¶
func Reboot(m remotecommand.Machine, cb ssh.HostKeyCallback)
Reboot triggers a reboot. It does not return anything, since the machine should be offline and not be able to have a SSH chat :)
func ResolveconfDNSv4 ¶ added in v1.0.5
func ResolveconfDNSv4(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]string, error)
ResolveconfDNSv4 queries the global DNS servers from /etc/resolv.conf
func ResolveconfDNSv6 ¶ added in v1.0.5
func ResolveconfDNSv6(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]string, error)
ResolveconfDNSv6 queries the global DNS servers from /etc/resolv.conf
func ResolvectlDNSv4 ¶ added in v1.0.5
func ResolvectlDNSv4(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]string, error)
ResolvectlDNSv4 queries the global DNS servers from resolvectl
func ResolvectlDNSv6 ¶ added in v1.0.5
func ResolvectlDNSv6(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]string, error)
ResolvectlDNSv6 queries the global DNS servers from resolvectl
func SetConfigURL ¶
func SetConfigURL(m remotecommand.Machine, configURL, device string, cb ssh.HostKeyCallback) (string, error)
Sets talos.config in grub.cfg and returns the URL
func SetIPOptionStaticV4 ¶ added in v1.0.4
func SetIPOptionStaticV4(m remotecommand.Machine, ipOpt *kernel.IPOptionStaticV4, device string, cb ssh.HostKeyCallback) (string, error)
func SoftwareRAIDNotExists ¶
func SoftwareRAIDNotExists(m remotecommand.Machine, cb ssh.HostKeyCallback) error
SoftwareRAIDNotExists ensures that there are no software RAID partitions (/dev/md*)
func Storage ¶
func Storage(m remotecommand.Machine, cb ssh.HostKeyCallback) ([]server.GigaByte, error)
Storage returns a slice with the gigabytes of storage per disk
func SystemFamily ¶ added in v0.0.17
func SystemFamily(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
SystemFamily as defined in SMBIOS data
func SystemManufacturer ¶ added in v0.0.17
func SystemManufacturer(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
SystemManufacturer as defined in SMBIOS data
func SystemProductName ¶ added in v0.0.17
func SystemProductName(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
SystemProductName as defined in SMBIOS data
func SystemSKUNumber ¶ added in v0.0.17
func SystemSKUNumber(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
SystemSKUNumber as defined in SMBIOS data
func SystemSerialNumber ¶ added in v0.0.17
func SystemSerialNumber(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
SystemSerialNumber as defined in SMBIOS data
func SystemUUID ¶
func SystemUUID(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
SystemUUID as defined in SMBIOS data
func SystemVersion ¶ added in v0.0.17
func SystemVersion(m remotecommand.Machine, cb ssh.HostKeyCallback) (string, error)
SystemVersion as defined in SMBIOS data
func WipeFileSystemSignatures ¶
func WipeFileSystemSignatures(m remotecommand.Machine, cb ssh.HostKeyCallback) error
WipeFileSystemSignatures erases all available signatures of all NVMe and SATA drives. It does not shred the data, though!
Types ¶
Source Files
¶
- arch.go
- cpucorefreqmax.go
- cpucorefreqmin.go
- cpucores.go
- cpuname.go
- cputhreads.go
- disks.go
- ethernetdevicename.go
- ethernetidnetnames.go
- ethernetspeed.go
- installrawimage.go
- ipv4.go
- ipv4gateway.go
- ipv4netmask.go
- mac.go
- memory.go
- memorymodules.go
- reboot.go
- resolveconfdnsv4.go
- resolveconfdnsv6.go
- resolvectldnsv4.go
- resolvectldnsv6.go
- setconfigurl.go
- setipoptionstaticv4.go
- softwareraidnotexists.go
- storage.go
- systemfamily.go
- systemmanufacturer.go
- systemproductname.go
- systemserialnumber.go
- systemskunumber.go
- systemuuid.go
- systemversion.go
- wipefilesystemsignatures.go