Documentation ¶
Index ¶
- Constants
- func GenerateSSHCommand(sshKeyPath string, sshStrict bool, sshKnownHostsPath string) (string, error)
- func GenerateSSHKey(ctx context.Context, tempDir string, inputKey string) (string, error)
- func GenerateSSHKnownHosts(home string, tempDir string, inputKnownHosts string) (_ string, retErr error)
- type Config
Constants ¶
View Source
const ( GitHubProvider = "github" GitLabProvider = "gitlab" BitbucketProvider = "bitbucket" CustomProvider = "custom" BitbucketDatacenterProvider = "bitbucket_datacenter" )
Variables ¶
This section is empty.
Functions ¶
func GenerateSSHCommand ¶ added in v1.0.3
func GenerateSSHKey ¶ added in v1.0.3
Types ¶
type Config ¶
type Config struct { // Provider SCM provider that is hosting the repositories Provider string // Repositories whitespace and/or comma separated list of repository names with owner Repositories string // CloudBees API token used to fetch authentication CloudBeesApiToken string `mapstructure:"cloudbees-api-token"` // CloudBees API root URL to fetch authentication from CloudBeesApiURL string `mapstructure:"cloudbees-api-url"` // Personal access token (PAT) used to fetch the repositories Token string // SshKey SSH key used to fetch the repositories SshKey string `mapstructure:"ssh-key"` // SshKnownHosts Known hosts in addition to the user and global host key database SshKnownHosts string `mapstructure:"ssh-known-hosts"` // SshStrict Whether to perform strict host key checking SshStrict bool `mapstructure:"ssh-strict"` // GitHubServerURL the base URL for the GitHub instance that you are trying to clone from GitHubServerURL string `mapstructure:"github-server-url"` // BitbucketServerURL the base URL for the Bitbucket instance that you are trying to clone from BitbucketServerURL string `mapstructure:"bitbucket-server-url"` // GitLabServerURL the base URL for the GitLab instance that you are trying to clone from GitLabServerURL string `mapstructure:"gitlab-server-url"` }
Config holds the configuration of the authentication to be applied
Click to show internal directories.
Click to hide internal directories.