Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitApiFromRemote ¶
func GitApiFromRemote[T gitapi.GitApiInfo](remoteP *Remote, info T) *gitapi.GitApi[T]
Return a GitApi pointer base on Remote
Types ¶
type ConfSecret ¶
func (*ConfSecret) Encrypt ¶
func (secretP *ConfSecret) Encrypt(pubkeyP *gitapi.RepoPublicKey) *gitapi.RepoEncryptedPair
type ConfSecrets ¶
type ConfSecrets []ConfSecret
func (*ConfSecrets) Has ¶
func (secretsP *ConfSecrets) Has(name *string) bool
type Remote ¶
type Remote struct { Name string `json:"name"` Group string `json:"group"` Ssh string `json:"ssh"` 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 vaule Vendor string `json:"vendor"` // Api vendor/brand }
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 []ConfSecret `json:"secrets"` MergedRemotes Remotes `json:"-"` }
func (*TypeConf) MergeRemotes ¶
Calculate remotes base on flag
Click to show internal directories.
Click to hide internal directories.