types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 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 MemoryTokenStore

type MemoryTokenStore struct {
	Tokens map[string]string
}

func NewMemoryTokenStore

func NewMemoryTokenStore() *MemoryTokenStore

func (*MemoryTokenStore) Get

func (s *MemoryTokenStore) Get(sessionID string) string

func (*MemoryTokenStore) Set

func (s *MemoryTokenStore) Set(sessionID, value string)

type SSHSessionOauthHandler

type SSHSessionOauthHandler interface {
	HandleAuth(w http.ResponseWriter, r *http.Request)
	HandleAuthCallback(w http.ResponseWriter, r *http.Request)
	HandleUser(w http.ResponseWriter, r *http.Request)
	SSHSessionCommandHandler(ssh.Session, *exec.Cmd) error
}

type TokenStore

type TokenStore interface {
	Get(sessionID string) string
	Set(sessionID, value string)
}

Jump to

Keyboard shortcuts

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