wsman

package
v1.0.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserConsentOptions = map[int]string{
	0:          "none",
	1:          "kvm",
	4294967295: "all",
}

Functions

This section is empty.

Types

type Certificates

type Certificates struct {
	ConcreteDependencyResponse   concrete.PullResponse
	PublicKeyCertificateResponse publickey.RefinedPullResponse
	PublicPrivateKeyPairResponse publicprivate.RefinedPullResponse
	CIMCredentialContextResponse credential.PullResponse
}

type ConnectionEntry

type ConnectionEntry struct {
	WsmanMessages wsman.Messages
	Timer         *time.Timer
}

func (*ConnectionEntry) AddClientCert

func (g *ConnectionEntry) AddClientCert(clientCert string) (handle string, err error)

func (*ConnectionEntry) AddPrivateKey

func (g *ConnectionEntry) AddPrivateKey(privateKey string) (handle string, err error)

func (*ConnectionEntry) AddTrustedRootCert

func (g *ConnectionEntry) AddTrustedRootCert(caCert string) (handle string, err error)

func (*ConnectionEntry) AddWiFiSettings

func (g *ConnectionEntry) AddWiFiSettings(wifiEndpointSettings wifi.WiFiEndpointSettingsRequest, ieee8021xSettings models.IEEE8021xSettings, wifiEndpoint, clientCredential, caCredential string) (response wifiportconfiguration.Response, err error)

func (*ConnectionEntry) CancelUserConsentRequest

func (g *ConnectionEntry) CancelUserConsentRequest() (interface{}, error)

func (*ConnectionEntry) ChangeBootOrder

func (g *ConnectionEntry) ChangeBootOrder(bootSource string) (cimBoot.ChangeBootOrder_OUTPUT, error)

func (*ConnectionEntry) CommitChanges

func (g *ConnectionEntry) CommitChanges() (response setupandconfiguration.Response, err error)

func (*ConnectionEntry) CreateAlarmOccurrences

func (g *ConnectionEntry) CreateAlarmOccurrences(name string, startTime time.Time, interval int, deleteOnCompletion bool) (amtAlarmClock.AddAlarmOutput, error)

func (*ConnectionEntry) CreateTLSCredentialContext

func (g *ConnectionEntry) CreateTLSCredentialContext(certHandle string) (response tls.Response, err error)

func (*ConnectionEntry) DeleteAlarmOccurrences

func (g *ConnectionEntry) DeleteAlarmOccurrences(instanceID string) error

func (*ConnectionEntry) DeleteKeyPair

func (g *ConnectionEntry) DeleteKeyPair(instanceID string) error

func (*ConnectionEntry) DeletePublicCert

func (g *ConnectionEntry) DeletePublicCert(instanceID string) error

func (*ConnectionEntry) DeletePublicPrivateKeyPair

func (g *ConnectionEntry) DeletePublicPrivateKeyPair(instanceID string) error

func (*ConnectionEntry) DeleteWiFiSetting

func (g *ConnectionEntry) DeleteWiFiSetting(instanceID string) error

func (*ConnectionEntry) EnumerateTLSSettingData

func (g *ConnectionEntry) EnumerateTLSSettingData() (response tls.Response, err error)

func (*ConnectionEntry) GenerateKeyPair

func (g *ConnectionEntry) GenerateKeyPair(keyAlgorithm publickey.KeyAlgorithm, keyLength publickey.KeyLength) (response publickey.Response, err error)

func (*ConnectionEntry) GeneratePKCS10RequestEx

func (g *ConnectionEntry) GeneratePKCS10RequestEx(keyPair, nullSignedCertificateRequest string, signingAlgorithm publickey.SigningAlgorithm) (response publickey.Response, err error)

func (*ConnectionEntry) GetAMT8021xCredentialContext

func (g *ConnectionEntry) GetAMT8021xCredentialContext() (ieee8021x.Response, error)

AMT Explorer Functions.

func (*ConnectionEntry) GetAMT8021xProfile

func (g *ConnectionEntry) GetAMT8021xProfile() (ieee8021x.Response, error)

func (*ConnectionEntry) GetAMTAlarmClockService

func (g *ConnectionEntry) GetAMTAlarmClockService() (amtAlarmClock.Response, error)

func (*ConnectionEntry) GetAMTAuditLog

func (g *ConnectionEntry) GetAMTAuditLog() (auditlog.Response, error)

func (*ConnectionEntry) GetAMTAuthorizationService

func (g *ConnectionEntry) GetAMTAuthorizationService() (authorization.Response, error)

