From be3425c548a783d8e571492763199fea4921f82b Mon Sep 17 00:00:00 2001 From: odubajDT <93584209+odubajDT@users.noreply.github.com> Date: Mon, 14 Feb 2022 11:52:07 +0100 Subject: [PATCH] feat: Add SSH publicKey auth support (#392) Signed-off-by: odubajDT --- pkg/api/models/create_project.go | 6 ++++++ pkg/api/models/project.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/pkg/api/models/create_project.go b/pkg/api/models/create_project.go index 50edf1f8..5efc3966 100644 --- a/pkg/api/models/create_project.go +++ b/pkg/api/models/create_project.go @@ -11,6 +11,12 @@ type CreateProject struct { // git token GitToken string `json:"gitToken,omitempty"` + // git private key + GitPrivateKey string `json:"gitPrivateKey,omitempty"` + + // git private key passphrase + GitPrivateKeyPass string `json:"gitPrivateKeyPass,omitempty"` + // git user GitUser string `json:"gitUser,omitempty"` diff --git a/pkg/api/models/project.go b/pkg/api/models/project.go index 0adb0b17..1b3e3d3b 100644 --- a/pkg/api/models/project.go +++ b/pkg/api/models/project.go @@ -14,6 +14,12 @@ type Project struct { // Git token GitToken string `json:"gitToken,omitempty"` + // git private key + GitPrivateKey string `json:"gitPrivateKey,omitempty"` + + // git private key passphrase + GitPrivateKeyPass string `json:"gitPrivateKeyPass,omitempty"` + // Git User GitUser string `json:"gitUser,omitempty"`