claims

package
v0.0.0-...-f0b9b21 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerClaims

type RunnerClaims struct {
	IssuedAt  time.Time `json:"iat,omitempty"`
	ExpiresAt time.Time `json:"exp,omitempty"`

	Name     string `json:"n"`
	User     string `json:"us"`
	Docker   bool   `json:"dkr"`
	Hostname string `json:"hst"`
	Ident    string `json:"idt"`
}

RunnerClaims implements the jwt.Claims interface.

func (*RunnerClaims) Valid

func (r *RunnerClaims) Valid() (err error)

Valid validates the Runner claims. Validations occuring are ExpiredAt & IssuedAt.

Jump to

Keyboard shortcuts

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