func (*ConnectionEntry) GetAMTBootCapabilities

func (g *ConnectionEntry) GetAMTBootCapabilities() (boot.Response, error)

func (*ConnectionEntry) GetAMTBootSettingData

func (g *ConnectionEntry) GetAMTBootSettingData() (boot.Response, error)

func (*ConnectionEntry) GetAMTEnvironmentDetectionSettingData

func (g *ConnectionEntry) GetAMTEnvironmentDetectionSettingData() (environmentdetection.Response, error)

func (*ConnectionEntry) GetAMTEthernetPortSettings

func (g *ConnectionEntry) GetAMTEthernetPortSettings() (ethernetport.Response, error)

func (*ConnectionEntry) GetAMTGeneralSettings

func (g *ConnectionEntry) GetAMTGeneralSettings() (general.Response, error)

func (*ConnectionEntry) GetAMTKerberosSettingData

func (g *ConnectionEntry) GetAMTKerberosSettingData() (kerberos.Response, error)

func (*ConnectionEntry) GetAMTMPSUsernamePassword

func (g *ConnectionEntry) GetAMTMPSUsernamePassword() (mps.Response, error)

func (*ConnectionEntry) GetAMTManagementPresenceRemoteSAP

func (g *ConnectionEntry) GetAMTManagementPresenceRemoteSAP() (managementpresence.Response, error)

func (*ConnectionEntry) GetAMTMessageLog

func (g *ConnectionEntry) GetAMTMessageLog() (messagelog.Response, error)

func (*ConnectionEntry) GetAMTPublicKeyCertificate

func (g *ConnectionEntry) GetAMTPublicKeyCertificate() (publickey.Response, error)

func (*ConnectionEntry) GetAMTPublicKeyManagementService

func (g *ConnectionEntry) GetAMTPublicKeyManagementService() (publickey.Response, error)

func (*ConnectionEntry) GetAMTPublicPrivateKeyPair

func (g *ConnectionEntry) GetAMTPublicPrivateKeyPair() (publicprivate.Response, error)

func (*ConnectionEntry) GetAMTRedirectionService

func (g *ConnectionEntry) GetAMTRedirectionService() (redirection.Response, error)

func (*ConnectionEntry) GetAMTRemoteAccessPolicyAppliesToMPS

func (g *ConnectionEntry) GetAMTRemoteAccessPolicyAppliesToMPS() (remoteaccess.Response, error)

func (*ConnectionEntry) GetAMTRemoteAccessPolicyRule

func (g *ConnectionEntry) GetAMTRemoteAccessPolicyRule() (remoteaccess.Response, error)

func (*ConnectionEntry) GetAMTRemoteAccessService

func (g *ConnectionEntry) GetAMTRemoteAccessService() (remoteaccess.Response, error)

func (*ConnectionEntry) GetAMTSetupAndConfigurationService

func (g *ConnectionEntry) GetAMTSetupAndConfigurationService() (setupandconfiguration.Response, error)

func (*ConnectionEntry) GetAMTTLSCredentialContext

func (g *ConnectionEntry) GetAMTTLSCredentialContext() (tls.Response, error)

func (*ConnectionEntry) GetAMTTLSProtocolEndpointCollection

func (g *ConnectionEntry) GetAMTTLSProtocolEndpointCollection() (tls.Response, error)

func (*ConnectionEntry) GetAMTTLSSettingData

func (g *ConnectionEntry) GetAMTTLSSettingData() (tls.Response, error)

func (*ConnectionEntry) GetAMTTimeSynchronizationService

func (g *ConnectionEntry) GetAMTTimeSynchronizationService() (timesynchronization.Response, error)

func (*ConnectionEntry) GetAMTUserInitiatedConnectionService

func (g *ConnectionEntry) GetAMTUserInitiatedConnectionService() (userinitiatedconnection.Response, error)

func (*ConnectionEntry) GetAMTVersion

func (g *ConnectionEntry) GetAMTVersion() ([]software.SoftwareIdentity, error)

func (*ConnectionEntry) GetAMTWiFiPortConfigurationService

func (g *ConnectionEntry) GetAMTWiFiPortConfigurationService() (wifiportconfiguration.Response, error)

func (*ConnectionEntry) GetAlarmOccurrences

func (g *ConnectionEntry) GetAlarmOccurrences() ([]ipsAlarmClock.AlarmClockOccurrence, error)

func (*ConnectionEntry) GetAuditLog

func (g *ConnectionEntry) GetAuditLog(startIndex int) (auditlog.Response, error)

