config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 added in v1.3.0

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

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) Union

func (d *AppDirectory) Union(other *AppDirectory) *AppDirectory

type ServerConfig

type ServerConfig struct {
	UrlPrefix     string
	WebhookSecret string
	VcsToArgoMap  VcsToArgoMap
	VcsClient     vcs.Client
}

func (*ServerConfig) GetVcsRepos

func (cfg *ServerConfig) GetVcsRepos() []string

type VcsToArgoMap

type VcsToArgoMap struct {
	// contains filtered or unexported fields
}

func BuildAppsMap added in v1.3.0

func BuildAppsMap(ctx context.Context) (VcsToArgoMap, error)

func NewVcsToArgoMap

func NewVcsToArgoMap() VcsToArgoMap

func (*VcsToArgoMap) AddApp

func (v2a *VcsToArgoMap) AddApp(app v1alpha1.Application)

func (*VcsToArgoMap) GetAppsInRepo

func (v2a *VcsToArgoMap) GetAppsInRepo(repoCloneUrl string) *AppDirectory

func (*VcsToArgoMap) WalkKustomizeApps

func (v2a *VcsToArgoMap) WalkKustomizeApps(repo *repo.Repo, fs fs.FS) *AppDirectory

Jump to

Keyboard shortcuts

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