test

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Public  ed25519.PublicKey
	Private ed25519.PrivateKey
	Cert    *x509.Certificate
	Certpem *pem.Block
	Keypem  *pem.Block
}

func MkKey

func MkKey(t *testing.T, cakey *Key) Key

type MockFS added in v0.3.1

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

func NewMockFS added in v0.3.1

func NewMockFS() *MockFS

func (*MockFS) Add added in v0.3.1

func (fs *MockFS) Add(name string, file *fstest.MapFile) error

func (*MockFS) Copy added in v0.3.1

func (fs *MockFS) Copy() (*MockFS, error)

func (*MockFS) Open added in v0.3.1

func (fs *MockFS) Open(name string) (fs.File, error)

func (*MockFS) Remove added in v0.3.1

func (fs *MockFS) Remove(name string) error

type SwTpmProcess added in v0.3.2

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

func SpawnSwTpm added in v0.3.2

func SpawnSwTpm() (*SwTpmProcess, error)

func (*SwTpmProcess) Close added in v0.3.2

func (p *SwTpmProcess) Close()

func (*SwTpmProcess) TPM added in v0.3.2

func (p *SwTpmProcess) TPM() *tss.TPM

Jump to

Keyboard shortcuts

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