lekko

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Relevant headers used for auth with lekko.
	LekkoTeamHeaderKey     string = "X-Lekko-Team"
	GithubOAuthHeaderKey   string = "X-Github-Token"
	GithubUserHeaderKey    string = "X-Github-User"
	AuthorizationHeaderKey string = "Authorization"
	URL                    string = "https://prod.api.lekko.dev"
)

Variables

This section is empty.

Functions

func NewUserAuthInterceptor

func NewUserAuthInterceptor(a AuthCredentials) connect.UnaryInterceptorFunc

Types

type AuthCredentials

type AuthCredentials interface {
	GetLekkoUsername() string
	GetLekkoToken() string
	HasLekkoToken() bool
	GetLekkoTeam() string
	GetGithubToken() string
	GetGithubUser() string
	HasGithubToken() bool
}

Jump to

Keyboard shortcuts

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