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 ¶
type Creator interface { // 为 docker pull/push 创建 token 信息 Create(r *http.Request) (*models.Token, error) }
Creator creates a token ready to be served based on the http request. 为 http 请求创建 token 服务
type Handler ¶
type Handler struct {
beego.Controller
}
Handler handles request on /service/token, which is the auth provider for registry.
Click to show internal directories.
Click to hide internal directories.