Add support for access repos with credentials
This commit is contained in:
+22
-6
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user