Documentation
¶
Index ¶
- Variables
- type Action
- type Actions
- type Result
- type Results
- type Service
- func (s Service) Commit(prj *project.Project, msg string) (*Result, error)
- func (s Service) CreateRepo(prj *project.Project) (*Result, error)
- func (s Service) Fetch(prj *project.Project) (*Result, error)
- func (s Service) Magic(prj *project.Project) (*Result, error)
- func (s Service) Status(ctx context.Context, prj *project.Project, logger *zap.SugaredLogger) (*Result, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActionStatus = &Action{Key: "status", Title: "Status", Description: "Returns the status of the repository"} ActionCreateRepo = &Action{Key: "createrepo", Title: "Create Repo", Description: "Creates a git repo and makes an initial commit"} ActionMagic = &Action{Key: "magic", Title: "Magic", Description: "Does everything it can to bring the repo up to date"} ActionFetch = &Action{Key: "fetch", Title: "Fetch", Description: "Fetches the latest changes from the repository"} ActionCommit = &Action{Key: "commit", Title: "Commit", Description: "Adds all files, commits with the provided message"} ActionBranch = &Action{Key: "branch", Title: "Branch", Description: "Switch to a new branch"} )
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger *zap.SugaredLogger) *Service
Click to show internal directories.
Click to hide internal directories.