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)
Click to show internal directories.
Click to hide internal directories.