Documentation
¶
Index ¶
- Constants
- func AddHashValueRequirement(selector labels.Selector, key, name string) (labels.Selector, error)
- func IsPodReady(pod *corev1.Pod) bool
- func NameHash(name string) string
- func ParseBearerToken(headerValue string) (string, error)
- func SelectorWithHashValue(key, name string) (labels.Selector, error)
- type Claims
- type Header
- type Signer
- type SignerConfig
- type Verifier
- type VerifierConfig
Constants ¶
View Source
const ( PoolLabel = "agentland.fl0rencess720.app/pool" ProfileHashLabel = "agentland.fl0rencess720.app/profile-hash" SandboxLabel = "agentland.fl0rencess720.app/sandbox-name-hash" ClaimUIDLabel = "agentland.fl0rencess720.app/claim-uid" PodNameAnnotation = "agentland.fl0rencess720.app/pod-name" PoolBackfillTouchAnnotation = "agentland.fl0rencess720.app/pool-backfill-touch-at" )
View Source
const ( DefaultRequeueInterval = 500 * time.Millisecond ConflictRequeueInterval = 100 * time.Millisecond FallbackRequeueInterval = 2 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func AddHashValueRequirement ¶
func IsPodReady ¶
func ParseBearerToken ¶
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
func NewSignerFromConfig ¶
func NewSignerFromConfig(cfg SignerConfig) (*Signer, error)
type SignerConfig ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func NewVerifierFromConfig ¶
func NewVerifierFromConfig(cfg VerifierConfig) (*Verifier, error)
Click to show internal directories.
Click to hide internal directories.