cache

package
v0.0.0-...-0eaac27 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New

func New(serverroot string) *Cache

func (*Cache) Close

func (c *Cache) Close()

func (*Cache) CloseAK

func (c *Cache) CloseAK(k *attest.AK)

func (*Cache) GetAK

func (c *Cache) GetAK() (*attest.AK, error)

func (*Cache) GetIntermediateCertificate

func (c *Cache) GetIntermediateCertificate() (string, error)

func (*Cache) GetIntermediateCertificateUsername

func (c *Cache) GetIntermediateCertificateUsername() (string, error)

func (*Cache) GetSSHCert

func (c *Cache) GetSSHCert(servername string) (string, string, error)

func (*Cache) GetTPM

func (c *Cache) GetTPM() *attest.TPM

func (*Cache) SaveIntermediateCertificate

func (c *Cache) SaveIntermediateCertificate(rawtoken string) error

func (*Cache) SaveSSHCert

func (c *Cache) SaveSSHCert(servername string, privkey, pubcert []byte) error

func (*Cache) SetIntermediatePublicKey

func (c *Cache) SetIntermediatePublicKey(pkcs1key []byte)

func (*Cache) SetSSHPublicKey

func (c *Cache) SetSSHPublicKey(stringkey string)

Jump to

Keyboard shortcuts

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