Documentation
¶
Index ¶
- type Collecter
- type GitLabProjectInfo
- func (r *GitLabProjectInfo) ApiUrl() string
- func (r *GitLabProjectInfo) BaseUrl() string
- func (r *GitLabProjectInfo) BranchFileWithLine(branch string, path string, line string) string
- func (r *GitLabProjectInfo) BranchPath(branch string, path string) string
- func (r *GitLabProjectInfo) BranchUrl(branch string) string
- func (r *GitLabProjectInfo) RepositoryUrl() string
- func (r *GitLabProjectInfo) Subpage(subpage string) string
- func (r *GitLabProjectInfo) SubpageUrl(subpage string) string
- type MockCollecter
- type RemoteCollecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collecter ¶
type Collecter interface {
CollectTarget(project, profile string) (*GitLabProjectInfo, error)
}
type GitLabProjectInfo ¶
type GitLabProjectInfo struct { Domain string Project string Token string CurrentBranch string Profile *config.Profile }
func (*GitLabProjectInfo) ApiUrl ¶
func (r *GitLabProjectInfo) ApiUrl() string
func (*GitLabProjectInfo) BaseUrl ¶
func (r *GitLabProjectInfo) BaseUrl() string
func (*GitLabProjectInfo) BranchFileWithLine ¶
func (r *GitLabProjectInfo) BranchFileWithLine(branch string, path string, line string) string
func (*GitLabProjectInfo) BranchPath ¶
func (r *GitLabProjectInfo) BranchPath(branch string, path string) string
func (*GitLabProjectInfo) BranchUrl ¶
func (r *GitLabProjectInfo) BranchUrl(branch string) string
func (*GitLabProjectInfo) RepositoryUrl ¶
func (r *GitLabProjectInfo) RepositoryUrl() string
func (*GitLabProjectInfo) Subpage ¶
func (r *GitLabProjectInfo) Subpage(subpage string) string
func (*GitLabProjectInfo) SubpageUrl ¶
func (r *GitLabProjectInfo) SubpageUrl(subpage string) string
type MockCollecter ¶
type MockCollecter struct{}
func (*MockCollecter) CollectTarget ¶
func (m *MockCollecter) CollectTarget(project, profile string) (*GitLabProjectInfo, error)
type RemoteCollecter ¶
func (*RemoteCollecter) CollectTarget ¶
func (c *RemoteCollecter) CollectTarget(project, profile string) (*GitLabProjectInfo, error)
Click to show internal directories.
Click to hide internal directories.