mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-03 04:33:48 +00:00
fix(deps): update golang-packages (#5336)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: qwerty287 <qwerty287@posteo.de>
This commit is contained in:
parent
79e4dd5380
commit
ddf5a09cd8
26 changed files with 70 additions and 43 deletions
|
@ -5340,6 +5340,18 @@ const docTemplate = `{
|
||||||
"StatusSkipped": "skipped as another step failed",
|
"StatusSkipped": "skipped as another step failed",
|
||||||
"StatusSuccess": "successfully finished"
|
"StatusSuccess": "successfully finished"
|
||||||
},
|
},
|
||||||
|
"x-enum-descriptions": [
|
||||||
|
"skipped as another step failed",
|
||||||
|
"pending to be executed",
|
||||||
|
"currently running",
|
||||||
|
"successfully finished",
|
||||||
|
"failed to finish (exit code != 0)",
|
||||||
|
"killed by user",
|
||||||
|
"error with the config / while parsing / some other system problem",
|
||||||
|
"waiting for approval",
|
||||||
|
"blocked and declined",
|
||||||
|
"created / internal use only"
|
||||||
|
],
|
||||||
"x-enum-varnames": [
|
"x-enum-varnames": [
|
||||||
"StatusSkipped",
|
"StatusSkipped",
|
||||||
"StatusPending",
|
"StatusPending",
|
||||||
|
@ -5751,6 +5763,12 @@ const docTemplate = `{
|
||||||
"RequireApprovalNone": "require approval for no events",
|
"RequireApprovalNone": "require approval for no events",
|
||||||
"RequireApprovalPullRequests": "require approval for all PRs"
|
"RequireApprovalPullRequests": "require approval for all PRs"
|
||||||
},
|
},
|
||||||
|
"x-enum-descriptions": [
|
||||||
|
"require approval for no events",
|
||||||
|
"require approval for PRs from forks (default)",
|
||||||
|
"require approval for all PRs",
|
||||||
|
"require approval for all external events"
|
||||||
|
],
|
||||||
"x-enum-varnames": [
|
"x-enum-varnames": [
|
||||||
"RequireApprovalNone",
|
"RequireApprovalNone",
|
||||||
"RequireApprovalForks",
|
"RequireApprovalForks",
|
||||||
|
@ -5885,6 +5903,13 @@ const docTemplate = `{
|
||||||
"PipelineErrorTypeGeneric": "some generic error",
|
"PipelineErrorTypeGeneric": "some generic error",
|
||||||
"PipelineErrorTypeLinter": "some error with the config syntax"
|
"PipelineErrorTypeLinter": "some error with the config syntax"
|
||||||
},
|
},
|
||||||
|
"x-enum-descriptions": [
|
||||||
|
"some error with the config syntax",
|
||||||
|
"using some deprecated feature",
|
||||||
|
"some error with the config semantics",
|
||||||
|
"some generic error",
|
||||||
|
"some bad-habit error"
|
||||||
|
],
|
||||||
"x-enum-varnames": [
|
"x-enum-varnames": [
|
||||||
"PipelineErrorTypeLinter",
|
"PipelineErrorTypeLinter",
|
||||||
"PipelineErrorTypeDeprecation",
|
"PipelineErrorTypeDeprecation",
|
||||||
|
|
8
go.mod
8
go.mod
|
@ -50,7 +50,7 @@ require (
|
||||||
github.com/stretchr/testify v1.10.0
|
github.com/stretchr/testify v1.10.0
|
||||||
github.com/swaggo/files v1.0.1
|
github.com/swaggo/files v1.0.1
|
||||||
github.com/swaggo/gin-swagger v1.6.0
|
github.com/swaggo/gin-swagger v1.6.0
|
||||||
github.com/swaggo/swag v1.16.4
|
github.com/swaggo/swag v1.16.5
|
||||||
github.com/urfave/cli-docs/v3 v3.0.0-alpha6
|
github.com/urfave/cli-docs/v3 v3.0.0-alpha6
|
||||||
github.com/urfave/cli/v3 v3.3.8
|
github.com/urfave/cli/v3 v3.3.8
|
||||||
github.com/xeipuuv/gojsonschema v1.2.0
|
github.com/xeipuuv/gojsonschema v1.2.0
|
||||||
|
@ -67,9 +67,9 @@ require (
|
||||||
google.golang.org/grpc v1.73.0
|
google.golang.org/grpc v1.73.0
|
||||||
google.golang.org/protobuf v1.36.6
|
google.golang.org/protobuf v1.36.6
|
||||||
gopkg.in/yaml.v3 v3.0.1
|
gopkg.in/yaml.v3 v3.0.1
|
||||||
k8s.io/api v0.33.2
|
k8s.io/api v0.33.3
|
||||||
k8s.io/apimachinery v0.33.2
|
k8s.io/apimachinery v0.33.3
|
||||||
k8s.io/client-go v0.33.2
|
k8s.io/client-go v0.33.3
|
||||||
src.techknowlogick.com/xormigrate v1.7.1
|
src.techknowlogick.com/xormigrate v1.7.1
|
||||||
xorm.io/builder v0.3.13
|
xorm.io/builder v0.3.13
|
||||||
xorm.io/xorm v1.3.9
|
xorm.io/xorm v1.3.9
|
||||||
|
|
16
go.sum
16
go.sum
|
@ -545,8 +545,8 @@ github.com/swaggo/files v1.0.1 h1:J1bVJ4XHZNq0I46UU90611i9/YzdrF7x92oX1ig5IdE=
|
||||||
github.com/swaggo/files v1.0.1/go.mod h1:0qXmMNH6sXNf+73t65aKeB+ApmgxdnkQzVTAj2uaMUg=
|
github.com/swaggo/files v1.0.1/go.mod h1:0qXmMNH6sXNf+73t65aKeB+ApmgxdnkQzVTAj2uaMUg=
|
||||||
github.com/swaggo/gin-swagger v1.6.0 h1:y8sxvQ3E20/RCyrXeFfg60r6H0Z+SwpTjMYsMm+zy8M=
|
github.com/swaggo/gin-swagger v1.6.0 h1:y8sxvQ3E20/RCyrXeFfg60r6H0Z+SwpTjMYsMm+zy8M=
|
||||||
github.com/swaggo/gin-swagger v1.6.0/go.mod h1:BG00cCEy294xtVpyIAHG6+e2Qzj/xKlRdOqDkvq0uzo=
|
github.com/swaggo/gin-swagger v1.6.0/go.mod h1:BG00cCEy294xtVpyIAHG6+e2Qzj/xKlRdOqDkvq0uzo=
|
||||||
github.com/swaggo/swag v1.16.4 h1:clWJtd9LStiG3VeijiCfOVODP6VpHtKdQy9ELFG3s1A=
|
github.com/swaggo/swag v1.16.5 h1:nMf2fEV1TetMTJb4XzD0Lz7jFfKJmJKGTygEey8NSxM=
|
||||||
github.com/swaggo/swag v1.16.4/go.mod h1:VBsHJRsDvfYvqoiMKnsdwhNV9LEMHgEDZcyVYX0sxPg=
|
github.com/swaggo/swag v1.16.5/go.mod h1:ngP2etMK5a0P3QBizic5MEwpRmluJZPHjXcMoj4Xesg=
|
||||||
github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE=
|
github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE=
|
||||||
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
|
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
|
||||||
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
|
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
|
||||||
|
@ -787,12 +787,12 @@ gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o=
|
gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o=
|
||||||
gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g=
|
gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g=
|
||||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||||
k8s.io/api v0.33.2 h1:YgwIS5jKfA+BZg//OQhkJNIfie/kmRsO0BmNaVSimvY=
|
k8s.io/api v0.33.3 h1:SRd5t//hhkI1buzxb288fy2xvjubstenEKL9K51KBI8=
|
||||||
k8s.io/api v0.33.2/go.mod h1:fhrbphQJSM2cXzCWgqU29xLDuks4mu7ti9vveEnpSXs=
|
k8s.io/api v0.33.3/go.mod h1:01Y/iLUjNBM3TAvypct7DIj0M0NIZc+PzAHCIo0CYGE=
|
||||||
k8s.io/apimachinery v0.33.2 h1:IHFVhqg59mb8PJWTLi8m1mAoepkUNYmptHsV+Z1m5jY=
|
k8s.io/apimachinery v0.33.3 h1:4ZSrmNa0c/ZpZJhAgRdcsFcZOw1PQU1bALVQ0B3I5LA=
|
||||||
k8s.io/apimachinery v0.33.2/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM=
|
k8s.io/apimachinery v0.33.3/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM=
|
||||||
k8s.io/client-go v0.33.2 h1:z8CIcc0P581x/J1ZYf4CNzRKxRvQAwoAolYPbtQes+E=
|
k8s.io/client-go v0.33.3 h1:M5AfDnKfYmVJif92ngN532gFqakcGi6RvaOF16efrpA=
|
||||||
k8s.io/client-go v0.33.2/go.mod h1:9mCgT4wROvL948w6f6ArJNb7yQd7QsvqavDeZHvNmHo=
|
k8s.io/client-go v0.33.3/go.mod h1:luqKBQggEf3shbxHY4uVENAxrDISLOarxpTKMiUuujg=
|
||||||
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
|
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
|
||||||
k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
|
k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
|
||||||
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4=
|
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4=
|
||||||
|
|
|
@ -22,11 +22,12 @@
|
||||||
package proto
|
package proto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
sync "sync"
|
sync "sync"
|
||||||
unsafe "unsafe"
|
unsafe "unsafe"
|
||||||
|
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -23,6 +23,7 @@ package proto
|
||||||
|
|
||||||
import (
|
import (
|
||||||
context "context"
|
context "context"
|
||||||
|
|
||||||
grpc "google.golang.org/grpc"
|
grpc "google.golang.org/grpc"
|
||||||
codes "google.golang.org/grpc/codes"
|
codes "google.golang.org/grpc/codes"
|
||||||
status "google.golang.org/grpc/status"
|
status "google.golang.org/grpc/status"
|
||||||
|
|
|
@ -28,7 +28,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"gitlab.com/gitlab-org/api/client-go"
|
gitlab "gitlab.com/gitlab-org/api/client-go"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
||||||
"go.woodpecker-ci.org/woodpecker/v3/server"
|
"go.woodpecker-ci.org/woodpecker/v3/server"
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/api/client-go"
|
gitlab "gitlab.com/gitlab-org/api/client-go"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package gitlab
|
package gitlab
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitlab.com/gitlab-org/api/client-go"
|
gitlab "gitlab.com/gitlab-org/api/client-go"
|
||||||
|
|
||||||
"go.woodpecker-ci.org/woodpecker/v3/server/model"
|
"go.woodpecker-ci.org/woodpecker/v3/server/model"
|
||||||
)
|
)
|
||||||
|
|
|
@ -40,7 +40,7 @@ type Agent struct {
|
||||||
CustomLabels map[string]string `json:"custom_labels" xorm:"JSON 'custom_labels'"`
|
CustomLabels map[string]string `json:"custom_labels" xorm:"JSON 'custom_labels'"`
|
||||||
// OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default
|
// OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default
|
||||||
OrgID int64 `json:"org_id" xorm:"INDEX 'org_id'"`
|
OrgID int64 `json:"org_id" xorm:"INDEX 'org_id'"`
|
||||||
} // @name Agent
|
} // @name Agent
|
||||||
|
|
||||||
const (
|
const (
|
||||||
IDNotSet = -1
|
IDNotSet = -1
|
||||||
|
|
|
@ -22,7 +22,7 @@ type Config struct {
|
||||||
Hash string `json:"hash" xorm:"UNIQUE(s) 'hash'"`
|
Hash string `json:"hash" xorm:"UNIQUE(s) 'hash'"`
|
||||||
Name string `json:"name" xorm:"UNIQUE(s) 'name'"`
|
Name string `json:"name" xorm:"UNIQUE(s) 'name'"`
|
||||||
Data []byte `json:"data" xorm:"LONGBLOB 'data'"`
|
Data []byte `json:"data" xorm:"LONGBLOB 'data'"`
|
||||||
} // @name Config
|
} // @name Config
|
||||||
|
|
||||||
func (Config) TableName() string {
|
func (Config) TableName() string {
|
||||||
return "configs"
|
return "configs"
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WebhookEvent string // @name WebhookEvent
|
type WebhookEvent string // @name WebhookEvent
|
||||||
|
|
||||||
const (
|
const (
|
||||||
EventPush WebhookEvent = "push"
|
EventPush WebhookEvent = "push"
|
||||||
|
@ -51,7 +51,7 @@ func (s WebhookEvent) Validate() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatusValue represent pipeline states woodpecker know.
|
// StatusValue represent pipeline states woodpecker know.
|
||||||
type StatusValue string // @name StatusValue
|
type StatusValue string // @name StatusValue
|
||||||
|
|
||||||
const (
|
const (
|
||||||
StatusSkipped StatusValue = "skipped" // skipped as another step failed
|
StatusSkipped StatusValue = "skipped" // skipped as another step failed
|
||||||
|
@ -78,7 +78,7 @@ func (s StatusValue) Validate() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// RepoVisibility represent to what state a repo in woodpecker is visible to others.
|
// RepoVisibility represent to what state a repo in woodpecker is visible to others.
|
||||||
type RepoVisibility string // @name RepoVisibility
|
type RepoVisibility string // @name RepoVisibility
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VisibilityPublic RepoVisibility = "public"
|
VisibilityPublic RepoVisibility = "public"
|
||||||
|
|
|
@ -29,7 +29,7 @@ type Cron struct {
|
||||||
Schedule string `json:"schedule" xorm:"schedule NOT NULL"` // @weekly, 3min, ...
|
Schedule string `json:"schedule" xorm:"schedule NOT NULL"` // @weekly, 3min, ...
|
||||||
Created int64 `json:"created" xorm:"created NOT NULL DEFAULT 0"`
|
Created int64 `json:"created" xorm:"created NOT NULL DEFAULT 0"`
|
||||||
Branch string `json:"branch" xorm:"branch"`
|
Branch string `json:"branch" xorm:"branch"`
|
||||||
} // @name Cron
|
} // @name Cron
|
||||||
|
|
||||||
// TableName returns the database table name for xorm.
|
// TableName returns the database table name for xorm.
|
||||||
func (Cron) TableName() string {
|
func (Cron) TableName() string {
|
||||||
|
|
|
@ -34,4 +34,4 @@ type Feed struct {
|
||||||
Author string `json:"author,omitempty" xorm:"pipeline_author"`
|
Author string `json:"author,omitempty" xorm:"pipeline_author"`
|
||||||
Avatar string `json:"author_avatar,omitempty" xorm:"pipeline_avatar"`
|
Avatar string `json:"author_avatar,omitempty" xorm:"pipeline_avatar"`
|
||||||
Email string `json:"author_email,omitempty" xorm:"pipeline_email"`
|
Email string `json:"author_email,omitempty" xorm:"pipeline_email"`
|
||||||
} // @name Feed
|
} // @name Feed
|
||||||
|
|
|
@ -35,7 +35,7 @@ type Forge struct {
|
||||||
SkipVerify bool `json:"skip_verify,omitempty" xorm:"bool"`
|
SkipVerify bool `json:"skip_verify,omitempty" xorm:"bool"`
|
||||||
OAuthHost string `json:"oauth_host,omitempty" xorm:"VARCHAR(250) 'oauth_host'"` // public url for oauth if different from url
|
OAuthHost string `json:"oauth_host,omitempty" xorm:"VARCHAR(250) 'oauth_host'"` // public url for oauth if different from url
|
||||||
AdditionalOptions map[string]any `json:"additional_options,omitempty" xorm:"json"`
|
AdditionalOptions map[string]any `json:"additional_options,omitempty" xorm:"json"`
|
||||||
} // @name Forge
|
} // @name Forge
|
||||||
|
|
||||||
// TableName returns the database table name for xorm.
|
// TableName returns the database table name for xorm.
|
||||||
func (Forge) TableName() string {
|
func (Forge) TableName() string {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package model
|
package model
|
||||||
|
|
||||||
// LogEntryType identifies the type of line in the logs.
|
// LogEntryType identifies the type of line in the logs.
|
||||||
type LogEntryType int // @name LogEntryType
|
type LogEntryType int // @name LogEntryType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LogEntryStdout LogEntryType = iota
|
LogEntryStdout LogEntryType = iota
|
||||||
|
@ -33,7 +33,7 @@ type LogEntry struct {
|
||||||
Data []byte `json:"data" xorm:"LONGBLOB"`
|
Data []byte `json:"data" xorm:"LONGBLOB"`
|
||||||
Created int64 `json:"-" xorm:"created"`
|
Created int64 `json:"-" xorm:"created"`
|
||||||
Type LogEntryType `json:"type" xorm:"'type'"`
|
Type LogEntryType `json:"type" xorm:"'type'"`
|
||||||
} // @name LogEntry
|
} // @name LogEntry
|
||||||
|
|
||||||
// TODO: store info what specific command the line belongs to (must be optional and impl. by backend)
|
// TODO: store info what specific command the line belongs to (must be optional and impl. by backend)
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ type Org struct {
|
||||||
IsUser bool `json:"is_user" xorm:"is_user"`
|
IsUser bool `json:"is_user" xorm:"is_user"`
|
||||||
// if name lookup has to check for membership or not
|
// if name lookup has to check for membership or not
|
||||||
Private bool `json:"-" xorm:"private"`
|
Private bool `json:"-" xorm:"private"`
|
||||||
} // @name Org
|
} // @name Org
|
||||||
|
|
||||||
// TableName return database table name for xorm.
|
// TableName return database table name for xorm.
|
||||||
func (Org) TableName() string {
|
func (Org) TableName() string {
|
||||||
|
|
|
@ -26,7 +26,7 @@ type Perm struct {
|
||||||
Synced int64 `json:"synced" xorm:"synced"`
|
Synced int64 `json:"synced" xorm:"synced"`
|
||||||
Created int64 `json:"created" xorm:"created"`
|
Created int64 `json:"created" xorm:"created"`
|
||||||
Updated int64 `json:"updated" xorm:"updated"`
|
Updated int64 `json:"updated" xorm:"updated"`
|
||||||
} // @name Perm
|
} // @name Perm
|
||||||
|
|
||||||
// TableName return database table name for xorm.
|
// TableName return database table name for xorm.
|
||||||
func (Perm) TableName() string {
|
func (Perm) TableName() string {
|
||||||
|
@ -37,4 +37,4 @@ func (Perm) TableName() string {
|
||||||
type OrgPerm struct {
|
type OrgPerm struct {
|
||||||
Member bool `json:"member"`
|
Member bool `json:"member"`
|
||||||
Admin bool `json:"admin"`
|
Admin bool `json:"admin"`
|
||||||
} // @name OrgPerm
|
} // @name OrgPerm
|
||||||
|
|
|
@ -53,7 +53,7 @@ type Pipeline struct {
|
||||||
PullRequestLabels []string `json:"pr_labels,omitempty" xorm:"json 'pr_labels'"`
|
PullRequestLabels []string `json:"pr_labels,omitempty" xorm:"json 'pr_labels'"`
|
||||||
IsPrerelease bool `json:"is_prerelease,omitempty" xorm:"is_prerelease"`
|
IsPrerelease bool `json:"is_prerelease,omitempty" xorm:"is_prerelease"`
|
||||||
FromFork bool `json:"from_fork,omitempty" xorm:"from_fork"`
|
FromFork bool `json:"from_fork,omitempty" xorm:"from_fork"`
|
||||||
} // @name Pipeline
|
} // @name Pipeline
|
||||||
|
|
||||||
// TableName return database table name for xorm.
|
// TableName return database table name for xorm.
|
||||||
func (Pipeline) TableName() string {
|
func (Pipeline) TableName() string {
|
||||||
|
@ -77,4 +77,4 @@ func (p Pipeline) IsMultiPipeline() bool {
|
||||||
type PipelineOptions struct {
|
type PipelineOptions struct {
|
||||||
Branch string `json:"branch"`
|
Branch string `json:"branch"`
|
||||||
Variables map[string]string `json:"variables"`
|
Variables map[string]string `json:"variables"`
|
||||||
} // @name PipelineOptions
|
} // @name PipelineOptions
|
||||||
|
|
|
@ -17,4 +17,4 @@ package model
|
||||||
type PullRequest struct {
|
type PullRequest struct {
|
||||||
Index ForgeRemoteID `json:"index"`
|
Index ForgeRemoteID `json:"index"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
} // @name PullRequest
|
} // @name PullRequest
|
||||||
|
|
|
@ -35,7 +35,7 @@ type Registry struct {
|
||||||
Username string `json:"username" xorm:"varchar(2000) 'username'"`
|
Username string `json:"username" xorm:"varchar(2000) 'username'"`
|
||||||
Password string `json:"password" xorm:"TEXT 'password'"`
|
Password string `json:"password" xorm:"TEXT 'password'"`
|
||||||
ReadOnly bool `json:"readonly" xorm:"-"`
|
ReadOnly bool `json:"readonly" xorm:"-"`
|
||||||
} // @name Registry
|
} // @name Registry
|
||||||
|
|
||||||
func (r Registry) TableName() string {
|
func (r Registry) TableName() string {
|
||||||
return "registries"
|
return "registries"
|
||||||
|
|
|
@ -72,7 +72,7 @@ type Repo struct {
|
||||||
Perm *Perm `json:"-" xorm:"-"`
|
Perm *Perm `json:"-" xorm:"-"`
|
||||||
CancelPreviousPipelineEvents []WebhookEvent `json:"cancel_previous_pipeline_events" xorm:"json 'cancel_previous_pipeline_events'"`
|
CancelPreviousPipelineEvents []WebhookEvent `json:"cancel_previous_pipeline_events" xorm:"json 'cancel_previous_pipeline_events'"`
|
||||||
NetrcTrustedPlugins []string `json:"netrc_trusted" xorm:"json 'netrc_trusted'"`
|
NetrcTrustedPlugins []string `json:"netrc_trusted" xorm:"json 'netrc_trusted'"`
|
||||||
} // @name Repo
|
} // @name Repo
|
||||||
|
|
||||||
// TableName return database table name for xorm.
|
// TableName return database table name for xorm.
|
||||||
func (Repo) TableName() string {
|
func (Repo) TableName() string {
|
||||||
|
@ -138,7 +138,7 @@ type RepoPatch struct {
|
||||||
CancelPreviousPipelineEvents *[]WebhookEvent `json:"cancel_previous_pipeline_events"`
|
CancelPreviousPipelineEvents *[]WebhookEvent `json:"cancel_previous_pipeline_events"`
|
||||||
NetrcTrusted *[]string `json:"netrc_trusted"`
|
NetrcTrusted *[]string `json:"netrc_trusted"`
|
||||||
Trusted *TrustedConfigurationPatch `json:"trusted"`
|
Trusted *TrustedConfigurationPatch `json:"trusted"`
|
||||||
} // @name RepoPatch
|
} // @name RepoPatch
|
||||||
|
|
||||||
type ForgeRemoteID string
|
type ForgeRemoteID string
|
||||||
|
|
||||||
|
@ -162,4 +162,4 @@ type TrustedConfigurationPatch struct {
|
||||||
type RepoLastPipeline struct {
|
type RepoLastPipeline struct {
|
||||||
*Repo
|
*Repo
|
||||||
LastPipeline *Pipeline `json:"last_pipeline,omitempty"`
|
LastPipeline *Pipeline `json:"last_pipeline,omitempty"`
|
||||||
} // @name RepoLastPipeline
|
} // @name RepoLastPipeline
|
||||||
|
|
|
@ -52,7 +52,7 @@ type Secret struct {
|
||||||
Value string `json:"value,omitempty" xorm:"TEXT 'value'"`
|
Value string `json:"value,omitempty" xorm:"TEXT 'value'"`
|
||||||
Images []string `json:"images" xorm:"json 'images'"`
|
Images []string `json:"images" xorm:"json 'images'"`
|
||||||
Events []WebhookEvent `json:"events" xorm:"json 'events'"`
|
Events []WebhookEvent `json:"events" xorm:"json 'events'"`
|
||||||
} // @name Secret
|
} // @name Secret
|
||||||
|
|
||||||
// TableName return database table name for xorm.
|
// TableName return database table name for xorm.
|
||||||
func (Secret) TableName() string {
|
func (Secret) TableName() string {
|
||||||
|
|
|
@ -39,7 +39,7 @@ type Step struct {
|
||||||
Started int64 `json:"started,omitempty" xorm:"started"`
|
Started int64 `json:"started,omitempty" xorm:"started"`
|
||||||
Finished int64 `json:"finished,omitempty" xorm:"finished"`
|
Finished int64 `json:"finished,omitempty" xorm:"finished"`
|
||||||
Type StepType `json:"type,omitempty" xorm:"type"`
|
Type StepType `json:"type,omitempty" xorm:"type"`
|
||||||
} // @name Step
|
} // @name Step
|
||||||
|
|
||||||
// TableName return database table name for xorm.
|
// TableName return database table name for xorm.
|
||||||
func (Step) TableName() string {
|
func (Step) TableName() string {
|
||||||
|
@ -57,7 +57,7 @@ func (p *Step) Failing() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// StepType identifies the type of step.
|
// StepType identifies the type of step.
|
||||||
type StepType string // @name StepType
|
type StepType string // @name StepType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
StepTypeClone StepType = "clone"
|
StepTypeClone StepType = "clone"
|
||||||
|
|
|
@ -30,7 +30,7 @@ type Task struct {
|
||||||
RunOn []string `json:"run_on" xorm:"json 'run_on'"`
|
RunOn []string `json:"run_on" xorm:"json 'run_on'"`
|
||||||
DepStatus map[string]StatusValue `json:"dep_status" xorm:"json 'dependencies_status'"`
|
DepStatus map[string]StatusValue `json:"dep_status" xorm:"json 'dependencies_status'"`
|
||||||
AgentID int64 `json:"agent_id" xorm:"'agent_id'"`
|
AgentID int64 `json:"agent_id" xorm:"'agent_id'"`
|
||||||
} // @name Task
|
} // @name Task
|
||||||
|
|
||||||
// TableName return database table name for xorm.
|
// TableName return database table name for xorm.
|
||||||
func (Task) TableName() string {
|
func (Task) TableName() string {
|
||||||
|
|
|
@ -71,7 +71,7 @@ type User struct {
|
||||||
|
|
||||||
// OrgID is the of the user as model.Org.
|
// OrgID is the of the user as model.Org.
|
||||||
OrgID int64 `json:"org_id" xorm:"org_id"`
|
OrgID int64 `json:"org_id" xorm:"org_id"`
|
||||||
} // @name User
|
} // @name User
|
||||||
|
|
||||||
// TableName return database table name for xorm.
|
// TableName return database table name for xorm.
|
||||||
func (User) TableName() string {
|
func (User) TableName() string {
|
||||||
|
|
|
@ -47,7 +47,7 @@ type InfoT struct {
|
||||||
Running int `json:"running_count"`
|
Running int `json:"running_count"`
|
||||||
} `json:"stats"`
|
} `json:"stats"`
|
||||||
Paused bool `json:"paused"`
|
Paused bool `json:"paused"`
|
||||||
} // @name InfoT
|
} // @name InfoT
|
||||||
|
|
||||||
func (t *InfoT) String() string {
|
func (t *InfoT) String() string {
|
||||||
var sb strings.Builder
|
var sb strings.Builder
|
||||||
|
|
Loading…
Reference in a new issue