auth

package

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