Documentation
¶
Index ¶
Constants ¶
View Source
const ( AddCommitMessage = "Add application manifests" RemoveCommitMessage = "Remove application manifests" ClusterCommitMessage = "Associate cluster" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitOpsDirectoryWriter ¶
type GitOpsDirectoryWriter interface { AddApplication(ctx context.Context, app models.Application, clusterName string, autoMerge bool) error RemoveApplication(ctx context.Context, app models.Application, clusterName string, autoMerge bool) error }
func NewGitOpsDirectoryWriter ¶
func NewGitOpsDirectoryWriter(automationSvc automation.AutomationGenerator, repoWriter gitrepo.RepoWriter, osys osys.Osys, logger logger.Logger) GitOpsDirectoryWriter
type RepoWriter ¶ added in v0.6.2
type RepoWriter interface {
Write(ctx context.Context, repoURL gitproviders.RepoURL, branch string, manifests []gitprovider.CommitFile) error
}
func NewRepoWriter ¶ added in v0.6.2
func NewRepoWriter(log logger.Logger, gitClient git.Git, gitProvider gitproviders.GitProvider) RepoWriter
Click to show internal directories.
Click to hide internal directories.