Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(r *gin.RouterGroup, s *Service)
Register mounts our HTTP handler on the mux.
Types ¶
type Archive ¶ added in v1.1.0
type Archive struct { UID string `json:"uid"` Kind string `json:"kind"` Namespace string `json:"namespace"` Name string `json:"name"` Action string `json:"action"` StartTime time.Time `json:"start_time"` FinishTime time.Time `json:"finish_time"` }
Archive defines the basic information of an archive.
type Detail ¶ added in v1.1.0
type Detail struct { Archive YAML core.ExperimentYAMLDescription `json:"yaml"` }
Detail represents an archive instance.
type Report ¶
type Report struct { Meta *Archive `json:"meta"` Events []*core.Event `json:"events"` TotalTime string `json:"total_time"` TotalFaultTime string `json:"total_fault_time"` }
Report defines the report of archive experiments.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines a handler service for archive experiments.
func NewService ¶
func NewService( archive core.ExperimentStore, event core.EventStore, ) *Service
NewService returns an archive experiment service instance.
type StatusResponse ¶ added in v1.1.0
type StatusResponse struct {
Status string `json:"status"`
}
StatusResponse defines a common status struct.
Click to show internal directories.
Click to hide internal directories.