httpapi

package
v0.1.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 10 Imported by: 0

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 ArtifactService interface {
	Status() map[string]any
	Create(spec.Artifact) error
	Get(string) (spec.Artifact, error)
	List() ([]spec.Artifact, error)
	ListByTaskpack(string) ([]spec.Artifact, error)
}

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
}

type TaskpackService

type TaskpackService interface {
	Status() map[string]any
	Create(spec.Taskpack) error
	Get(string) (spec.Taskpack, error)
	List() ([]spec.Taskpack, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL