ssh

package
v1.295.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(NewAlgo),
)

Module for fx.

Functions

func Generate

func Generate() (string, string, error)

Generate key pair with ssh.

func IsEnabled

func IsEnabled(cfg *Config) bool

IsEnabled for ssh.

Types

type Algo

type Algo interface {
	algo.Signer
}

Algo for ssh.

func NewAlgo

func NewAlgo(cfg *Config) (Algo, error)

NewAlgo for ssh.

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.

Jump to

Keyboard shortcuts

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