Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
func (*AuthService) RemoteProject ¶
func (service *AuthService) RemoteProject() (RemoteProject, error)
AuthService will ensure the user logs in if the remote project requires it
type Body ¶
func (*Body) ParseContent ¶
type CreateIssueOptions ¶
func (*CreateIssueOptions) Issue ¶
func (opts *CreateIssueOptions) Issue() Issue
type CreateMergeRequestOptions ¶
type CreateMergeRequestOptions struct {
Message string
File string
Edit bool
SourceBranch string
TargetBranch string
KeepSource bool
}
func (*CreateMergeRequestOptions) MergeRequest ¶
func (opts *CreateMergeRequestOptions) MergeRequest() MergeRequest
type Git ¶
type Git interface {
LocalBranch() (string, error)
RemoteProject() (RemoteProject, error)
SetAccessToken(RemoteProject, string) error
}
type Gitlab ¶
type Gitlab interface {
Project(RemoteProject) (Project, error)
CreateMergeRequest(RemoteProject, *MergeRequest) error
CreateIssue(RemoteProject, *Issue) error
}
type IssueService ¶
func (*IssueService) Create ¶
func (service *IssueService) Create(opts *CreateIssueOptions) error
type MergeRequest ¶
type MergeRequestService ¶
func (*MergeRequestService) Create ¶
func (service *MergeRequestService) Create(opts *CreateMergeRequestOptions) error
type MessageOpts ¶
type MissingToken ¶
type MissingToken struct {
Host string
}
func (MissingToken) Error ¶
func (m MissingToken) Error() string
type RemoteProject ¶
func ParseRemoteProject ¶
func ParseRemoteProject(url url.URL) RemoteProject
Click to show internal directories.
Click to hide internal directories.