Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Notary service Notary = "harbor-notary" // Registry service Registry = "harbor-registry" )
Variables ¶
This section is empty.
Functions ¶
func GetResourceActions ¶
func GetResourceActions(scopes []string) []*token.ResourceActions
GetResourceActions ...
func InitCreators ¶
func InitCreators()
InitCreators initialize the token creators for different services
Types ¶
type Creator ¶
Creator creates a token ready to be served based on the http request.
type Handler ¶
type Handler struct {
beego.Controller
}
Handler handles request on /service/token, which is the auth provider for registry.
Source Files
¶
- authutils.go
- creator.go
- token.go
Click to show internal directories.
Click to hide internal directories.