ghssh

package
v1.15.13 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 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).

func (*Cache) String added in v1.15.1

func (c *Cache) String() string

Jump to

Keyboard shortcuts

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