stash

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: BSD-3-Clause Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrivateKey

func ParsePrivateKey(data []byte) (*rsa.PrivateKey, error)

ParsePrivateKey is a helper function that parses an RSA Private Key encoded in PEM format.

func ParsePrivateKeyFile

func ParsePrivateKeyFile(path string) (*rsa.PrivateKey, error)

ParsePrivateKeyFile is a helper function that parses an RSA Private Key file encoded in PEM format.

Types

type Config

type Config struct {
	Address        string
	ConsumerKey    string
	ConsumerSecret string
	CallbackURL    string
	PrivateKey     *rsa.PrivateKey
	Client         *http.Client
}

Config configures the Bitbucket Server (Stash) authorization middleware.

func (*Config) Handler

func (c *Config) Handler(h http.Handler) http.Handler

Handler returns a http.Handler that runs h at the completion of the GitHub authorization flow. The GitHub authorization details are available to h in the http.Request context.

Jump to

Keyboard shortcuts

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