auth

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string
	Auth     []ssh.AuthMethod
}

func New

func New(username string, options ...Option) (*Auth, error)

type Option

type Option func(*Auth) error

func Key

func Key(r io.Reader) Option

func KeyWithPassphrase

func KeyWithPassphrase(r io.Reader, passphrase string) Option

func Password

func Password(password string) Option

Jump to

Keyboard shortcuts

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