updater

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-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 ArgoOverrideFile

type ArgoOverrideFile struct {
	Helm struct {
		Parameters []ArgoParameterOverride `yaml:"parameters"`
	} `yaml:"helm"`
}

type ArgoParameterOverride

type ArgoParameterOverride struct {
	Name        string `yaml:"name"`
	Value       string `yaml:"value"`
	ForceString bool   `yaml:"forceString"`
}

type GitClient

type GitClient struct{}

func (GitClient) AddSSHKey added in v0.8.0

func (GitClient) AddSSHKey(user, path, passphrase string) (*ssh.PublicKeys, error)

func (GitClient) Clone

func (GitClient) Clone(s storage.Storer, worktree billy.Filesystem, o *git.CloneOptions) (*git.Repository, error)

type GitConfig added in v0.8.3

type GitConfig struct {
	SshKeyPath          string `env:"SSH_KEY_PATH"`
	SshKeyPass          string `env:"SSH_KEY_PASS"`
	SshCommitUser       string `env:"SSH_COMMIT_USER"`
	SshCommitMail       string `env:"SSH_COMMIT_MAIL"`
	CommitMessageFormat string `env:"COMMIT_MESSAGE_FORMAT"`
}

func NewGitConfig added in v0.8.3

func NewGitConfig() (*GitConfig, error)

type GitHandler

type GitHandler interface {
	Clone(s storage.Storer, worktree billy.Filesystem, o *git.CloneOptions) (*git.Repository, error)
	AddSSHKey(user, path, passphrase string) (*ssh.PublicKeys, error)
}

type GitRepo

type GitRepo struct {
	RepoURL    string
	BranchName string
	Path       string
	FileName   string

	GitHandler GitHandler
	// contains filtered or unexported fields
}

func NewGitRepo added in v0.8.3

func NewGitRepo(repoURL, branchName, path, fileName string, gitHandler GitHandler) *GitRepo

func (*GitRepo) Clone

func (repo *GitRepo) Clone() error

func (*GitRepo) UpdateApp

func (repo *GitRepo) UpdateApp(appName string, overrideContent *ArgoOverrideFile, tmplData any) error

Jump to

Keyboard shortcuts

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