auth

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Service = "tke"
	Issuer  = "tke-registry-token-issuer"
)
View Source
const Path = "/registry/auth"

Path is the authorization server url for distribution.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(opts *Options) (http.Handler, error)

NewHandler creates a new handler object and returns it.

Types

type Options

type Options struct {
	SecurityConfig  *registryconfig.Security
	OIDCIssuerURL   string
	OIDCCAFile      string
	TokenReviewPath string
	DomainSuffix    string
	DefaultTenant   string
	LoopbackConfig  *restclient.Config
}

Options defines the configuration of distribution auth handler.

type Token

type Token struct {
	Token       string `json:"token"`
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
	IssuedAt    string `json:"issued_at"`
}

Token represents the json returned by registry token service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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