Documentation ¶
Index ¶
Constants ¶
const ( //ServiceID version control service id ServiceID = "version/control" //CredentialKey represents credentials key CredentialKey = "***vc***" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckoutRequest ¶
type CheckoutRequest struct { Type string `required:"true" description:"version control type: git, svn"` Origin *url.Resource `required:"true" description:"checkout source for git or svn or simply file::/path"` Dest *url.Resource `required:"true" description:"checkout dest defined by host and path URL"` Modules []string `description:"list of modules to checkout"` RemoveLocalChanges bool `description:"flat to remove local directory before checkout"` }
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) Messages ¶
func (r *CheckoutRequest) Messages() []*msg.Message
Items returns tag messages
func (*CheckoutRequest) Validate ¶
func (r *CheckoutRequest) Validate() error
Validate validates request
type CheckoutResponse ¶
CheckoutResponse represents checkout response
type CommitRequest ¶
type CommitRequest struct { Source *url.Resource `required:"true" description:"location to local source code"` Type string `description:"version control type: git,svn"` Message string `required:"true"` }
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 New []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 PullRequest ¶
type PullRequest struct { Type string Dest *url.Resource `required:"true"` Origin *url.Resource `required:"true"` //version control origin }
PullRequest represents a pull request
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