Documentation ¶
Index ¶
- type AppDirectory
- func (d *AppDirectory) AddApp(app v1alpha1.Application)
- func (d *AppDirectory) AddDir(appName, path string)
- func (d *AppDirectory) AddFile(appName, path string)
- func (d *AppDirectory) Count() int
- func (d *AppDirectory) FindAppsBasedOnChangeList(changeList []string, targetBranch string) []v1alpha1.Application
- func (d *AppDirectory) GetApps(filter func(stub v1alpha1.Application) bool) []v1alpha1.Application
- func (d *AppDirectory) ProcessApp(app v1alpha1.Application)
- func (d *AppDirectory) RemoveApp(app v1alpha1.Application)
- func (d *AppDirectory) Union(other *AppDirectory) *AppDirectory
- type AppSetDirectory
- func (d *AppSetDirectory) AddApp(appSet *v1alpha1.ApplicationSet)
- func (d *AppSetDirectory) AddDir(appName, path string)
- func (d *AppSetDirectory) AddFile(appName, path string)
- func (d *AppSetDirectory) Count() int
- func (d *AppSetDirectory) FindAppsBasedOnChangeList(changeList []string, repo *git.Repo) []v1alpha1.ApplicationSet
- func (d *AppSetDirectory) GetAppSets(filter func(stub v1alpha1.ApplicationSet) bool) []v1alpha1.ApplicationSet
- func (d *AppSetDirectory) ProcessApp(app v1alpha1.ApplicationSet)
- func (d *AppSetDirectory) RemoveApp(app v1alpha1.ApplicationSet)
- func (d *AppSetDirectory) Union(other *AppSetDirectory) *AppSetDirectory
- type VcsToArgoMap
- func (v2a VcsToArgoMap) AddApp(app *v1alpha1.Application)
- func (v2a VcsToArgoMap) AddAppSet(app *v1alpha1.ApplicationSet)
- func (v2a VcsToArgoMap) DeleteApp(app *v1alpha1.Application)
- func (v2a VcsToArgoMap) DeleteAppSet(app *v1alpha1.ApplicationSet)
- func (v2a VcsToArgoMap) GetAppSetMap() map[pkg.RepoURL]*AppSetDirectory
- func (v2a VcsToArgoMap) GetAppSetsInRepo(repoCloneUrl string) *AppSetDirectory
- func (v2a VcsToArgoMap) GetAppsInRepo(repoCloneUrl string) *AppDirectory
- func (v2a VcsToArgoMap) GetMap() map[pkg.RepoURL]*AppDirectory
- func (v2a VcsToArgoMap) GetVcsRepos() []string
- func (v2a VcsToArgoMap) UpdateApp(old *v1alpha1.Application, new *v1alpha1.Application)
- func (v2a VcsToArgoMap) UpdateAppSet(old *v1alpha1.ApplicationSet, new *v1alpha1.ApplicationSet)
- func (v2a VcsToArgoMap) WalkKustomizeApps(cloneURL string, fs fs.FS) *AppDirectory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppDirectory ¶
type AppDirectory struct {
// contains filtered or unexported fields
}
func NewAppDirectory ¶
func NewAppDirectory() *AppDirectory
func (*AppDirectory) AddApp ¶
func (d *AppDirectory) AddApp(app v1alpha1.Application)
func (*AppDirectory) AddDir ¶
func (d *AppDirectory) AddDir(appName, path string)
func (*AppDirectory) AddFile ¶
func (d *AppDirectory) AddFile(appName, path string)
func (*AppDirectory) Count ¶
func (d *AppDirectory) Count() int
func (*AppDirectory) FindAppsBasedOnChangeList ¶
func (d *AppDirectory) FindAppsBasedOnChangeList(changeList []string, targetBranch string) []v1alpha1.Application
FindAppsBasedOnChangeList receives a list of modified file paths and returns the list of applications that are affected by the changes.
changeList: a slice of strings representing the paths of modified files. targetBranch: the branch name to compare against the target revision of the applications. e.g. changeList = ["path/to/file1", "path/to/file2"]
func (*AppDirectory) GetApps ¶
func (d *AppDirectory) GetApps(filter func(stub v1alpha1.Application) bool) []v1alpha1.Application
func (*AppDirectory) ProcessApp ¶
func (d *AppDirectory) ProcessApp(app v1alpha1.Application)
func (*AppDirectory) RemoveApp ¶
func (d *AppDirectory) RemoveApp(app v1alpha1.Application)
func (*AppDirectory) Union ¶
func (d *AppDirectory) Union(other *AppDirectory) *AppDirectory
type AppSetDirectory ¶ added in v1.7.0
type AppSetDirectory struct {
// contains filtered or unexported fields
}
func NewAppSetDirectory ¶ added in v1.7.0
func NewAppSetDirectory() *AppSetDirectory
func (*AppSetDirectory) AddApp ¶ added in v1.7.0
func (d *AppSetDirectory) AddApp(appSet *v1alpha1.ApplicationSet)
func (*AppSetDirectory) AddDir ¶ added in v1.7.0
func (d *AppSetDirectory) AddDir(appName, path string)
func (*AppSetDirectory) AddFile ¶ added in v1.7.0
func (d *AppSetDirectory) AddFile(appName, path string)
func (*AppSetDirectory) Count ¶ added in v1.7.0
func (d *AppSetDirectory) Count() int
func (*AppSetDirectory) FindAppsBasedOnChangeList ¶ added in v1.7.0
func (d *AppSetDirectory) FindAppsBasedOnChangeList(changeList []string, repo *git.Repo) []v1alpha1.ApplicationSet
func (*AppSetDirectory) GetAppSets ¶ added in v1.7.0
func (d *AppSetDirectory) GetAppSets(filter func(stub v1alpha1.ApplicationSet) bool) []v1alpha1.ApplicationSet
func (*AppSetDirectory) ProcessApp ¶ added in v1.7.0
func (d *AppSetDirectory) ProcessApp(app v1alpha1.ApplicationSet)
func (*AppSetDirectory) RemoveApp ¶ added in v1.7.0
func (d *AppSetDirectory) RemoveApp(app v1alpha1.ApplicationSet)
func (*AppSetDirectory) Union ¶ added in v1.7.0
func (d *AppSetDirectory) Union(other *AppSetDirectory) *AppSetDirectory
type VcsToArgoMap ¶
type VcsToArgoMap struct {
// contains filtered or unexported fields
}
func NewVcsToArgoMap ¶
func NewVcsToArgoMap(vcsUsername string) VcsToArgoMap
func (VcsToArgoMap) AddApp ¶
func (v2a VcsToArgoMap) AddApp(app *v1alpha1.Application)
func (VcsToArgoMap) AddAppSet ¶ added in v1.7.0
func (v2a VcsToArgoMap) AddAppSet(app *v1alpha1.ApplicationSet)
func (VcsToArgoMap) DeleteApp ¶
func (v2a VcsToArgoMap) DeleteApp(app *v1alpha1.Application)
func (VcsToArgoMap) DeleteAppSet ¶ added in v1.7.0
func (v2a VcsToArgoMap) DeleteAppSet(app *v1alpha1.ApplicationSet)
func (VcsToArgoMap) GetAppSetMap ¶ added in v1.7.0
func (v2a VcsToArgoMap) GetAppSetMap() map[pkg.RepoURL]*AppSetDirectory
func (VcsToArgoMap) GetAppSetsInRepo ¶ added in v1.7.0
func (v2a VcsToArgoMap) GetAppSetsInRepo(repoCloneUrl string) *AppSetDirectory
GetAppSetsInRepo returns AppSetDirectory for the specified repository URL.
func (VcsToArgoMap) GetAppsInRepo ¶
func (v2a VcsToArgoMap) GetAppsInRepo(repoCloneUrl string) *AppDirectory
func (VcsToArgoMap) GetMap ¶
func (v2a VcsToArgoMap) GetMap() map[pkg.RepoURL]*AppDirectory
func (VcsToArgoMap) GetVcsRepos ¶
func (v2a VcsToArgoMap) GetVcsRepos() []string
func (VcsToArgoMap) UpdateApp ¶
func (v2a VcsToArgoMap) UpdateApp(old *v1alpha1.Application, new *v1alpha1.Application)
func (VcsToArgoMap) UpdateAppSet ¶ added in v1.7.0
func (v2a VcsToArgoMap) UpdateAppSet(old *v1alpha1.ApplicationSet, new *v1alpha1.ApplicationSet)
func (VcsToArgoMap) WalkKustomizeApps ¶
func (v2a VcsToArgoMap) WalkKustomizeApps(cloneURL string, fs fs.FS) *AppDirectory
Click to show internal directories.
Click to hide internal directories.