Add support for access repos with credentials

This commit is contained in:
2023-02-07 21:34:32 -07:00
parent d870335d25
commit 7a665aa348
5 changed files with 401 additions and 36 deletions
+22 -6
View File
@@ -6,11 +6,27 @@ import (
"github.com/google/uuid"
)
type CredentialType string
const (
USER_PASS CredentialType = "USER_PASS"
SSH_KEY CredentialType = "SSH_KEY"
)
type Credential struct {
Id uuid.UUID
Name string
Type CredentialType
Username string
Secret string
}
type Pipeline struct {
Id uuid.UUID
Name string
Url string
PollInterval int
Credential *uuid.UUID
}
type WebhookSender string
@@ -26,12 +42,6 @@ type Webhook struct {
Pipeline uuid.UUID
}
type Runner struct {
Id uuid.UUID
Name string
Secret string
}
type Run struct {
Id uuid.UUID
Pipeline uuid.UUID
@@ -51,3 +61,9 @@ type CommandExecution struct {
StartTime time.Time
EndTime time.Time
}
type Runner struct {
Id uuid.UUID
Name string
Secret string
}