Documentation ¶
Overview ¶
Package services provides the functionality for all supported services (GitHub)
Package services provides the functionality for all supported services (GitHub)
Package services provides the functionality for all supported services (GitHub)
Index ¶
Constants ¶
const DefaultUpdateFileName string = ".walter"
DEFAULT_UPDATE_FILE_NAME is the default file name of status of Walter service. The file name can be overridden with the configuration file.
Variables ¶
This section is empty.
Functions ¶
func SaveLastUpdate ¶
SaveLastUpdate saves the supplied update to the filename
Types ¶
type GitHubClient ¶
type GitHubClient struct { Repo string `config:"repo"` From string `config:"from"` Token string `config:"token"` UpdateFile string `config:"update"` TargetBranch string `config:"branch"` }
GitHubClient struct
func (*GitHubClient) GetCommits ¶
func (githubClient *GitHubClient) GetCommits(update Update) (*list.List, error)
GetCommits get a list of all the commits for the current update
func (*GitHubClient) GetUpdateFilePath ¶
func (githubClient *GitHubClient) GetUpdateFilePath() string
GetUpdateFilePath returns the update file name
func (*GitHubClient) RegisterResult ¶
func (githubClient *GitHubClient) RegisterResult(result Result) error
RegisterResult registers the supplied result
type LocalClient ¶
type LocalClient struct{}
LocalClient struct
func (*LocalClient) GetCommits ¶
func (localClient *LocalClient) GetCommits(update Update) (*list.List, error)
GetCommits gets the commits for the current update
func (*LocalClient) GetUpdateFilePath ¶
func (localClient *LocalClient) GetUpdateFilePath() string
GetUpdateFilePath returns the update file path
func (*LocalClient) RegisterResult ¶
func (localClient *LocalClient) RegisterResult(result Result) error
RegisterResult resgisters the supplied result