Documentation ¶
Index ¶
- type CollectionRouteGetBasicInformationRequest
- type CollectionRouteGetBasicInformationResponse
- type CollectionRouteGetLatestResourceRevisionsRequest
- type CollectionRouteGetLatestResourceRevisionsResponse
- type CollectionRouteGetResourceRevisionStatisticsRequest
- type CollectionRouteGetResourceRevisionStatisticsResponse
- type Handler
- func (h Handler) CollectionRouteGetBasicInformation(req CollectionRouteGetBasicInformationRequest) (*CollectionRouteGetBasicInformationResponse, error)
- func (h Handler) CollectionRouteGetLatestResourceRevisions(req CollectionRouteGetLatestResourceRevisionsRequest) (CollectionRouteGetLatestResourceRevisionsResponse, int, error)
- func (h Handler) CollectionRouteGetResourceRevisionStatistics(req CollectionRouteGetResourceRevisionStatisticsRequest) (*CollectionRouteGetResourceRevisionStatisticsResponse, error)
- func (Handler) Kind() string
- type RevisionStatusCount
- type RevisionStatusStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionRouteGetBasicInformationRequest ¶
type CollectionRouteGetBasicInformationRequest struct { WithResourceComponent bool `query:"withResourceComponent,omitempty"` WithResourceRevision bool `query:"withResourceRevision,omitempty"` Context *gin.Context // contains filtered or unexported fields }
func (*CollectionRouteGetBasicInformationRequest) SetGinContext ¶
func (r *CollectionRouteGetBasicInformationRequest) SetGinContext(ctx *gin.Context)
type CollectionRouteGetBasicInformationResponse ¶
type CollectionRouteGetBasicInformationResponse struct { // Project number. Project int `json:"project"` // Environment number. Environment int `json:"environment"` // Connector number. Connector int `json:"connector"` // Resource number. Resource int `json:"resource"` // Resource component number. ResourceComponent int `json:"resourceComponent,omitempty"` // Resource revision number. ResourceRevision int `json:"resourceRevision,omitempty"` }
type CollectionRouteGetLatestResourceRevisionsRequest ¶ added in v0.4.0
type CollectionRouteGetLatestResourceRevisionsRequest struct { Context *gin.Context // contains filtered or unexported fields }
func (*CollectionRouteGetLatestResourceRevisionsRequest) SetGinContext ¶ added in v0.4.0
func (r *CollectionRouteGetLatestResourceRevisionsRequest) SetGinContext(ctx *gin.Context)
type CollectionRouteGetLatestResourceRevisionsResponse ¶ added in v0.4.0
type CollectionRouteGetLatestResourceRevisionsResponse = []*model.ResourceRevisionOutput
type CollectionRouteGetResourceRevisionStatisticsRequest ¶ added in v0.4.0
type CollectionRouteGetResourceRevisionStatisticsRequest struct { Step string `json:"step"` StartTime time.Time `json:"startTime"` EndTime time.Time `json:"endTime"` Context *gin.Context // contains filtered or unexported fields }
func (*CollectionRouteGetResourceRevisionStatisticsRequest) SetGinContext ¶ added in v0.4.0
func (r *CollectionRouteGetResourceRevisionStatisticsRequest) SetGinContext(ctx *gin.Context)
func (*CollectionRouteGetResourceRevisionStatisticsRequest) Validate ¶ added in v0.4.0
func (r *CollectionRouteGetResourceRevisionStatisticsRequest) Validate() error
type CollectionRouteGetResourceRevisionStatisticsResponse ¶ added in v0.4.0
type CollectionRouteGetResourceRevisionStatisticsResponse struct { StatusCount *RevisionStatusCount `json:"statusCount"` StatusStats []*RevisionStatusStats `json:"statusStats"` }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (Handler) CollectionRouteGetBasicInformation ¶
func (h Handler) CollectionRouteGetBasicInformation( req CollectionRouteGetBasicInformationRequest, ) (*CollectionRouteGetBasicInformationResponse, error)
func (Handler) CollectionRouteGetLatestResourceRevisions ¶ added in v0.4.0
func (h Handler) CollectionRouteGetLatestResourceRevisions( req CollectionRouteGetLatestResourceRevisionsRequest, ) (CollectionRouteGetLatestResourceRevisionsResponse, int, error)
CollectionRouteGetLatestResourceRevisions returns the latest 10 revisions of resources.
func (Handler) CollectionRouteGetResourceRevisionStatistics ¶ added in v0.4.0
func (h Handler) CollectionRouteGetResourceRevisionStatistics( req CollectionRouteGetResourceRevisionStatisticsRequest, ) (*CollectionRouteGetResourceRevisionStatisticsResponse, error)
CollectionRouteGetResourceRevisionStatistics returns statistics of resource revisions.
type RevisionStatusCount ¶
type RevisionStatusStats ¶
type RevisionStatusStats struct { RevisionStatusCount StartTime string `json:"startTime,omitempty"` }
RevisionStatusStats is the statistics of resource revision status.
Click to show internal directories.
Click to hide internal directories.