mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-29 11:50:37 +00:00
17 lines
536 B
Go
17 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"`
|
|
}
|