Documentation
¶
Overview ¶
Package features sets the feature gates that source-controller supports, and their default states.
Index ¶
Constants ¶
View Source
const ( // GitForcePushBranch enables the use of "force push" when push branches // are configured. GitForcePushBranch = "GitForcePushBranch" // ForceGoGitImplementation ignores the value set for gitImplementation // of a GitRepository object and ensures that go-git is used for all git operations. // // When enabled, libgit2 won't be initialized, nor will any git2go cgo // code be called. ForceGoGitImplementation = "ForceGoGitImplementation" )
Variables ¶
This section is empty.
Functions ¶
func Enabled ¶
Enabled verifies whether the feature is enabled or not.
This is only a wrapper around the Enabled func in pkg/runtime/features, so callers won't need to import both packages for checking whether a feature is enabled.
func FeatureGates ¶
DefaultFeatureGates contains a list of all supported feature gates and their default values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.