handler

package
v0.0.0-...-cb90f35 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerPassword

func DockerPassword(w http.ResponseWriter, r *http.Request)

DockerPassword

func DockerToken

func DockerToken(w http.ResponseWriter, r *http.Request)

DockerToken

func RefreshProfile

func RefreshProfile(w http.ResponseWriter, r *http.Request)

RefreshProfile extracts the latest user information from an id token

Types

type DockerScope

type DockerScope struct {
	Type    string   `json:"type"`
	Name    string   `json:"name"`
	Actions []string `json:"actions"`
}

DockerScope is part of the claims and represents allowed actions

type DockerSetPassword

type DockerSetPassword struct {
	Password string `json:"password"`
}

type DockerSetPasswordResponse

type DockerSetPasswordResponse struct {
	Username    string `json:"username"`
	PasswordSet bool   `json:"passwordSet"`
}

type UnauthorizedError

type UnauthorizedError struct {
}

func (UnauthorizedError) Error

func (e UnauthorizedError) Error() string

Jump to

Keyboard shortcuts

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