v2

package
v0.0.0-...-9471f5d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Issuer is the only valid issuer for jwt token sent to /v2/xxxx
	Issuer = "harbor-token-issuer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	jwt.RegisteredClaims
	Access []*token.ResourceActions `json:"access"`
}

Claims represents the token claims that encapsulated in a JWT token for registry/notary resources

func (*Claims) Valid

func (c *Claims) Valid() error

Valid checks if the issuer is harbor

Jump to

Keyboard shortcuts

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