tui

package
v3.13.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Out io.Writer = io.Discard
	Err io.Writer = io.Discard
)
View Source
var (
	InfoStyle    = color.New(color.FgCyan, color.BgBlack, color.Bold).SprintFunc()
	SuccessStyle = color.New(color.FgGreen, color.BgBlack, color.Bold).SprintFunc()
	FailureStyle = color.New(color.FgRed, color.BgBlack, color.Bold).SprintFunc()
	LinkStyle    = color.New(color.Underline).SprintFunc()
)

styles

View Source
var (
	CheckMark = "✔"
	Cross     = "✘"
)

platform dependent strings

Functions

func DumpErr

func DumpErr()

func Init

func Init(noColor bool)

func SetUIState

func SetUIState(state UIState)

SetUIState globally sets the state and thus choses the view that should render

func ShowAppraisalLink(link string)

Types

type Spinner

type Spinner struct {
	Spinner  *spinner.Spinner
	Current  string
	Callback func(string)
}

type UIState

type UIState uint32
const (
	StCollectFirmwareInfo UIState = iota
	StQuotePCR
	StSendEvidence
	StAttestationSuccess
	StAttestationRunning
	StAttestationFailed
	StSelectTASuccess
	StSelectTAFailed
	StCreateKeys
	StEnrollKeys
	StEnrollSuccess
	StEnrollFailed
	StNoRoot
	StDeviceVulnerable
	StDeviceTrusted
	StChainAllGood
	StChainFailSupplyChain
	StChainFailConfiguration
	StChainFailFirmware
	StChainFailBootloader
	StChainFailOperatingSystem
	StChainFailEndpointProtection
	StTscUnsupported
	StEppUnsupported
)

Jump to

Keyboard shortcuts

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