Documentation ¶
Overview ¶
Package hosting provides support for interacting with code hosting platforms. Commands like "propose", "repo", and "ship" use this package to know how to perform Git Town operations on GitHub, Gitlab, Bitbucket, etc. Implementations of connectors for particular code hosting platforms conform to the Connector interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
func Detect(originURL *giturl.Parts, hostingPlatform configdomain.HostingPlatform) configdomain.HostingPlatform
func NewConnector ¶
func NewConnector(args NewConnectorArgs) (hostingdomain.Connector, error)
NewConnector provides an instance of the code hosting connector to use based on the given gitConfig.
Types ¶
type NewConnectorArgs ¶
type NewConnectorArgs struct { *configdomain.FullConfig HostingPlatform configdomain.HostingPlatform Log print.Logger OriginURL *giturl.Parts }
Click to show internal directories.
Click to hide internal directories.