Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigServers = "servers" ConfigDefaultServer = "defaultServer" )
Variables ¶
This section is empty.
Functions ¶
func AddServer ¶
func AddServer(serverURL string)
AddServer adds a server URL to the known list (idempotent).
func DefaultServer ¶
func DefaultServer() string
DefaultServer returns the default Bitbucket server URL.
func MatchByHostname ¶ added in v1.1.0
MatchByHostname finds a registered server whose hostname matches the hostname of rawURL (ignoring scheme, port, and context path). This is used to recover the context path (e.g. /stash/) when only a bare server URL was derived from an SSH remote. Returns "" if no match is found.
func RemoveServer ¶
func RemoveServer(serverURL string)
RemoveServer removes a server URL from the known list.
func SetDefaultServer ¶
func SetDefaultServer(serverURL string)
SetDefaultServer sets the default server URL (also adds it to the list).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.