Documentation
¶
Index ¶
- Constants
- func ListRepository() ([]byte, error)
- func NewLogFile(name string) (io.Writer, func(), error)
- func WebHookSecret() string
- type APIPayload
- type APIRepository
- type Agent
- type AgentSvc
- type AppConfig
- type AppConfigSvc
- type AppLogger
- type AppOS
- func (AppOS) FindProgram(pid int) (bool, error)
- func (AppOS) LookProgram(cmd string) (string, error)
- func (AppOS) RunProgram(path string, workdir string, args ...string) ([]byte, error)
- func (AppOS) StartProgram(path string, args ...string) (int, error)
- func (AppOS) UserHomePath() (string, error)
- func (AppOS) WalkDirFunc(path string, fn func(string)) error
- type FlatFile
- type FlatFiler
- type GitRepository
- type GitRepositorySvc
- type GitServerSvc
- type HttpClienter
- type OSCommander
- type OSDirCommand
- type OSDirer
- type OSPather
- type OSRunner
- type Webhook
Constants ¶
View Source
const API_AGENT_HOST = "127.0.0.1:9191"
View Source
const APP_AGENT_FILE = "agent.txt"
View Source
const APP_AGENT_LOG_FILE = "agent-log.json"
View Source
const APP_CLI_LOG_FILE = "cli-log.json"
View Source
const APP_CONFIG_FILE_NAME = "config.json"
View Source
const APP_FOLDER = ".gitfresh"
View Source
const APP_GIT_PROVIDER = "github.com"
View Source
const APP_REPOS_FILE_NAME = "repositories.json"
Variables ¶
This section is empty.
Functions ¶
func ListRepository ¶
func WebHookSecret ¶
func WebHookSecret() string
Types ¶
type APIPayload ¶
type APIPayload struct { Ref string `json:"ref"` Repository APIRepository `json:"repository"` Commit string `json:"after"` }
type APIRepository ¶
type APIRepository struct {
Name string `json:"name"`
}
type AgentSvc ¶
type AgentSvc struct {
// contains filtered or unexported fields
}
Agent
func NewAgentSvc ¶
func NewAgentSvc(l AppLogger, a OSCommander, f FlatFiler, c HttpClienter) *AgentSvc
func (AgentSvc) CheckAgentStatus ¶
func (AgentSvc) IsAgentRunning ¶
func (AgentSvc) StartAgent ¶
type AppConfigSvc ¶
type AppConfigSvc struct {
// contains filtered or unexported fields
}
AppConfig
func NewAppConfigSvc ¶
func NewAppConfigSvc(l AppLogger, f FlatFiler) *AppConfigSvc
func (AppConfigSvc) CreateConfigFile ¶
func (svc AppConfigSvc) CreateConfigFile(config *AppConfig) error
func (AppConfigSvc) ReadConfigFile ¶
func (svc AppConfigSvc) ReadConfigFile() (*AppConfig, error)
type GitRepository ¶
type GitRepositorySvc ¶
type GitRepositorySvc struct {
// contains filtered or unexported fields
}
GitRepository
func NewGitRepositorySvc ¶
func NewGitRepositorySvc(l AppLogger, a OSDirCommand, f FlatFiler) *GitRepositorySvc
func (GitRepositorySvc) SaveRepositories ¶
func (gr GitRepositorySvc) SaveRepositories(repos []*GitRepository) (n int, err error)
func (GitRepositorySvc) ScanRepositories ¶
func (gr GitRepositorySvc) ScanRepositories(workdir string, gitProvider string) ([]*GitRepository, error)
type GitServerSvc ¶
type GitServerSvc struct {
// contains filtered or unexported fields
}
GitServer
func NewGitServerSvc ¶
func NewGitServerSvc(l AppLogger, c HttpClienter) *GitServerSvc
func (GitServerSvc) CreateGitServerHook ¶
func (svc GitServerSvc) CreateGitServerHook(repo *GitRepository, config *AppConfig) error
type OSCommander ¶
type OSDirCommand ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.