Documentation ¶
Index ¶
- func CombineConfigs(a, b *v1alpha1.RepositoryConfig) *v1alpha1.RepositoryConfig
- func ConfigMerge(cfg *config.Config, pluginsCfg *plugins.Configuration, ...) error
- func RemoveStringArrayAtIndex(s []string, index int) []string
- func StringArrayIndex(array []string, value string) int
- func ToApprove(r *v1alpha1.Approve, repoKey string) plugins.Approve
- func ToBrancher(r v1alpha1.Brancher) config.Brancher
- func ToJobBase(r v1alpha1.JobBase) config.JobBase
- func ToPostsubmit(r v1alpha1.Postsubmit) config.Postsubmit
- func ToPresubmit(r v1alpha1.Presubmit) config.Presubmit
- func ToRegexpChangeMatcher(r v1alpha1.RegexpChangeMatcher) config.RegexpChangeMatcher
- func ToReporter(r v1alpha1.Reporter) config.Reporter
- func ToUtilityConfig(r v1alpha1.UtilityConfig) config.UtilityConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineConfigs ¶
func CombineConfigs(a, b *v1alpha1.RepositoryConfig) *v1alpha1.RepositoryConfig
CombineConfigs combines the two configurations together from multiple files
func ConfigMerge ¶
func ConfigMerge(cfg *config.Config, pluginsCfg *plugins.Configuration, repoConfig *v1alpha1.RepositoryConfig, repoOwner string, repoName string) error
ConfigMerge merges the repository configuration into the global configuration
func RemoveStringArrayAtIndex ¶
RemoveStringArrayAtIndex removes an item at a given index
func StringArrayIndex ¶
StringArrayIndex returns the index in the slice which equals the given value
func ToBrancher ¶
ToBrancher converts the repo config to the lighthouse config resource
func ToPostsubmit ¶
func ToPostsubmit(r v1alpha1.Postsubmit) config.Postsubmit
ToPostsubmit converts the repo config to the lighthouse config resource
func ToPresubmit ¶
ToPresubmit converts the repo config to the lighthouse config resource
func ToRegexpChangeMatcher ¶
func ToRegexpChangeMatcher(r v1alpha1.RegexpChangeMatcher) config.RegexpChangeMatcher
ToRegexpChangeMatcher converts the repo config to the lighthouse config resource
func ToReporter ¶
ToReporter converts the repo config to the lighthouse config resource
func ToUtilityConfig ¶
func ToUtilityConfig(r v1alpha1.UtilityConfig) config.UtilityConfig
ToUtilityConfig converts the repo config to the lighthouse config resource
Types ¶
This section is empty.