cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GitCommitUser is the user login used for commit changes
	GitCommitUser = "git-commit-user"
	// GitCommitEmail is the email used for commit changes
	GitCommitEmail = "git-commit-email"
	// GitPassword is the git password used for auth
	GitPassword = "git-password"
	// GitBranch is the branch of the git repository
	GitBranch = "git-branch"
	// GitRepoURL is the git repository url
	GitRepoURL = "git-repo-url"
	// GitFile is the file that is going to be changed
	GitFile = "git-file"
	// GitDir is the directory where the file to be changed is located
	GitDir = "git-dir"
	// AppName is the name of the helm application
	AppName = "app-name"
	// SSHPrivateKey is the location of the SSH private key used for auth
	SSHPrivateKey = "ssh-private-key"
	// UseSSHPrivateKeyAsInline indicates if the SSHPrivateKey is going to be created based in a string provided
	UseSSHPrivateKeyAsInline = "use-ssh-private-key-as-inline"
	// DryRun is going to indicate if the changes are going to be committed or not
	DryRun = "dry-run"
	// LogLevel will indicate the log level
	LogLevel = "logLevel"
	// HelmKeyValues will be used for indicate the key and values to be changed in helm
	HelmKeyValues = "helm-key-values"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type GitConf

type GitConf struct {
	RepoURL string
	Branch  string
	File    string
}

GitConf contains the configuration for the git repository

type HelmUpdaterConfig

type HelmUpdaterConfig struct {
	DryRun           bool
	LogLevel         string
	AppName          string
	UpdateApps       []updater.ChangeEntry
	GitCommitMessage *template.Template
	GitCredentials   *git.Credentials
	GitConf          *git.Conf
}

HelmUpdaterConfig contains global configuration and required runtime data

type UpdateApp

type UpdateApp struct {
	Name  string
	File  string
	Key   string
	Image string
}

UpdateApp contains the information about the update app

Jump to

Keyboard shortcuts

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