ssh

package
v1.383.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled

func IsEnabled(cfg *Config) bool

IsEnabled for ssh.

Types

type Config

type Config struct {
	Public  string `yaml:"public,omitempty" json:"public,omitempty" toml:"public,omitempty"`
	Private string `yaml:"private,omitempty" json:"private,omitempty" toml:"private,omitempty"`
}

Config for ssh.

func (*Config) PrivateKey added in v1.214.1

func (c *Config) PrivateKey() (ed25519.PrivateKey, error)

PrivateKey ssh.

func (*Config) PublicKey added in v1.214.1

func (c *Config) PublicKey() (ed25519.PublicKey, error)

PublicKey ssh.

type Generator added in v1.367.0

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

Generator for ssh.

func NewGenerator added in v1.367.0

func NewGenerator(gen *rand.Generator) *Generator

NewGenerator for ssh.

func (*Generator) Generate added in v1.367.0

func (g *Generator) Generate() (pub string, pri string, err error)

Generate key pair with ssh.

type Signer added in v1.367.0

type Signer interface {
	algo.Signer
}

Signer for ssh.

func NewSigner added in v1.367.0

func NewSigner(cfg *Config) (Signer, error)

NewSigner for ssh.

Jump to

Keyboard shortcuts

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