func (*ConnectionEntry) GetBootData

func (g *ConnectionEntry) GetBootData() (boot.BootCapabilitiesResponse, error)

func (*ConnectionEntry) GetCIMBIOSElement

func (g *ConnectionEntry) GetCIMBIOSElement() (bios.Response, error)

func (*ConnectionEntry) GetCIMBootConfigSetting

func (g *ConnectionEntry) GetCIMBootConfigSetting() (cimBoot.Response, error)

func (*ConnectionEntry) GetCIMBootService

func (g *ConnectionEntry) GetCIMBootService() (cimBoot.Response, error)

func (*ConnectionEntry) GetCIMBootSourceSetting

func (g *ConnectionEntry) GetCIMBootSourceSetting() (cimBoot.Response, error)

func (*ConnectionEntry) GetCIMCard

func (g *ConnectionEntry) GetCIMCard() (card.Response, error)

func (*ConnectionEntry) GetCIMChassis

func (g *ConnectionEntry) GetCIMChassis() (chassis.Response, error)

func (*ConnectionEntry) GetCIMChip

func (g *ConnectionEntry) GetCIMChip() (chip.Response, error)

func (*ConnectionEntry) GetCIMComputerSystemPackage

func (g *ConnectionEntry) GetCIMComputerSystemPackage() (computer.Response, error)

func (*ConnectionEntry) GetCIMConcreteDependency

func (g *ConnectionEntry) GetCIMConcreteDependency() (concrete.Response, error)

func (*ConnectionEntry) GetCIMCredentialContext

func (g *ConnectionEntry) GetCIMCredentialContext() (credential.Response, error)

func (*ConnectionEntry) GetCIMIEEE8021xSettings

func (g *ConnectionEntry) GetCIMIEEE8021xSettings() (response cimIEEE8021x.Response, err error)

func (*ConnectionEntry) GetCIMKVMRedirectionSAP

func (g *ConnectionEntry) GetCIMKVMRedirectionSAP() (kvm.Response, error)

func (*ConnectionEntry) GetCIMMediaAccessDevice

func (g *ConnectionEntry) GetCIMMediaAccessDevice() (mediaaccess.Response, error)

func (*ConnectionEntry) GetCIMPhysicalMemory

func (g *ConnectionEntry) GetCIMPhysicalMemory() (physical.Response, error)

func (*ConnectionEntry) GetCIMPhysicalPackage

func (g *ConnectionEntry) GetCIMPhysicalPackage() (physical.Response, error)

func (*ConnectionEntry) GetCIMPowerManagementService

func (g *ConnectionEntry) GetCIMPowerManagementService() (power.Response, error)

func (*ConnectionEntry) GetCIMProcessor

func (g *ConnectionEntry) GetCIMProcessor() (processor.Response, error)

func (*ConnectionEntry) GetCIMServiceAvailableToElement

func (g *ConnectionEntry) GetCIMServiceAvailableToElement() (service.Response, error)

func (*ConnectionEntry) GetCIMSoftwareIdentity

func (g *ConnectionEntry) GetCIMSoftwareIdentity() (software.Response, error)

func (*ConnectionEntry) GetCIMSystemPackaging

func (g *ConnectionEntry) GetCIMSystemPackaging() (system.Response, error)

func (*ConnectionEntry) GetCIMWiFiEndpointSettings

func (g *ConnectionEntry) GetCIMWiFiEndpointSettings() (wifi.Response, error)

func (*ConnectionEntry) GetCIMWiFiPort

func (g *ConnectionEntry) GetCIMWiFiPort() (wifi.Response, error)

func (*ConnectionEntry) GetCertificates

func (g *ConnectionEntry) GetCertificates() (Certificates, error)

func (*ConnectionEntry) GetConcreteDependencies

func (g *ConnectionEntry) GetConcreteDependencies() ([]concrete.ConcreteDependency, error)

func (*ConnectionEntry) GetCredentialRelationships

func (g *ConnectionEntry) GetCredentialRelationships() (credential.Items, error)

func (*ConnectionEntry) GetEthernetPortSettings

func (g *ConnectionEntry) GetEthernetPortSettings() ([]ethernetport.SettingsResponse, error)

func (*ConnectionEntry) GetEventLog

func (g *ConnectionEntry) GetEventLog() (messagelog.GetRecordsResponse, error)

func (*ConnectionEntry) GetFeatures

func (g *ConnectionEntry) GetFeatures() (dto.Features, error)

func (*ConnectionEntry) GetGeneralSettings

