key

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package key manages the authorized keys file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(login, public string) error

Add adds an ssh key to the `authorized_keys` file.

func Delete

func Delete(public string) error

Delete removes the key.

func Fetch

func Fetch(login, nickname, username string) string

Fetch fetches keys and adds them.

func List

func List(login string) ([]string, error)

List returns a list of ssh keys for this user.

Types

This section is empty.

Source Files

  • key.go

Jump to

Keyboard shortcuts

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