From a36c45822a760c0c2bbadcd3e792b71a4bee4bb9 Mon Sep 17 00:00:00 2001 From: ssbkang Date: Thu, 4 Jul 2019 23:04:32 +1200 Subject: [PATCH] feat(1752): run gofmt --- api/git/git.go | 2 ++ api/portainer.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/git/git.go b/api/git/git.go index a715c5ca9..df514d45d 100644 --- a/api/git/git.go +++ b/api/git/git.go @@ -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{ diff --git a/api/portainer.go b/api/portainer.go index f6012de06..5da465546 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -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"`