func (g *ConnectionEntry) GetGeneralSettings() (interface{}, error)

func (*ConnectionEntry) GetHardwareInfo

func (g *ConnectionEntry) GetHardwareInfo() (interface{}, error)

func (*ConnectionEntry) GetIPS8021xCredentialContext

func (g *ConnectionEntry) GetIPS8021xCredentialContext() (ipsIEEE8021x.Response, error)

func (*ConnectionEntry) GetIPSAlarmClockOccurrence

func (g *ConnectionEntry) GetIPSAlarmClockOccurrence() (ipsAlarmClock.Response, error)

func (*ConnectionEntry) GetIPSHostBasedSetupService

func (g *ConnectionEntry) GetIPSHostBasedSetupService() (hostbasedsetup.Response, error)

func (*ConnectionEntry) GetIPSIEEE8021xSettings

func (g *ConnectionEntry) GetIPSIEEE8021xSettings() (response ipsIEEE8021x.Response, err error)

func (*ConnectionEntry) GetIPSOptInService

func (g *ConnectionEntry) GetIPSOptInService() (optin.Response, error)

func (*ConnectionEntry) GetIpsOptInService

func (g *ConnectionEntry) GetIpsOptInService() (response optin.Response, err error)

func (*ConnectionEntry) GetLowAccuracyTimeSynch

func (g *ConnectionEntry) GetLowAccuracyTimeSynch() (response timesynchronization.Response, err error)

func (*ConnectionEntry) GetNetworkSettings

func (g *ConnectionEntry) GetNetworkSettings() (interface{}, error)

func (*ConnectionEntry) GetPowerCapabilities

func (g *ConnectionEntry) GetPowerCapabilities() (boot.BootCapabilitiesResponse, error)

func (*ConnectionEntry) GetPowerState

func (*ConnectionEntry) GetPublicKeyCerts

func (g *ConnectionEntry) GetPublicKeyCerts() ([]publickey.PublicKeyCertificateResponse, error)

func (*ConnectionEntry) GetPublicPrivateKeyPairs

func (g *ConnectionEntry) GetPublicPrivateKeyPairs() ([]publicprivate.PublicPrivateKeyPair, error)

func (*ConnectionEntry) GetRedirectionService

func (g *ConnectionEntry) GetRedirectionService() (response redirection.Response, err error)

func (*ConnectionEntry) GetSetupAndConfiguration

func (*ConnectionEntry) GetUserConsentCode

func (g *ConnectionEntry) GetUserConsentCode() (optin.StartOptIn_OUTPUT, error)

func (*ConnectionEntry) GetWiFiPortConfigurationService

func (g *ConnectionEntry) GetWiFiPortConfigurationService() (wifiportconfiguration.WiFiPortConfigurationServiceResponse, error)

func (*ConnectionEntry) GetWiFiSettings

func (g *ConnectionEntry) GetWiFiSettings() ([]wifi.WiFiEndpointSettingsResponse, error)

func (*ConnectionEntry) PUTTLSSettings

func (g *ConnectionEntry) PUTTLSSettings(instanceID string, tlsSettingData tls.SettingDataRequest) (response tls.Response, err error)

func (*ConnectionEntry) PullTLSSettingData

func (g *ConnectionEntry) PullTLSSettingData(enumerationContext string) (response tls.Response, err error)

func (*ConnectionEntry) PutEthernetPortSettings

func (g *ConnectionEntry) PutEthernetPortSettings(ethernetPortSettings ethernetport.SettingsRequest, instanceID string) (ethernetport.Response, error)

func (*ConnectionEntry) PutRedirectionState

func (g *ConnectionEntry) PutRedirectionState(requestedState redirection.RedirectionRequest) (response redirection.Response, err error)

func (*ConnectionEntry) RequestKVMStateChange

func (g *ConnectionEntry) RequestKVMStateChange(requestedState kvm.KVMRedirectionSAPRequestStateChangeInput) (response kvm.Response, err error)

func (*ConnectionEntry) RequestRedirectionStateChange

func (g *ConnectionEntry) RequestRedirectionStateChange(requestedState redirection.RequestedState) (response redirection.Response, err error)

func (*ConnectionEntry) SendConsentCode

func (g *ConnectionEntry) SendConsentCode(code int) (interface{}, error)

func (*ConnectionEntry) SendPowerAction

func (g *ConnectionEntry) SendPowerAction(action int) (power.PowerActionResponse, error)

func (*ConnectionEntry) SetBootConfigRole

func (g *ConnectionEntry) SetBootConfigRole(role int) (interface{}, error)

