Documentation
¶
Index ¶
- func Redirect(target string) gin.HandlerFunc
- func SetMode(mode string)
- type Config
- type Repositories
- func (repositories Repositories) Len() int
- func (repositories Repositories) Less(i, j int) bool
- func (repositories Repositories) Search(reponame string) *Repository
- func (repositories Repositories) SetDefaults(defaults Repository)
- func (repositories Repositories) Sort()
- func (repositories Repositories) Swap(i, j int)
- type Repository
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Redirect ¶
func Redirect(target string) gin.HandlerFunc
Types ¶
type Config ¶
type Config struct { PluginsDir string `yaml:"pluginsDir"` Defaults Repository Repositories Repositories Plugins map[string]string }
func (*Config) FindRepo ¶
func (config *Config) FindRepo(reponame string) *Repository
func (*Config) SetDefaults ¶
func (config *Config) SetDefaults(defaults Repository)
type Repositories ¶
type Repositories []Repository
func (Repositories) Len ¶
func (repositories Repositories) Len() int
func (Repositories) Less ¶
func (repositories Repositories) Less(i, j int) bool
func (Repositories) Search ¶
func (repositories Repositories) Search(reponame string) *Repository
func (Repositories) SetDefaults ¶
func (repositories Repositories) SetDefaults(defaults Repository)
func (Repositories) Sort ¶
func (repositories Repositories) Sort()
func (Repositories) Swap ¶
func (repositories Repositories) Swap(i, j int)
type Repository ¶
type Repository struct { RemoteUrl string `yaml:"remoteUrl"` LocalUrl string `yaml:"localUrl"` RemoteName string `yaml:"remoteName"` RemoteBranch string `yaml:"remoteBranch"` LocalBranch string `yaml:"localBranch"` PublicKeyPath string `yaml:"publicKeyPath"` PrivateKeyPath string `yaml:"privateKeyPath"` }
func (*Repository) GetCredentialsCallback ¶
func (repo *Repository) GetCredentialsCallback() git.CredentialsCallback
func (*Repository) Pull ¶
func (repo *Repository) Pull() error
func (*Repository) SetDefault ¶
func (repo *Repository) SetDefault(key *string, defaultValue string)
func (*Repository) SetDefaults ¶
func (repo *Repository) SetDefaults(defaults Repository)
type Router ¶
func (*Router) Home ¶
func (router *Router) Home(handler gin.HandlerFunc)
func (*Router) LoadConfig ¶
func (*Router) LoadPlugins ¶
func (router *Router) LoadPlugins()
Click to show internal directories.
Click to hide internal directories.