githubauth

package
v0.0.0-...-9f83147 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTeamMember

func IsTeamMember(permissions *ssh.Permissions, organization, team string) bool

Types

type GithubAuthorizer

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

func NewGithubAuthorizer

func NewGithubAuthorizer(token, organization string, teams ...string) (*GithubAuthorizer, error)

func (GithubAuthorizer) Authorize

func (ga GithubAuthorizer) Authorize(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error)

Jump to

Keyboard shortcuts

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