cloudletssh

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cloudletssh provides for a shareable, on-demand provider of signed ssh keys.

Index

Constants

This section is empty.

Variables

View Source
var RefreshInlineBufferDuration = time.Minute
View Source
var RefreshLazyBufferDuration = 2 * time.Hour
View Source
var SignSSHKeyTimeout = 30 * time.Second

Functions

This section is empty.

Types

type KeySigner

type KeySigner interface {
	// SignSSHKey signs the user's public key and returns a signed ssh certificate
	SignSSHKey(ctx context.Context, publicKey string) (string, error)
}

KeySigner is used to sign the user's public key

type SSHKey

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

SSHKey provides on-demand signed ssh certificates for authenticating with VMs created by the platform.

func NewSSHKey

func NewSSHKey(signer KeySigner) *SSHKey

func (*SSHKey) GetKeyPairs

func (s *SSHKey) GetKeyPairs(ctx context.Context) ([]ssh.KeyPair, error)

func (*SSHKey) GetKeyPairsCb

func (s *SSHKey) GetKeyPairsCb(ctx context.Context) func() ([]ssh.KeyPair, error)

Jump to

Keyboard shortcuts

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