Documentation
¶
Overview ¶
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package config provides functionality to load configurations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoConfig ¶
type RepoConfig struct { Address string `yaml:"address"` Name string `yaml:"name"` Type string `yaml:"type"` BaseCPE string `yaml:"base_cpe"` BranchVersioning bool `yaml:"branch_versioning,omitempty"` HashAllCommits bool `yaml:"hash_all_commits,omitempty"` FileExts []string `yaml:"file_extensions"` }
RepoConfig holds the configuration for a single repository.
func Load ¶
func Load(ctx context.Context, cfgBucket *storage.BucketHandle) ([]*RepoConfig, error)
Load loads the repository configurations from the provided bucket.