Documentation ¶
Index ¶
- func DefaultConfigValues(config *v1alpha1.SourceConfig) error
- func DefaultGroupValues(config *v1alpha1.SourceConfig, groups []v1alpha1.RepositoryGroup) error
- func DefaultValues(config *v1alpha1.SourceConfig, group *v1alpha1.RepositoryGroup, ...) error
- func DryConfig(config *v1alpha1.SourceConfig)
- func EnrichConfig(config *v1alpha1.SourceConfig)
- func GetOrCreateGroup(config *v1alpha1.SourceConfig, gitKind string, gitServerURL string, ...) *v1alpha1.RepositoryGroup
- func GetOrCreateJenkinsServer(config *v1alpha1.SourceConfig, name string) *v1alpha1.JenkinsServer
- func GetOrCreateJenkinsServerGroup(config *v1alpha1.JenkinsServer, gitKind string, gitServerURL string, ...) *v1alpha1.RepositoryGroup
- func GetOrCreateRepository(group *v1alpha1.RepositoryGroup, repoName string) *v1alpha1.Repository
- func GetOrCreateRepositoryFor(config *v1alpha1.SourceConfig, gitServerURL, owner, repo string) *v1alpha1.Repository
- func LoadSourceConfig(dir string, applyDefaults bool) (*v1alpha1.SourceConfig, error)
- func SaveSourceConfig(config *v1alpha1.SourceConfig, dir string) error
- func SortConfig(config *v1alpha1.SourceConfig)
- func SortRepositories(repositories []v1alpha1.Repository)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigValues ¶ added in v0.0.487
func DefaultConfigValues(config *v1alpha1.SourceConfig) error
DefaultConfigValues defaults values from the given config, group and repository if they are missing
func DefaultGroupValues ¶ added in v0.0.487
func DefaultGroupValues(config *v1alpha1.SourceConfig, groups []v1alpha1.RepositoryGroup) error
DefaultGroupValues defaults values from the given config, group and repository if they are missing
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 ¶ added in v0.0.289
func DryConfig(config *v1alpha1.SourceConfig)
func EnrichConfig ¶ added in v0.0.321
func EnrichConfig(config *v1alpha1.SourceConfig)
EnrichConfig ensures everything is populated
func GetOrCreateGroup ¶
func GetOrCreateGroup(config *v1alpha1.SourceConfig, gitKind string, gitServerURL string, owner string) *v1alpha1.RepositoryGroup
GetOrCreateGroup get or create the group for the given name
func GetOrCreateJenkinsServer ¶ added in v0.0.487
func GetOrCreateJenkinsServer(config *v1alpha1.SourceConfig, name string) *v1alpha1.JenkinsServer
GetOrCreateJenkinsServer get or create the jenkins server with the the given name
func GetOrCreateJenkinsServerGroup ¶ added in v0.0.487
func GetOrCreateJenkinsServerGroup(config *v1alpha1.JenkinsServer, gitKind string, gitServerURL string, 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 ¶ added in v0.2.1
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 LoadSourceConfig ¶ added in v0.0.487
func LoadSourceConfig(dir string, applyDefaults bool) (*v1alpha1.SourceConfig, error)
LoadSourceConfig loads the source config and optionally adds the default vlaues
func SaveSourceConfig ¶ added in v0.0.498
func SaveSourceConfig(config *v1alpha1.SourceConfig, dir string) error
SaveSourceConfig saves the source config to the given directory
func SortConfig ¶ added in v0.0.221
func SortConfig(config *v1alpha1.SourceConfig)
SortConfig sorts the repositories in each group
func SortRepositories ¶ added in v0.0.221
func SortRepositories(repositories []v1alpha1.Repository)
SortRepositories sorts the repositories
Types ¶
This section is empty.