Documentation ¶
Overview ¶
********************************************************************
- Copyright (c) Intel Corporation 2024
- SPDX-License-Identifier: Apache-2.0 *********************************************************************
Index ¶
- Constants
- func DecodeAMT(version, SKU string) string
- func ExecuteCommand(flags *flags.Flags) error
- func GetMajorVersion(version string) (int, error)
- func GetOSIPAddress(mac_addr string, netEnumerator flags.NetEnumerator) (string, error)
- func GetTokenFromKeyValuePairs(kvList string, token string) string
- type AuthRequest
- type AuthResponse
- type CertificateObject
- type Certificates
- type CertsAndKeys
- type EAProfile
- type Handles
- type OSNetworker
- type PrivateKeyPairReference
- type ProfileAssociation
- type ProvisioningCertObj
- type ProvisioningService
- func (service *ProvisioningService) Activate() error
- func (service *ProvisioningService) ActivateACM() error
- func (service *ProvisioningService) ActivateCCM() error
- func (service *ProvisioningService) AddCerts(ieee8021xConfig config.Ieee8021xConfig) (Handles, error)
- func (service *ProvisioningService) AddCertsUsingEnterpriseAssistant(ieee8021xConfig config.Ieee8021xConfig) (Handles, config.Ieee8021xConfig, error)
- func (service *ProvisioningService) AddEthernetSettings() (err error)
- func (service *ProvisioningService) AddWifiSettings() (err error)
- func (service *ProvisioningService) ChangeAMTPassword() (err error)
- func (service *ProvisioningService) CheckAndEnableAMT(skipIPRenewal bool) (bool, error)
- func (service *ProvisioningService) CompareCertHashes(fingerPrint string) error
- func (service *ProvisioningService) Configure() (err error)
- func (service *ProvisioningService) ConfigureTLS() error
- func (service *ProvisioningService) ConfigureTLSSettings(setting tls.SettingDataResponse) error
- func (service *ProvisioningService) ConfigureTLSWithEA() error
- func (service *ProvisioningService) ConfigureTLSWithSelfSignedCert() error
- func (service *ProvisioningService) CreateTLSCredentialContext(certHandle string) error
- func (service *ProvisioningService) Deactivate() (err error)
- func (service *ProvisioningService) DeactivateACM() (err error)
- func (service *ProvisioningService) DeactivateCCM() (err error)
- func (service *ProvisioningService) Disable8021xProfile() (err error)
- func (service *ProvisioningService) DisplayAMTInfo() (err error)
- func (service *ProvisioningService) DisplayVersion() (err error)
- func (service *ProvisioningService) EAConfigureRequest(url string, token string, profileRequest EAProfile) (EAProfile, error)
- func (service *ProvisioningService) EnableAMT() error
- func (service *ProvisioningService) EnableTLS() error
- func (service *ProvisioningService) EnableWifiPort(enableSync bool) (err error)
- func (service *ProvisioningService) GenerateKeyPair() (handle string, err error)
- func (service *ProvisioningService) GetAuthToken(url string, credentials AuthRequest) (string, error)
- func (service *ProvisioningService) GetCertificates() (SecuritySettings, error)
- func (service *ProvisioningService) GetClientCertHandle(securitySettings SecuritySettings, clientCert string) (clientCertHandle string, err error)
- func (service *ProvisioningService) GetDERKey(handles Handles) (derKey string, err error)
- func (service *ProvisioningService) GetLowAccuracyTimeSynch() (ta0 int64, err error)
- func (service *ProvisioningService) GetPrivateKeyHandle(securitySettings SecuritySettings, privateKey string) (privateKeyHandle string, err error)
- func (service *ProvisioningService) GetProvisioningCertObj() (ProvisioningCertObj, string, error)
- func (service *ProvisioningService) GetTrustedRootCertHandle(securitySettings SecuritySettings, caCert string) (rootCertHandle string, err error)
- func (service *ProvisioningService) Pause(howManySeconds int)
- func (service *ProvisioningService) PerformPostRequest(url string, requestBody []byte, token string) ([]byte, error)
- func (service *ProvisioningService) PrintOutput(message string)
- func (service *ProvisioningService) ProcessWifiConfig(wifiCfg *config.WifiConfig) (err error)
- func (service *ProvisioningService) ProcessWifiConfigs() error
- func (service *ProvisioningService) PruneCerts() error
- func (service *ProvisioningService) PutIEEESettings(getIEEESettings ieee8021x.Response, ieee802xCfg config.Ieee8021xConfig) error
- func (service *ProvisioningService) RenewIP() error
- func (service *ProvisioningService) SetAMTFeatures() error
- func (service *ProvisioningService) SetHighAccuracyTimeSynch(ta0 int64) error
- func (service *ProvisioningService) SetMebx() (err error)
- func (service *ProvisioningService) SynchronizeTime() error
- func (service *ProvisioningService) ValidateURL(u string) error
- type RealOSNetworker
- type Response
- type SecuritySettings
- type VersionInfo
Constants ¶
View Source
const ( TypeWireless string = "Wireless" TypeTLS string = "TLS" TypeWired string = "Wired" )
View Source
const LocalTLSInstanceId = `Intel(r) AMT LMS TLS Settings`
View Source
const RemoteTLSInstanceId = `Intel(r) AMT 802.3 TLS Settings`
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommand ¶
func GetMajorVersion ¶
func GetOSIPAddress ¶
func GetOSIPAddress(mac_addr string, netEnumerator flags.NetEnumerator) (string, error)
Types ¶
type AuthRequest ¶
type AuthResponse ¶
type CertificateObject ¶
type CertificateObject struct {
// contains filtered or unexported fields
}
type Certificates ¶
type Certificates struct { ConcreteDependencyResponse []concrete.ConcreteDependency PublicKeyCertificateResponse []publickey.RefinedPublicKeyCertificateResponse PublicPrivateKeyPairResponse []publicprivate.RefinedPublicPrivateKeyPair CIMCredentialContextResponse credential.Items }
type CertsAndKeys ¶
type CertsAndKeys struct {
// contains filtered or unexported fields
}
type EAProfile ¶
type EAProfile struct { NodeID string `json:"nodeid"` Domain string `json:"domain"` ReqID string `json:"reqid"` AuthProtocol int `json:"authProtocol"` OSName string `json:"osname"` DevName string `json:"devname"` Icon int `json:"icon"` Ver string `json:"ver"` SignedCSR string `json:"signedcsr"` DERKey string `json:"DERKey"` KeyInstanceId string `json:"keyInstanceId"` Response Response `json:"response"` }
type OSNetworker ¶
type OSNetworker interface {
RenewDHCPLease() error
}
type PrivateKeyPairReference ¶
type PrivateKeyPairReference struct { KeyPair publicprivate.KeyPair AssociatedCerts []string }
type ProfileAssociation ¶
type ProvisioningCertObj ¶
type ProvisioningCertObj struct {
// contains filtered or unexported fields
}
type ProvisioningService ¶
type ProvisioningService struct {
// contains filtered or unexported fields
}
func NewProvisioningService ¶
func NewProvisioningService(flags *flags.Flags) ProvisioningService
func (*ProvisioningService) Activate ¶
func (service *ProvisioningService) Activate() error
func (*ProvisioningService) ActivateACM ¶
func (service *ProvisioningService) ActivateACM() error
func (*ProvisioningService) ActivateCCM ¶
func (service *ProvisioningService) ActivateCCM() error
func (*ProvisioningService) AddCerts ¶
func (service *ProvisioningService) AddCerts(ieee8021xConfig config.Ieee8021xConfig) (Handles, error)
func (*ProvisioningService) AddCertsUsingEnterpriseAssistant ¶
func (service *ProvisioningService) AddCertsUsingEnterpriseAssistant(ieee8021xConfig config.Ieee8021xConfig) (Handles, config.Ieee8021xConfig, error)
func (*ProvisioningService) AddEthernetSettings ¶
func (service *ProvisioningService) AddEthernetSettings() (err error)
func (*ProvisioningService) AddWifiSettings ¶
func (service *ProvisioningService) AddWifiSettings() (err error)
func (*ProvisioningService) ChangeAMTPassword ¶
func (service *ProvisioningService) ChangeAMTPassword() (err error)
func (*ProvisioningService) CheckAndEnableAMT ¶
func (service *ProvisioningService) CheckAndEnableAMT(skipIPRenewal bool) (bool, error)
func (*ProvisioningService) CompareCertHashes ¶
func (service *ProvisioningService) CompareCertHashes(fingerPrint string) error
func (*ProvisioningService) Configure ¶
func (service *ProvisioningService) Configure() (err error)
func (*ProvisioningService) ConfigureTLS ¶
func (service *ProvisioningService) ConfigureTLS() error
func (*ProvisioningService) ConfigureTLSSettings ¶
func (service *ProvisioningService) ConfigureTLSSettings(setting tls.SettingDataResponse) error
func (*ProvisioningService) ConfigureTLSWithEA ¶
func (service *ProvisioningService) ConfigureTLSWithEA() error
func (*ProvisioningService) ConfigureTLSWithSelfSignedCert ¶
func (service *ProvisioningService) ConfigureTLSWithSelfSignedCert() error
func (*ProvisioningService) CreateTLSCredentialContext ¶
func (service *ProvisioningService) CreateTLSCredentialContext(certHandle string) error
func (*ProvisioningService) Deactivate ¶
func (service *ProvisioningService) Deactivate() (err error)
func (*ProvisioningService) DeactivateACM ¶
func (service *ProvisioningService) DeactivateACM() (err error)
func (*ProvisioningService) DeactivateCCM ¶
func (service *ProvisioningService) DeactivateCCM() (err error)
func (*ProvisioningService) Disable8021xProfile ¶
func (service *ProvisioningService) Disable8021xProfile() (err error)
func (*ProvisioningService) DisplayAMTInfo ¶
func (service *ProvisioningService) DisplayAMTInfo() (err error)
func (*ProvisioningService) DisplayVersion ¶
func (service *ProvisioningService) DisplayVersion() (err error)
func (*ProvisioningService) EAConfigureRequest ¶
func (*ProvisioningService) EnableAMT ¶
func (service *ProvisioningService) EnableAMT() error
func (*ProvisioningService) EnableTLS ¶
func (service *ProvisioningService) EnableTLS() error
func (*ProvisioningService) EnableWifiPort ¶
func (service *ProvisioningService) EnableWifiPort(enableSync bool) (err error)
func (*ProvisioningService) GenerateKeyPair ¶
func (service *ProvisioningService) GenerateKeyPair() (handle string, err error)
func (*ProvisioningService) GetAuthToken ¶
func (service *ProvisioningService) GetAuthToken(url string, credentials AuthRequest) (string, error)
func (*ProvisioningService) GetCertificates ¶
func (service *ProvisioningService) GetCertificates() (SecuritySettings, error)
func (*ProvisioningService) GetClientCertHandle ¶
func (service *ProvisioningService) GetClientCertHandle(securitySettings SecuritySettings, clientCert string) (clientCertHandle string, err error)
func (*ProvisioningService) GetDERKey ¶
func (service *ProvisioningService) GetDERKey(handles Handles) (derKey string, err error)
func (*ProvisioningService) GetLowAccuracyTimeSynch ¶
func (service *ProvisioningService) GetLowAccuracyTimeSynch() (ta0 int64, err error)
func (*ProvisioningService) GetPrivateKeyHandle ¶
func (service *ProvisioningService) GetPrivateKeyHandle(securitySettings SecuritySettings, privateKey string) (privateKeyHandle string, err error)
func (*ProvisioningService) GetProvisioningCertObj ¶
func (service *ProvisioningService) GetProvisioningCertObj() (ProvisioningCertObj, string, error)
func (*ProvisioningService) GetTrustedRootCertHandle ¶
func (service *ProvisioningService) GetTrustedRootCertHandle(securitySettings SecuritySettings, caCert string) (rootCertHandle string, err error)
func (*ProvisioningService) Pause ¶
func (service *ProvisioningService) Pause(howManySeconds int)
func (*ProvisioningService) PerformPostRequest ¶
func (*ProvisioningService) PrintOutput ¶
func (service *ProvisioningService) PrintOutput(message string)
func (*ProvisioningService) ProcessWifiConfig ¶
func (service *ProvisioningService) ProcessWifiConfig(wifiCfg *config.WifiConfig) (err error)
func (*ProvisioningService) ProcessWifiConfigs ¶
func (service *ProvisioningService) ProcessWifiConfigs() error
func (*ProvisioningService) PruneCerts ¶
func (service *ProvisioningService) PruneCerts() error
func (*ProvisioningService) PutIEEESettings ¶
func (service *ProvisioningService) PutIEEESettings(getIEEESettings ieee8021x.Response, ieee802xCfg config.Ieee8021xConfig) error
func (*ProvisioningService) RenewIP ¶
func (service *ProvisioningService) RenewIP() error
func (*ProvisioningService) SetAMTFeatures ¶
func (service *ProvisioningService) SetAMTFeatures() error
func (*ProvisioningService) SetHighAccuracyTimeSynch ¶
func (service *ProvisioningService) SetHighAccuracyTimeSynch(ta0 int64) error
func (*ProvisioningService) SetMebx ¶
func (service *ProvisioningService) SetMebx() (err error)
func (*ProvisioningService) SynchronizeTime ¶
func (service *ProvisioningService) SynchronizeTime() error
func (*ProvisioningService) ValidateURL ¶
func (service *ProvisioningService) ValidateURL(u string) error
type RealOSNetworker ¶
type RealOSNetworker struct{}
func (*RealOSNetworker) RenewDHCPLease ¶
func (n *RealOSNetworker) RenewDHCPLease() error
type Response ¶
type Response struct { CSR string `json:"csr"` KeyInstanceId string `json:"keyInstanceId"` AuthProtocol int `json:"authProtocol"` Certificate string `json:"certificate"` Domain string `json:"domain"` Username string `json:"username"` Password string `json:"password"` RootCert string `json:"rootcert"` }
type SecuritySettings ¶
type SecuritySettings struct { ProfileAssociation []ProfileAssociation `json:"ProfileAssociation"` Certificates interface{} `json:"Certificates"` Keys interface{} `json:"PublicKeys"` }
type VersionInfo ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.