routes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

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

func New

func New(c *cli.Context) *Route

func (*Route) Exec

func (r *Route) Exec() error

func (*Route) FetchKeys

func (r *Route) FetchKeys(proto usecase.GitProto, username string) []string

Call out to a subcommand to handle the specified protocol and username

func (*Route) ImportKeys

func (r *Route) ImportKeys(proto usecase.GitProto, username string) []string

Import keys from service at 'proto' for 'username', appending to output file

func (*Route) KeyFingerprint

func (r *Route) KeyFingerprint(fields []string) string

Get the fingerprint for an SSH public key Returns None if not valid key material

func (*Route) KeyList

func (r *Route) KeyList(fields []string) []string

Return a list of uniquely identified keys

func (*Route) ReadKeyfile

func (r *Route) ReadKeyfile() []string

Locate key file, read the current state, return lines in a list

func (*Route) RemoveKeys

func (r *Route) RemoveKeys(proto usecase.GitProto, username string) []string

Remove keys from the output file, if they were inserted by this tool

func (*Route) UserAgent

func (r *Route) UserAgent() string

Construct a useful user agent string

func (*Route) WriteKeyfile

func (r *Route) WriteKeyfile(keyfile_lines []string, flag int)

Locate key file, write lines to it

Jump to

Keyboard shortcuts

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