credential

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: EUPL-1.2 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileKeyProvider

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

func NewFileKeyProvider

func NewFileKeyProvider(keyPath, passphrase string) (*FileKeyProvider, error)

func (*FileKeyProvider) Close

func (p *FileKeyProvider) Close() error

func (*FileKeyProvider) GetAuthMethod

func (p *FileKeyProvider) GetAuthMethod(ctx context.Context, user, host, port string) (ssh.AuthMethod, error)

func (*FileKeyProvider) PublicKey

func (p *FileKeyProvider) PublicKey() ssh.PublicKey

func (*FileKeyProvider) Signer

func (p *FileKeyProvider) Signer() ssh.Signer

type Provider

type Provider interface {
	GetAuthMethod(ctx context.Context, user, host, port string) (ssh.AuthMethod, error)

	Signer() ssh.Signer

	PublicKey() ssh.PublicKey

	Close() error
}

type TPMKeyProvider

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

func NewTPMKeyProvider

func NewTPMKeyProvider(devicePath, blobPath string, opts *tpm.KeyOptions) (*TPMKeyProvider, error)

func (*TPMKeyProvider) Close

func (p *TPMKeyProvider) Close() error

func (*TPMKeyProvider) GetAuthMethod

func (p *TPMKeyProvider) GetAuthMethod(ctx context.Context, user, host, port string) (ssh.AuthMethod, error)

func (*TPMKeyProvider) PublicKey

func (p *TPMKeyProvider) PublicKey() ssh.PublicKey

func (*TPMKeyProvider) Signer

func (p *TPMKeyProvider) Signer() ssh.Signer

Jump to

Keyboard shortcuts

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