Documentation
¶
Index ¶
- Constants
- func FilterVCSEnvironments(environments map[string]VCSEnvironment, pattern string) (map[string]VCSEnvironment, error)
- func GenerateCron(schedule, seed string) string
- func GetChannel(platform api.Platform, repo api.Repository) string
- func RemoveEnvByName(env []catalog.ActionAccessEnv, namesToRemove []string) []catalog.ActionAccessEnv
- type VCSEnvironment
Constants ¶
View Source
const ( BranchName = "ci/cid-workflow" ConfigFileName = "cid.yml" MergeRequestId = "cid-workflow" )
Variables ¶
This section is empty.
Functions ¶
func FilterVCSEnvironments ¶
func FilterVCSEnvironments(environments map[string]VCSEnvironment, pattern string) (map[string]VCSEnvironment, error)
func GenerateCron ¶
GenerateCron returns a cron expression based on a schedule ("daily", "weekly", ...) and a seed for deterministic spread.
func GetChannel ¶
func GetChannel(platform api.Platform, repo api.Repository) string
GetChannel returns the channel of a given repository
func RemoveEnvByName ¶
func RemoveEnvByName(env []catalog.ActionAccessEnv, namesToRemove []string) []catalog.ActionAccessEnv
Types ¶
type VCSEnvironment ¶
type VCSEnvironment struct {
Env api.CIEnvironment
Vars []api.CIVariable
}
Click to show internal directories.
Click to hide internal directories.