appcommon

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func GenerateCron(schedule, seed string) string

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL