package database import ( "time" "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 const ( Gitea WebhookSender = "gitea" ) type Webhook struct { Id uuid.UUID ServerType WebhookSender Secret string Pipeline uuid.UUID } type Run struct { Id uuid.UUID Pipeline uuid.UUID InProgress bool Result *int64 Stdout []byte Stderr []byte } type CommandExecution struct { Id uuid.UUID RunId uuid.UUID Command []string ReturnCode int Stdout string Stderr string StartTime time.Time EndTime time.Time } type Runner struct { Id uuid.UUID Name string Secret string }