Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(deps RouterDeps) http.Handler
Types ¶
type ArtifactService ¶
type DriService ¶
type DriService interface {
Status() map[string]any
Create(spec.DriBinding) error
Get(string) (spec.DriBinding, error)
List() ([]spec.DriBinding, error)
}
type EvaluatorService ¶
type EvaluatorService interface {
Status() map[string]any
Enqueue(evaluator.ReplaySuite) (evaluator.EvaluationJob, error)
Get(string) (evaluator.EvaluationJob, error)
List() ([]evaluator.EvaluationJob, error)
RunJob(string) (evaluator.EvaluationJob, error)
}
type InstitutionService ¶
type InstitutionService interface {
Status() map[string]any
CreatePolicy(spec.GovernancePolicy) error
ListPolicies() ([]spec.GovernancePolicy, error)
CreateApproval(spec.ApprovalRequest) error
ListApprovals() ([]spec.ApprovalRequest, error)
CreateGate(spec.PromotionGate) error
ListGates() ([]spec.PromotionGate, error)
CreateCommonsEntry(spec.CommonsEntry) error
ListCommonsEntries() ([]spec.CommonsEntry, error)
}
type PromotionService ¶
type PromotionService interface {
Status() map[string]any
Create(spec.PromotionRecord) error
Get(string) (spec.PromotionRecord, error)
List() ([]spec.PromotionRecord, error)
}
type RouterDeps ¶
type RouterDeps struct {
Config config.Config
Tasks TaskpackService
DRI DriService
Artifacts ArtifactService
Promotions PromotionService
Evaluator EvaluatorService
Institution InstitutionService
}
Click to show internal directories.
Click to hide internal directories.