// Registers the Bitbucket plugin using the default // settings from the config file or environment // variables. func Register() { if len(*bitbucketClient) == 0 || len(*bitbucketSecret) == 0 { return } remote.Register( NewDefault(*bitbucketClient, *bitbucketSecret, *bitbucketOpen), ) }
// Registers the Gogs plugin using the default // settings from the config file or environment // variables. func Register() { if len(*gogsUrl) == 0 { return } remote.Register( New(*gogsUrl, *gogsSecret, *gogsOpen), ) }
// registers the GitHub (github.com) plugin func registerGitHub() { if len(*githubClient) == 0 || len(*githubSecret) == 0 { return } remote.Register( NewDefault(*githubClient, *githubSecret, *githubOrgs, *githubOpen), ) }
// Registers the Gitlab plugin using the default // settings from the config file or environment // variables. func Register() { if len(*gitlabURL) == 0 { return } remote.Register( New( *gitlabURL, *gitlabSkipVerify, *gitlabOpen, *gitlabClient, *gitlabSecret, ), ) }
// registers the GitHub Enterprise plugin func registerGitHubEnterprise() { if len(*githubEnterpriseURL) == 0 || len(*githubEnterpriseAPI) == 0 || len(*githubEnterpriseClient) == 0 || len(*githubEnterpriseSecret) == 0 { return } remote.Register( New( *githubEnterpriseURL, *githubEnterpriseAPI, *githubEnterpriseClient, *githubEnterpriseSecret, *githubEnterprisePrivate, *githubEnterpriseSkipVerify, *githubEnterpriseOrgs, *githubEnterpriseOpen, ), ) }