Documentation
¶
Index ¶
- type Authorizer
- func (a *Authorizer) GetEndpointById(id string) (*Endpoint, error)
- func (a *Authorizer) GetEndpointByToken(token string) (*Endpoint, error)
- func (a *Authorizer) GetEndpoints() []*Endpoint
- func (a *Authorizer) IsPermitted(path string, token string) error
- func (a *Authorizer) UpdateRequest(ctx context.Context, req *http.Request, token string) (*http.Request, *url.URL, error)
- type Endpoint
- type GitHubTokenSource
- type Provider
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
type Endpoint ¶
type GitHubTokenSource ¶
Click to show internal directories.
Click to hide internal directories.