mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 08:06:52 +02:00
18 lines
536 B
Go
18 lines
536 B
Go
package model
|
|
|
|
// ConfigStore persists pipeline configuration to storage.
|
|
type ConfigStore interface {
|
|
ConfigLoad(int64) (*Config, error)
|
|
ConfigFind(*Repo, string) (*Config, error)
|
|
ConfigFindApproved(*Config) (bool, error)
|
|
ConfigCreate(*Config) error
|
|
}
|
|
|
|
// Config represents a pipeline configuration.
|
|
type Config struct {
|
|
ID int64 `json:"-" meddler:"config_id,pk"`
|
|
RepoID int64 `json:"-" meddler:"config_repo_id"`
|
|
Data string `json:"data" meddler:"config_data"`
|
|
Hash string `json:"hash" meddler:"config_hash"`
|
|
}
|