Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationCounts ¶
type ApplicationCounts struct { Counts []model.InsightApplicationCount UpdatedAt int64 }
type ApplicationData ¶ added in v0.40.0
type ApplicationData struct { ID string `json:"id"` Labels map[string]string `json:"labels"` Kind string `json:"kind"` Status string `json:"status"` }
func BuildApplicationData ¶ added in v0.40.0
func BuildApplicationData(a *model.Application) ApplicationData
type ApplicationGetter ¶ added in v0.40.0
type ApplicationGetter interface {
GetApplications(ctx context.Context, projectID string) (*ProjectApplicationData, error)
}
Storage for applications.
type ApplicationStore ¶ added in v0.40.0
type ApplicationStore interface { ApplicationGetter PutApplications(ctx context.Context, projectID string, as *ProjectApplicationData) error }
Storage for applications.
type CompletedDeploymentGetter ¶ added in v0.40.0
type CompletedDeploymentGetter interface { GetMilestone(ctx context.Context) (*Milestone, error) ListCompletedDeployments(ctx context.Context, projectID string, from, to int64) ([]*DeploymentData, error) }
Storage for completed deployments.
type CompletedDeploymentStore ¶ added in v0.40.0
type CompletedDeploymentStore interface { CompletedDeploymentGetter PutMilestone(ctx context.Context, m *Milestone) error PutCompletedDeployments(ctx context.Context, projectID string, ds []*DeploymentData) error }
Storage for completed deployments.
type DeploymentData ¶ added in v0.40.0
type DeploymentData struct { ID string `json:"id"` AppID string `json:"app_id"` Labels map[string]string `json:"labels"` StartedAt int64 `json:"started_at"` CompletedAt int64 `json:"completed_at"` CompleteStatus string `json:"complete_status"` RollbackStartedAt int64 `json:"rollback_started_at"` }
func BuildDeploymentData ¶ added in v0.40.0
func BuildDeploymentData(d *model.Deployment) DeploymentData
func (*DeploymentData) ContainLabels ¶ added in v0.40.0
func (d *DeploymentData) ContainLabels(labels map[string]string) bool
type Getter ¶ added in v0.40.0
type Getter interface { ApplicationGetter CompletedDeploymentGetter }
type Milestone ¶
type Milestone struct { // Mark that our collector has accumulated all deployments // that was completed before this value. DeploymentCompletedAtMilestone int64 `json:"deployment_completed_at_milestone"` }
type ProjectApplicationData ¶ added in v0.40.0
type ProjectApplicationData struct { Applications []*ApplicationData `json:"applications"` UpdatedAt int64 `json:"updated_at"` }
func BuildProjectApplicationData ¶ added in v0.40.0
func BuildProjectApplicationData(apps []*ApplicationData, updatedAt int64) ProjectApplicationData
type Provider ¶ added in v0.40.0
type Provider interface { GetApplicationCounts(ctx context.Context, projectID string) (*ApplicationCounts, error) GetDeploymentFrequencyDataPoints(ctx context.Context, projectID, appID string, labels map[string]string, rangeFrom, rangeTo int64, resolution model.InsightResolution) ([]*model.InsightDataPoint, error) GetDeploymentChangeFailureRateDataPoints(ctx context.Context, projectID, appID string, labels map[string]string, rangeFrom, rangeTo int64, resolution model.InsightResolution) ([]*model.InsightDataPoint, error) }
func NewProvider ¶ added in v0.40.0
type Store ¶ added in v0.40.0
type Store interface { ApplicationStore CompletedDeploymentStore }
Directories ¶
Path | Synopsis |
---|---|
Package insightstoretest is a generated GoMock package.
|
Package insightstoretest is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.