platform

package
v0.0.0-...-92791ed Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TcpConfig

type TcpConfig struct {
	// Address is the full connection string for the running platform.
	Address string
}

TcpConfig represents connection options for connecting to a running platform via TCP (e.g., the Microsoft reference TPM 2.0 simulator).

type TcpPlatform

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

TcpPlatform is a connection to the running TCP platform.

func OpenTcpPlatform

func OpenTcpPlatform(c *TcpConfig) (*TcpPlatform, error)

OpenTcpPlatform opens a connection to the running TCP platform.

func (TcpPlatform) Close

func (p TcpPlatform) Close() error

Close closes the connection to the running platform.

func (TcpPlatform) NVOff

func (p TcpPlatform) NVOff() error

NVOff disables NV access.

func (TcpPlatform) NVOn

func (p TcpPlatform) NVOn() error

NVOn enables NV access.

func (TcpPlatform) PowerOff

func (p TcpPlatform) PowerOff() error

PowerOff powers off the platform.

func (TcpPlatform) PowerOn

func (p TcpPlatform) PowerOn() error

PowerOn powers on the platform.

Jump to

Keyboard shortcuts

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