auth

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 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 Authorizer

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

func NewAuthorizer

func NewAuthorizer(cfg *config.Configuration) (*Authorizer, error)

func (*Authorizer) GetEndpointById

func (a *Authorizer) GetEndpointById(id string) (*Endpoint, error)

func (*Authorizer) GetEndpointByToken

func (a *Authorizer) GetEndpointByToken(token string) (*Endpoint, error)

func (*Authorizer) GetEndpoints

func (a *Authorizer) GetEndpoints() []*Endpoint

func (*Authorizer) IsPermitted

func (a *Authorizer) IsPermitted(path string, token string) error

func (*Authorizer) UpdateRequest

func (a *Authorizer) UpdateRequest(ctx context.Context, req *http.Request, token string) (*http.Request, *url.URL, error)

type Endpoint

type Endpoint struct {
	Token      string
	Namespaces []string
	SecretName string
	// contains filtered or unexported fields
}

func (*Endpoint) ID

func (e *Endpoint) ID() string

type GitHubTokenSource

type GitHubTokenSource interface {
	Token(ctx context.Context) (string, error)
}

type Provider

type Provider interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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