Documentation ¶
Index ¶
Constants ¶
const ServiceID = "vc/git"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckoutRequest ¶
type CheckoutRequest struct { Origin *location.Resource `required:"true" description:"checkout source for git or svn or simply file::/path"` Dest *location.Resource `required:"true" description:"checkout dest defined by host and path URL"` Depth int }
CheckoutRequest represents checkout request. If target directory exist and contains matching origin URL, only taking the latest changes without overriding local if performed, otherwise full checkout
func (*CheckoutRequest) Validate ¶
func (r *CheckoutRequest) Validate() error
Validate validates request
type CheckoutResponse ¶
type CheckoutResponse StatusResponse
CheckoutResponse represents checkout response
type CommitRequest ¶
type CommitRequest struct { Source *location.Resource `required:"true" description:"location to local source code"` Message string `required:"true"` Credentials string }
CommitRequest represents a commit request
func (*CommitRequest) Validate ¶
func (r *CommitRequest) Validate() error
Validate validates request
type CommitResponse ¶
type CommitResponse struct {
*Info
}
CommitResponse represents a commit response
type Info ¶
type Info struct { IsVersionControlManaged bool //returns true if directory is source controlled managed Origin string //Origin URL Revision string //Origin Revision Branch string //current branch IsUptoDate bool Added []string //new files Untracked []string //untracked files Modified []string //modified files Deleted []string //deleted files }
Info represents version control info
func (*Info) HasPendingChanges ¶
HasPendingChanges returns true if there are any untracked, new, modified, deleted files.
type OutputEvent ¶
type OutputEvent struct {
*msg.OutputEvent
}
OutputEvent represents an output event
type StatusRequest ¶
StatusRequest represents version control status
func (*StatusRequest) Validate ¶
func (r *StatusRequest) Validate() error
Validate validates request
type StatusResponse ¶
type StatusResponse struct {
*Info
}
StatusResponse represents version control status response