ghssh

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Timeout time.Duration
	// contains filtered or unexported fields
}

Cache is a disk-backed GitHub SSH public key cache.

func New

func New() (*Cache, error)

New creates a new github cache.

func (*Cache) ListKeys

func (c *Cache) ListKeys(ctx context.Context, user string) ([]string, error)

ListKeys returns the public keys for a github user. It will cache results up the a configurable amount of time (default: 6h).

Jump to

Keyboard shortcuts

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