Documentation ¶
Overview ¶
Package cmd contains a CLI to interact with TPM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExternalTPM io.ReadWriter
ExternalTPM can be set to run tests against an TPM initialized by an external package (like the simulator). Setting this value will make all gotpm commands run against it, and will prevent the cmd package from closing the TPM. Setting this value and closing the TPM must be managed by the external package.
View Source
var RootCmd = &cobra.Command{ Use: "gotpm", Long: `Command line tool for the go-tpm TSS This tool allows performing TPM2 operations from the command line. See the per-command documentation for more information.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if quiet && verbose { return fmt.Errorf("cannot specify both --quiet and --verbose") } cmd.SilenceUsage = true return nil }, }
RootCmd is the entrypoint for gotpm.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.