Documentation ¶
Index ¶
- Constants
- func GitClone(optionsP *[]string, wgP *sync.WaitGroup) *helper.MyCmd
- func GitPull(workPathP *string, optionsP *[]string, wgP *sync.WaitGroup) *helper.MyCmd
- func GitPush(workPathP *string, optionsP *[]string, wgP *sync.WaitGroup) *helper.MyCmd
- type ConfSecret
- type ConfSecrets
- type Groups
- type Remote
- type Remotes
- type TypeConf
- type TypeFlag
Constants ¶
View Source
const ( TXT_FLAGS_USE = "If -r/-g not specified, all remotes in config file will be used. " TXT_REPO_CLONE_LONG = "Provide at least one repository name(not url). Need exactly one -r/--remote. Do not accept -g/--group." TXT_REPO_CLONE_USE = "<repository ...>" TXT_REPO_DIR_LONG = "If no repository is specified, current git root will be used as repository name. " TXT_REPO_DIR_USE = "[repository/directory ...]" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfSecret ¶
Secret entry in config file
func (*ConfSecret) Encrypt ¶
func (self *ConfSecret) Encrypt(pubKeyP *gitapi.RepoPublicKey) *gitapi.RepoEncryptedPair
Do NACL box encryption
type ConfSecrets ¶
type ConfSecrets []ConfSecret
func (*ConfSecrets) Has ¶
func (self *ConfSecrets) Has(name *string) bool
Check if secrete exist by name
type Remote ¶
type Remote struct { Name string `json:"name"` // Name of remote entry, also use as git remote name Group string `json:"group"` // Group name Ssh string `json:"ssh"` // Ssh url for git server Entrypoint string `json:"entrypoint"` // Api entrypoint url Token string `json:"token"` // Api token User string `json:"user"` // Api user Private bool `json:"private"` // Default private value Vendor string `json:"vendor"` // Api vendor/brand SkipVerify bool `json:"skipverify"` // Api request skip cert verify (allow self-signed cert) }
Remote entry in config file
type Remotes ¶
type Remotes []Remote
Array of Remote
func (*Remotes) GetByGroup ¶
Get all Remote in a group
type TypeConf ¶
type TypeConf struct { File string `json:"-"` Groups Groups `json:"-"` Remotes Remotes `json:"remotes"` Secrets ConfSecrets `json:"secrets"` MergedRemotes Remotes `json:"-"` }
File, Group, MergeRemotes are filled in at runtime
Remotes, Secrets are read from config file by viper
var Conf TypeConf
type TypeFlag ¶
type TypeFlag struct { Args []string // Args from command line Debug bool // Enable debug output Groups []string // Groups specified in command line NoParallel bool // Do not process in parallel(go routine) NoSkip bool // Flag for not skipping empty output NoTitle bool // Do not print title in output Page int // Page number of repository listing PushAll bool // Flag for git push PushBranch []string // Flag for git push PushTag bool // Flag for git push RemoteRemoveAll bool // Flag for git remote remove all Remotes []string // Remotes specified in command line Secret ConfSecret // Secret specified in command line SecretsDel []string // Secrets specified in command line }
Holding all flags from command line
var Flag TypeFlag
Click to show internal directories.
Click to hide internal directories.