Documentation ¶
Index ¶
- Constants
- Variables
- func GetRouter(metricsListenAddress string, webHandler Handlers, withMetrics bool) *gin.Engine
- func GinLogger() gin.HandlerFunc
- func HealthCheckEndpoint(c *gin.Context)
- func LookupKey(keyID string) (interface{}, error)
- func PingEndpoint(c *gin.Context)
- func XForwardedProto(defaultScheme string) gin.HandlerFunc
- type ContentRange
- type FinishCacheRequest
- type Handlers
- type StartCacheRequest
- type StartCacheResponse
- type WellKnownData
Constants ¶
View Source
const JWTWellKnown = "https://token.actions.githubusercontent.com/.well-known/openid-configuration"
Variables ¶
View Source
var (
ErrContentRange = errors.New("invalid content-range header")
)
Functions ¶
func GinLogger ¶
func GinLogger() gin.HandlerFunc
func HealthCheckEndpoint ¶
func PingEndpoint ¶
func XForwardedProto ¶
func XForwardedProto(defaultScheme string) gin.HandlerFunc
Types ¶
type ContentRange ¶
func ParseContentRange ¶
func ParseContentRange(value string) (ContentRange, error)
type FinishCacheRequest ¶
type FinishCacheRequest struct {
Size int64 `json:"size"`
}
type Handlers ¶
func (*Handlers) ArchivePath ¶
func (*Handlers) AuthRequired ¶
func (h *Handlers) AuthRequired() gin.HandlerFunc
func (*Handlers) FinishCache ¶
func (*Handlers) SearchCache ¶
func (*Handlers) StartCache ¶
func (*Handlers) UploadCache ¶
type StartCacheRequest ¶
type StartCacheResponse ¶
type StartCacheResponse struct {
CacheID int `json:"cacheId"`
}
type WellKnownData ¶
type WellKnownData struct { SignatureTypes []string `json:"id_token_signing_alg_values_supported"` JWKSURI string `json:"jwks_uri"` }
func GetWellKnownData ¶
func GetWellKnownData() (WellKnownData, error)
Click to show internal directories.
Click to hide internal directories.