Documentation ¶
Index ¶
- Variables
- type Action
- type Actions
- type Result
- type Results
- type Service
- func (s *Service) Commit(ctx context.Context, prj *project.Project, msg string, logger util.Logger) (*Result, error)
- func (s *Service) CreateRepo(ctx context.Context, prj *project.Project, logger util.Logger) (*Result, error)
- func (s *Service) Fetch(ctx context.Context, prj *project.Project, logger util.Logger) (*Result, error)
- func (s *Service) Magic(ctx context.Context, prj *project.Project, message string, dryRun bool, ...) (*Result, error)
- func (s *Service) Outdated(ctx context.Context, prj *project.Project, logger util.Logger) (*Result, error)
- func (s *Service) Pull(ctx context.Context, prj *project.Project, logger util.Logger) (*Result, error)
- func (s *Service) Push(ctx context.Context, prj *project.Project, logger util.Logger) (*Result, error)
- func (s *Service) Status(ctx context.Context, prj *project.Project, logger util.Logger) (*Result, error)
- func (s *Service) UndoCommit(ctx context.Context, prj *project.Project, logger util.Logger) (*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"} ActionPull = &Action{Key: "pull", Title: "Pull", Description: "Pulls pending commits from upstream"} ActionPush = &Action{Key: "push", Title: "Push", Description: "Pushes pending commits to the remote"} ActionBranch = &Action{Key: "branch", Title: "Branch", Description: "Switch to a new branch"} ActionUndoCommit = &Action{Key: "undocommit", Title: "Undo", Description: "Removes the most recent commit, keeping all local changes"} ActionOutdated = &Action{Key: "outdated", Title: "Outdated", Description: "Finds commits since last tag"} )
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Key string `json:"key"` Title string `json:"title"` Description string `json:"description"` }
func ActionStatusFromString ¶
type Result ¶
type Result struct { Project *project.Project `json:"-"` Status string `json:"status"` Data util.ValueMap `json:"data"` Error string `json:"error"` }
func (*Result) DataString ¶
func (*Result) DataStringArray ¶
Click to show internal directories.
Click to hide internal directories.