Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UploadPackFilter enables partial clones by sending uploadpack.allowFilter and uploadpack.allowAnySHA1InWant // to upload-pack UploadPackFilter = "upload_pack_filter" // LinguistFileCountStats will invoke an additional git-linguist command to get the number of files per language LinguistFileCountStats = "linguist_file_count_stats" // HooksRPC will invoke update, pre receive, and post receive hooks by using RPCs HooksRPC = "hooks_rpc" // CacheInvalidator controls the tracking of repo state via gRPC // annotations (i.e. accessor and mutator RPC's). This enables cache // invalidation by changing state when the repo is modified. CacheInvalidator = "cache_invalidator" )
View Source
const (
// HooksRPCEnvVar is the name of the environment variable we use to pass the feature flag down into gitaly-hooks
HooksRPCEnvVar = "GITALY_HOOK_RPCS_ENABLED"
)
Variables ¶
This section is empty.
Functions ¶
func ContextWithFeatureFlag ¶ added in v1.67.0
ContextWithFeatureFlag is used in tests to enablea a feature flag in the context metadata
func IsDisabled ¶
IsDisabled is the inverse operation of IsEnabled
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.