Documentation
¶
Index ¶
- Variables
- func FindKeyValueInString(key string, text string) (int64, error)
- type Connection
- func (c *Connection) BinaryExists(bin string) error
- func (c *Connection) DryRun(command string, output io.Writer) error
- func (c *Connection) ProbeAuthentication() error
- func (c *Connection) ProbeHardware() (HardwareProfile, error)
- func (c *Connection) ProbeRemoteproc() ([]RemoteprocCPU, error)
- func (c *Connection) Run(command string) (string, error)
- type ConnectionOptions
- type ExecSSH
- type HardwareProfile
- type HostProcessor
- type LscpuOutputField
- type RemoteprocCPU
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHostKeyVerification = errors.New("ssh host key verification failed") ErrAuthenticationFailure = errors.New("ssh authentication failed") )
View Source
var ErrPasswordAuthentication = errors.New("key-based SSH authentication is not setup")
Functions ¶
Types ¶
type Connection ¶
func NewConnection ¶
func NewConnection(sshTarget string, opts ConnectionOptions) Connection
func (*Connection) BinaryExists ¶
func (c *Connection) BinaryExists(bin string) error
func (*Connection) ProbeAuthentication ¶
func (c *Connection) ProbeAuthentication() error
func (*Connection) ProbeHardware ¶
func (c *Connection) ProbeHardware() (HardwareProfile, error)
func (*Connection) ProbeRemoteproc ¶
func (c *Connection) ProbeRemoteproc() ([]RemoteprocCPU, error)
type ConnectionOptions ¶
type HardwareProfile ¶
type HardwareProfile struct {
HostProcessor []HostProcessor `yaml:"host"`
RemoteCPU []RemoteprocCPU `yaml:"remoteprocs"`
TotalMemoryKb int64 `yaml:"totalmemory_kb"`
}
type HostProcessor ¶
type HostProcessor struct {
Model string `yaml:"model"`
Cores int `yaml:"cores"`
Features []string `yaml:"features"`
}
func CreateCPUProfile ¶
func CreateCPUProfile(fields []LscpuOutputField) ([]HostProcessor, error)
func (*HostProcessor) ExtractArmFeatures ¶
func (proc *HostProcessor) ExtractArmFeatures() []string
type LscpuOutputField ¶
type LscpuOutputField struct {
Field string `json:"field"`
Data string `json:"data"`
Children []LscpuOutputField `json:"children,omitempty"`
}
type RemoteprocCPU ¶
type RemoteprocCPU struct {
Name string `yaml:"name"`
}
Click to show internal directories.
Click to hide internal directories.