local

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

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

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

Index

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 DecodeAMT

func DecodeAMT(version, SKU string) string

func ExecuteCommand

func ExecuteCommand(flags *flags.Flags) error

func GetMajorVersion

func GetMajorVersion(version string) (int, error)

func GetOSIPAddress

func GetOSIPAddress(mac_addr string, netEnumerator flags.NetEnumerator) (string, error)

func GetTokenFromKeyValuePairs

func GetTokenFromKeyValuePairs(kvList string, token string) string

Types

type AuthRequest

type AuthRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type AuthResponse

type AuthResponse struct {
	Token  string `json:"jwtToken"`
	Status string `json:"status"`
}

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 Handles

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

type OSNetworker

type OSNetworker interface {
	RenewDHCPLease() error
}

type PrivateKeyPairReference

type PrivateKeyPairReference struct {
	KeyPair         publicprivate.KeyPair
	AssociatedCerts []string
}

type ProfileAssociation

type ProfileAssociation struct {
	Type              string      `json:"Type"`
	ProfileID         string      `json:"ProfileID"`
	RootCertificate   interface{} `json:"RootCertificate,omitempty"`
	ClientCertificate interface{} `json:"ClientCertificate,omitempty"`
	Key               interface{} `json:"PublicKey,omitempty"`
}

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 (service *ProvisioningService) EAConfigureRequest(url string, token string, profileRequest EAProfile) (EAProfile, error)

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 (service *ProvisioningService) PerformPostRequest(url string, requestBody []byte, token string) ([]byte, error)

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

type VersionInfo struct {
	App      string `json:"app"`
	Version  string `json:"version"`
	Protocol string `json:"protocol"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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