amt

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

********************************************************************

  • Copyright (c) Intel Corporation 2021
  • SPDX-License-Identifier: Apache-2.0 *********************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ANSI2String

func ANSI2String(ansi pthi.AMTANSIString) string

Types

type AMTCommand

type AMTCommand struct {
	PTHI pthi.Interface
}

func NewAMTCommand

func NewAMTCommand() AMTCommand

func (AMTCommand) DisableAMT

func (amt AMTCommand) DisableAMT() error

func (AMTCommand) EnableAMT

func (amt AMTCommand) EnableAMT() error

func (AMTCommand) GetCertificateHashes

func (amt AMTCommand) GetCertificateHashes() ([]CertHashEntry, error)

func (AMTCommand) GetChangeEnabled

func (amt AMTCommand) GetChangeEnabled() (ChangeEnabledResponse, error)

func (AMTCommand) GetControlMode

func (amt AMTCommand) GetControlMode() (int, error)

GetControlMode ...

func (AMTCommand) GetDNSSuffix

func (amt AMTCommand) GetDNSSuffix() (string, error)

func (AMTCommand) GetLANInterfaceSettings

func (amt AMTCommand) GetLANInterfaceSettings(useWireless bool) (InterfaceSettings, error)

func (AMTCommand) GetLocalSystemAccount

func (amt AMTCommand) GetLocalSystemAccount() (LocalSystemAccount, error)

func (AMTCommand) GetOSDNSSuffix

func (amt AMTCommand) GetOSDNSSuffix() (string, error)

func (AMTCommand) GetRemoteAccessConnectionStatus

func (amt AMTCommand) GetRemoteAccessConnectionStatus() (RemoteAccessStatus, error)

func (AMTCommand) GetUUID

func (amt AMTCommand) GetUUID() (string, error)

GetUUID ...

func (AMTCommand) GetVersionDataFromME

func (amt AMTCommand) GetVersionDataFromME(key string, amtTimeout time.Duration) (string, error)

GetVersionDataFromME ...

func (AMTCommand) Initialize

func (amt AMTCommand) Initialize() (utils.ReturnCode, error)

Initialize determines if rpc is able to initialize the heci driver

func (AMTCommand) Unprovision

func (amt AMTCommand) Unprovision() (int, error)

Unprovision ...

type AMTUnicodeString

type AMTUnicodeString struct {
	Length uint16
	String [20]uint8 //[UNICODE_STRING_LEN]
}

AMTUnicodeString ...

type AMTVersionType

type AMTVersionType struct {
	Description AMTUnicodeString
	Version     AMTUnicodeString
}

AMTVersionType ...

type CertHashEntry

type CertHashEntry struct {
	Hash      string
	Name      string
	Algorithm string
	IsActive  bool
	IsDefault bool
}

CertHashEntry is the GO struct for holding Cert Hash Entries

type ChangeEnabledResponse

type ChangeEnabledResponse uint8

func (ChangeEnabledResponse) IsAMTEnabled

func (r ChangeEnabledResponse) IsAMTEnabled() bool

func (ChangeEnabledResponse) IsNewInterfaceVersion

func (r ChangeEnabledResponse) IsNewInterfaceVersion() bool

func (ChangeEnabledResponse) IsTransitionAllowed

func (r ChangeEnabledResponse) IsTransitionAllowed() bool

type CodeVersions

type CodeVersions struct {
	BiosVersion   [65]uint8 //[BIOS_VERSION_LEN]
	VersionsCount uint32
	Versions      [50]AMTVersionType //[VERSIONS_NUMBER]
}

CodeVersions ...

type Interface

type Interface interface {
	Initialize() (utils.ReturnCode, error)
	GetChangeEnabled() (ChangeEnabledResponse, error)
	EnableAMT() error
	DisableAMT() error
	GetVersionDataFromME(key string, amtTimeout time.Duration) (string, error)
	GetUUID() (string, error)
	GetControlMode() (int, error)
	GetOSDNSSuffix() (string, error)
	GetDNSSuffix() (string, error)
	GetCertificateHashes() ([]CertHashEntry, error)
	GetRemoteAccessConnectionStatus() (RemoteAccessStatus, error)
	GetLANInterfaceSettings(useWireless bool) (InterfaceSettings, error)
	GetLocalSystemAccount() (LocalSystemAccount, error)
	Unprovision() (mode int, err error)
}

type InterfaceSettings

type InterfaceSettings struct {
	IsEnabled   bool   `json:"isEnable"`
	LinkStatus  string `json:"linkStatus"`
	DHCPEnabled bool   `json:"dhcpEnabled"`
	DHCPMode    string `json:"dhcpMode"`
	IPAddress   string `json:"ipAddress"` //net.IP
	MACAddress  string `json:"macAddress"`
}

InterfaceSettings ...

type LocalSystemAccount

type LocalSystemAccount struct {
	Username string
	Password string
}

LocalSystemAccount holds username and password

type RemoteAccessStatus

type RemoteAccessStatus struct {
	NetworkStatus string `json:"networkStatus"`
	RemoteStatus  string `json:"remoteStatus"`
	RemoteTrigger string `json:"remoteTrigger"`
	MPSHostname   string `json:"mpsHostname"`
}

RemoteAccessStatus holds connect status information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