Versions in this module Expand all Collapse all v0 v0.4.0 Nov 13, 2026 Changes in this version + type Claims struct + BuildID string + RepoAccess []RepoPermission + Repositories []string + Scope string + func (c *Claims) GetRepoScope(repo string) string + func (c *Claims) IsPullAllowed() bool + func (c *Claims) IsPullAllowedForRepo(repo string) bool + func (c *Claims) IsPushAllowed() bool + func (c *Claims) IsPushAllowedForRepo(repo string) bool + func (c *Claims) IsRepositoryAllowed(repo string) bool + type Generator struct + func NewGenerator(secret string) *Generator + func (g *Generator) GeneratePushToken(buildID string, repos []string, ttl time.Duration) (string, error) + func (g *Generator) GenerateToken(buildID string, repoAccess []RepoPermission, ttl time.Duration) (string, error) + func (g *Generator) ValidateToken(tokenString string) (*Claims, error) + type RepoPermission struct + Repo string + Scope string