gitopswriter

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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