Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenPrivateKey ¶
func GenPrivateKey(t *testing.T) *rsa.PrivateKey
func ToPEM ¶
func ToPEM(pk *rsa.PrivateKey) []byte
Types ¶
type MockAuthEndpoint ¶
type MockAuthEndpoint struct {
PK *rsa.PrivateKey
Token string
}
func (*MockAuthEndpoint) ServeHTTP ¶
func (m *MockAuthEndpoint) ServeHTTP(w http.ResponseWriter, req *http.Request)
type MockTarget ¶
type MockTarget struct {
ExpectedAuthZ string
}
func (*MockTarget) ServeHTTP ¶
func (m *MockTarget) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.