mirror of
https://github.com/portainer/portainer.git
synced 2026-06-23 07:30:13 +00:00
feat(1752): run gofmt
This commit is contained in:
@@ -46,6 +46,8 @@ func cloneRepository(repositoryURL, referenceName string, destination string) er
|
||||
return err
|
||||
}
|
||||
|
||||
// ClonePrivateRepositoryWithDeploymentKey clones a private git repository using the specified URL in the specified
|
||||
// destination folder. It will use the specified deployment key for SSH based authentication
|
||||
func (service *Service) ClonePrivateRepositoryWithDeploymentKey(repositoryURL, referenceName string, destination string, privateKeyPem []byte) error {
|
||||
signer, _ := ssh.ParsePrivateKey(privateKeyPem)
|
||||
auth := &gitSsh.PublicKeys{
|
||||
|
||||
+1
-1
@@ -222,7 +222,7 @@ type (
|
||||
// DeploymentKey represents the SSH key details that will be used to
|
||||
// connect to GitHub for deployments based on private key clone
|
||||
DeploymentKey struct {
|
||||
ID DeploymentKeyID `json:"Id`
|
||||
ID DeploymentKeyID `json:"Id"`
|
||||
Name string `json:"Name"`
|
||||
PublicKey string `json:"PublicKey"`
|
||||
PrivateKey []byte `json:"PrivateKey"`
|
||||
|
||||
Reference in New Issue
Block a user