Help us shape the future of Go! Take the 2026 Go Developer Survey

gitutil

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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)
}

func NewRemoteCollecter

func NewRemoteCollecter(ui ui.UI, cfg *config.Config, gitClient git.Client) Collecter

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

type RemoteCollecter struct {
	UI        ui.UI
	GitClient git.Client
	Cfg       *config.Config
}

func (*RemoteCollecter) CollectTarget

func (c *RemoteCollecter) CollectTarget(project, profile string) (*GitLabProjectInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL