Help us shape the future of Go! Take the 2026 Go Developer Survey

token

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DevsyAdminKind = "DevsyAdmin"

Variables

This section is empty.

Functions

This section is empty.

Types

type Devsy

type Devsy struct {
	// The UID of the user or team that this token is for
	UID string `json:"uid,omitempty"`
	// The kubernetes name of the user or team that this token is signed for
	Name string `json:"name,omitempty"`
	// The kind of the entity (either User or Team)
	Kind string `json:"kind,omitempty"`
	// The generation of the token
	Gen int64 `json:"gen,omitempty"`
	// The requester name of the token
	OriginalRequester *user.DefaultInfo `json:"originalRequester,omitempty"`
	// The scope of the token if there is any
	Scope *storagev1.AccessKeyScope `json:"scope,omitempty"`
}

type PrivateClaims

type PrivateClaims struct {
	Devsy Devsy `json:"devsy.sh,omitzero"`
}

Jump to

Keyboard shortcuts

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