Affected by GO-2022-0812
and 2 other vulnerabilities
GO-2022-0812: Reject unauthorized access with GitHub PATs in github.com/go-vela/server
GO-2022-1100: Vela Insecure Defaults in github.com/go-vela/server
GO-2024-2648: Server/API for Vela Insecure Variable Substitution in github.com/go-vela/server
package
Version:
v0.7.3
Opens a new window with list of versions in this module.
Published: Feb 19, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package repo provides the ability for inserting
Vela repo resources into or extracting Vela repo
resources from the middleware chain for the API.
Usage:
import "github.com/go-vela/server/router/middleware/repo"
Establish sets the repo in the given context.
FromContext returns the Repo associated with this context.
Retrieve gets the repo in the given context.
ToContext adds the Repo to this context if it supports
the Setter interface.
type Setter interface {
Set(string, interface{})
}
Setter defines a context that enables setting values.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.