func (*ConnectionEntry) SetBootData

func (g *ConnectionEntry) SetBootData(data boot.BootSettingDataRequest) (interface{}, error)

func (*ConnectionEntry) SetFeatures

func (g *ConnectionEntry) SetFeatures(features dto.Features) (dto.Features, error)

func (*ConnectionEntry) SetHighAccuracyTimeSynch

func (g *ConnectionEntry) SetHighAccuracyTimeSynch(ta0, tm1, tm2 int64) (response timesynchronization.Response, err error)

func (*ConnectionEntry) UpdateAMTPassword

func (g *ConnectionEntry) UpdateAMTPassword(digestPassword string) (authorization.Response, error)

func (*ConnectionEntry) WiFiRequestStateChange

func (g *ConnectionEntry) WiFiRequestStateChange() (err error)

type GetHWResults

type GetHWResults struct {
	CSPResult       computer.Response
	ChassisResult   chassis.Response
	ChipResult      chip.Response
	CardResult      card.Response
	BiosResult      bios.Response
	ProcessorResult processor.Response
}

type GoWSMANMessages

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

func NewGoWSMANMessages

func NewGoWSMANMessages(log logger.Interface) *GoWSMANMessages

func (GoWSMANMessages) DestroyWsmanClient

func (g GoWSMANMessages) DestroyWsmanClient(device dto.Device)

func (GoWSMANMessages) SetupWsmanClient

func (g GoWSMANMessages) SetupWsmanClient(device dto.Device, isRedirection, logAMTMessages bool) Management

func (GoWSMANMessages) Worker

func (g GoWSMANMessages) Worker()

type HWResults

type HWResults struct {
	CSPResult             computer.Response
	SPPullResult          system.Response
	ChassisResult         chassis.Response
	ChipResult            chip.Response
	CardResult            card.Response
	PhysicalMemoryResult  physical.Response
	MediaAccessPullResult mediaaccess.Response
	PPPullResult          physical.Response
	BiosResult            bios.Response
	ProcessorResult       processor.Response
}

type Management

type Management interface {
	GetAMTVersion() ([]software.SoftwareIdentity, error)
	GetSetupAndConfiguration() ([]setupandconfiguration.SetupAndConfigurationServiceResponse, error)
	GetFeatures() (dto.Features, error)
	SetFeatures(dto.Features) (dto.Features, error)
	GetAlarmOccurrences() ([]ipsAlarmClock.AlarmClockOccurrence, error)
	CreateAlarmOccurrences(name string, startTime time.Time, interval int, deleteOnCompletion bool) (alarmclock.AddAlarmOutput, error)
	DeleteAlarmOccurrences(instanceID string) error
	GetHardwareInfo() (interface{}, error)
	GetPowerState() ([]service.CIM_AssociatedPowerManagementService, error)
	GetPowerCapabilities() (boot.BootCapabilitiesResponse, error)
	GetGeneralSettings() (interface{}, error)
	CancelUserConsentRequest() (interface{}, error)
	GetUserConsentCode() (optin.StartOptIn_OUTPUT, error)
	SendConsentCode(code int) (interface{}, error)
	SendPowerAction(action int) (power.PowerActionResponse, error)
	GetBootData() (boot.BootCapabilitiesResponse, error)
	SetBootData(data boot.BootSettingDataRequest) (interface{}, error)
	SetBootConfigRole(role int) (interface{}, error)
	ChangeBootOrder(bootSource string) (cimBoot.ChangeBootOrder_OUTPUT, error)
	GetAuditLog(startIndex int) (auditlog.Response, error)
	GetEventLog() (messagelog.GetRecordsResponse, error)
	GetNetworkSettings() (interface{}, error)
	GetCertificates() (Certificates, error)
	GetCredentialRelationships() (credential.Items, error)
	GetConcreteDependencies() ([]concrete.ConcreteDependency, error)
}

type NetworkResults

type NetworkResults struct {
	EthernetPortSettingsResult []ethernetport.SettingsResponse
	IPSIEEE8021xSettingsResult ipsIEEE8021x.IEEE8021xSettingsResponse
	WiFiSettingsResult         []wifi.WiFiEndpointSettingsResponse
	CIMIEEE8021xSettingsResult cimIEEE8021x.PullResponse
}

type PullHWResults

type PullHWResults struct {
	SPPullResult          system.Response
	PhysicalMemoryResult  physical.Response
	MediaAccessPullResult mediaaccess.Response
	PPPullResult          physical.Response
}

Jump to

Keyboard shortcuts

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