sourceconfigs

package
v0.23.8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SourceConfigFile = filepath.Join(".jx", "gitops", v1alpha1.SourceConfigFileName)

Functions

func DefaultConfigValues

func DefaultConfigValues(config *v1alpha1.SourceConfig) error

DefaultConfigValues defaults values from the given config, group and repository if they are missing

func DefaultGroupValues

func DefaultGroupValues(config *v1alpha1.SourceConfig, groups []v1alpha1.RepositoryGroup) error

DefaultGroupValues defaults values from the given config, group and repository if they are missing

func DefaultSlackNotify

func DefaultSlackNotify() *v1alpha1.SlackNotify

func DefaultValues

func DefaultValues(config *v1alpha1.SourceConfig, group *v1alpha1.RepositoryGroup, repo *v1alpha1.Repository) error

DefaultValues defaults values from the given config, group and repository if they are missing

func DryConfig

func DryConfig(config *v1alpha1.SourceConfig)

func EnrichConfig

func EnrichConfig(config *v1alpha1.SourceConfig)

EnrichConfig ensures everything is populated

func FindSettings

func FindSettings(config *v1alpha1.SourceConfig, owner, repoName string) *jxcore.SettingsConfig

FindSettings finds the settings for the given owner and repository name

func GetFilteredGroups added in v0.7.28

func GetFilteredGroups(groups []v1alpha1.RepositoryGroup, gitKind, gitServerURL, owner string) []v1alpha1.RepositoryGroup

GetFilteredGroups get the groups for the given git kind & server URL if specified and owner

func GetOrCreateGroup

func GetOrCreateGroup(config *v1alpha1.SourceConfig, gitKind, gitServerURL, owner string) *v1alpha1.RepositoryGroup

GetOrCreateGroup get or create the group for the given name

func GetOrCreateJenkinsServer

func GetOrCreateJenkinsServer(config *v1alpha1.SourceConfig, name string) *v1alpha1.JenkinsServer

GetOrCreateJenkinsServer get or create the jenkins server with the the given name

func GetOrCreateJenkinsServerGroup

func GetOrCreateJenkinsServerGroup(config *v1alpha1.JenkinsServer, gitKind, gitServerURL, owner string) *v1alpha1.RepositoryGroup

GetOrCreateJenkinsServerGroup get or create the group for the given name

func GetOrCreateRepository

func GetOrCreateRepository(group *v1alpha1.RepositoryGroup, repoName string) *v1alpha1.Repository

GetOrCreateRepository get or create the repository for the given name

func GetOrCreateRepositoryFor

func GetOrCreateRepositoryFor(config *v1alpha1.SourceConfig, gitServerURL, owner, repo string) *v1alpha1.Repository

GetOrCreateRepositoryFor returns the repository for the given git server URL if specified, owner and repository

func GetRepository added in v0.7.28

func GetRepository(groups []v1alpha1.RepositoryGroup, repoName string) *v1alpha1.Repository

GetRepository get the repository for the given name

func GetRepositoryFor added in v0.7.28

func GetRepositoryFor(config *v1alpha1.SourceConfig, gitServerURL, owner, repo string) *v1alpha1.Repository

GetRepositoryFor returns the repository for the given git server URL if specified, owner and given repo name

func LoadSourceConfig

func LoadSourceConfig(dir string, applyDefaults bool) (*v1alpha1.SourceConfig, error)

LoadSourceConfig loads the source config and optionally adds the default vlaues

func RemoveRepository added in v0.3.5

func RemoveRepository(config *v1alpha1.SourceConfig, owner, repoName string) bool

RemoveRepository removes the repositories with the given name optionally matching on the owner

func SaveSourceConfig

func SaveSourceConfig(config *v1alpha1.SourceConfig, dir string) error

SaveSourceConfig saves the source config to the given directory

func SortConfig

func SortConfig(config *v1alpha1.SourceConfig)

SortConfig sorts the repositories in each group

func SortRepositories

func SortRepositories(repositories []v1alpha1.Repository)

SortRepositories sorts the repositories

Types

This section is empty.

Jump to

Keyboard shortcuts

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