Documentation ¶
Index ¶
- type BuildDailyItem
- type BuildDailyPipeResp
- type BuildItem
- type BuildItemResp
- type BuildPipeResp
- type BuildStat
- type BuildStatColl
- func (c *BuildStatColl) Create(args *models.BuildStat) error
- func (c *BuildStatColl) EnsureIndex(ctx context.Context) error
- func (c *BuildStatColl) FindCount() (int, error)
- func (c *BuildStatColl) GetBuildDailyTotal(args *models.BuildStatOption) ([]*BuildDailyItem, error)
- func (c *BuildStatColl) GetBuildStats(args *models.BuildStatOption) (*BuildItem, error)
- func (c *BuildStatColl) GetBuildTotalAndSuccess() ([]*BuildItem, error)
- func (c *BuildStatColl) GetBuildTotalAndSuccessByTime(startTime, endTime int64) (int64, int64, error)
- func (c *BuildStatColl) GetCollectionName() string
- func (c *BuildStatColl) ListBuildStat(option *models.BuildStatOption) ([]*models.BuildStat, error)
- func (c *BuildStatColl) Update(args *models.BuildStat) error
- type DeployDailyItem
- type DeployDailyPipeResp
- type DeployFailurePipeInfo
- type DeployFailurePipeResp
- type DeployPipeInfo
- type DeployPipeResp
- type DeployStat
- type DeployStatColl
- func (c *DeployStatColl) Create(args *models.DeployStat) error
- func (c *DeployStatColl) EnsureIndex(ctx context.Context) error
- func (c *DeployStatColl) FindCount() (int, error)
- func (c *DeployStatColl) Get(args *DeployStatGetOption) (*models.DeployStat, error)
- func (c *DeployStatColl) GetCollectionName() string
- func (c *DeployStatColl) GetDeployDailyTotal(args *models.DeployStatOption) ([]*DeployDailyItem, error)
- func (c *DeployStatColl) GetDeployStats(args *models.DeployStatOption) ([]*DeployTotalItem, error)
- func (c *DeployStatColl) GetDeployTotalAndSuccess() ([]*DeployTotalItem, error)
- func (c *DeployStatColl) GetDeployTotalAndSuccessByTime(startTime, endTime int64) (int64, int64, error)
- func (c *DeployStatColl) ListDeployStat(option *models.DeployStatOption) ([]*models.DeployStat, error)
- func (c *DeployStatColl) Update(args *models.DeployStat) error
- type DeployStatGetOption
- type DeployTotalItem
- type DeployTotalPipeResp
- type TestStatColl
- func (c *TestStatColl) Create(args *models.TestStat) error
- func (c *TestStatColl) EnsureIndex(ctx context.Context) error
- func (c *TestStatColl) FindCount() (int, error)
- func (c *TestStatColl) GetCollectionName() string
- func (c *TestStatColl) ListTestStat(option *TestStatOption) (testStats []*models.TestStat, err error)
- func (c *TestStatColl) Update(args *models.TestStat) error
- type TestStatOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildDailyItem ¶
type BuildDailyPipeResp ¶
type BuildDailyPipeResp struct { ID BuildDailyItem `bson:"_id" json:"_id"` TotalSuccess int `bson:"total_success" json:"total_success"` TotalFailure int `bson:"total_failure" json:"total_failure"` TotalBuildCount int `bson:"total_build_count" json:"total_build_count"` }
type BuildItemResp ¶ added in v1.9.9
type BuildPipeResp ¶
type BuildStatColl ¶
type BuildStatColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewBuildStatColl ¶
func NewBuildStatColl() *BuildStatColl
func (*BuildStatColl) EnsureIndex ¶
func (c *BuildStatColl) EnsureIndex(ctx context.Context) error
func (*BuildStatColl) FindCount ¶
func (c *BuildStatColl) FindCount() (int, error)
func (*BuildStatColl) GetBuildDailyTotal ¶
func (c *BuildStatColl) GetBuildDailyTotal(args *models.BuildStatOption) ([]*BuildDailyItem, error)
func (*BuildStatColl) GetBuildStats ¶ added in v1.9.9
func (c *BuildStatColl) GetBuildStats(args *models.BuildStatOption) (*BuildItem, error)
func (*BuildStatColl) GetBuildTotalAndSuccess ¶
func (c *BuildStatColl) GetBuildTotalAndSuccess() ([]*BuildItem, error)
func (*BuildStatColl) GetBuildTotalAndSuccessByTime ¶ added in v1.9.9
func (c *BuildStatColl) GetBuildTotalAndSuccessByTime(startTime, endTime int64) (int64, int64, error)
func (*BuildStatColl) GetCollectionName ¶
func (c *BuildStatColl) GetCollectionName() string
func (*BuildStatColl) ListBuildStat ¶
func (c *BuildStatColl) ListBuildStat(option *models.BuildStatOption) ([]*models.BuildStat, error)
type DeployDailyItem ¶
type DeployDailyPipeResp ¶
type DeployDailyPipeResp struct { ID DeployDailyItem `bson:"_id" json:"_id"` TotalSuccess int `bson:"total_deploy_success" json:"total_deploy_success"` TotalFailure int `bson:"total_deploy_failure" json:"total_deploy_failure"` }
type DeployFailurePipeInfo ¶
type DeployFailurePipeResp ¶
type DeployFailurePipeResp struct { ID DeployFailurePipeInfo `bson:"_id" json:"_id"` MaxDeployFailureServiceNum int `bson:"max_deploy_failure_service_num" json:"maxDeployFailureServiceNum"` }
type DeployPipeInfo ¶
type DeployPipeInfo struct {
MaxDeployServiceName string `bson:"max_deploy_service_name" json:"maxDeployServiceName"`
}
type DeployPipeResp ¶
type DeployPipeResp struct { ID DeployPipeInfo `bson:"_id" json:"_id"` MaxDeployServiceNum int `bson:"max_deploy_service_num" json:"maxDeployServiceNum"` }
type DeployStat ¶ added in v1.9.9
type DeployStatColl ¶
type DeployStatColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewDeployStatColl ¶
func NewDeployStatColl() *DeployStatColl
func (*DeployStatColl) Create ¶
func (c *DeployStatColl) Create(args *models.DeployStat) error
func (*DeployStatColl) EnsureIndex ¶
func (c *DeployStatColl) EnsureIndex(ctx context.Context) error
func (*DeployStatColl) FindCount ¶
func (c *DeployStatColl) FindCount() (int, error)
func (*DeployStatColl) Get ¶
func (c *DeployStatColl) Get(args *DeployStatGetOption) (*models.DeployStat, error)
func (*DeployStatColl) GetCollectionName ¶
func (c *DeployStatColl) GetCollectionName() string
func (*DeployStatColl) GetDeployDailyTotal ¶
func (c *DeployStatColl) GetDeployDailyTotal(args *models.DeployStatOption) ([]*DeployDailyItem, error)
func (*DeployStatColl) GetDeployStats ¶ added in v1.9.9
func (c *DeployStatColl) GetDeployStats(args *models.DeployStatOption) ([]*DeployTotalItem, error)
func (*DeployStatColl) GetDeployTotalAndSuccess ¶
func (c *DeployStatColl) GetDeployTotalAndSuccess() ([]*DeployTotalItem, error)
func (*DeployStatColl) GetDeployTotalAndSuccessByTime ¶ added in v1.9.9
func (c *DeployStatColl) GetDeployTotalAndSuccessByTime(startTime, endTime int64) (int64, int64, error)
func (*DeployStatColl) ListDeployStat ¶
func (c *DeployStatColl) ListDeployStat(option *models.DeployStatOption) ([]*models.DeployStat, error)
func (*DeployStatColl) Update ¶
func (c *DeployStatColl) Update(args *models.DeployStat) error
type DeployStatGetOption ¶
type DeployTotalItem ¶
type DeployTotalPipeResp ¶
type DeployTotalPipeResp struct { ID DeployTotalItem `bson:"_id" json:"_id"` TotalSuccess int `bson:"total_deploy_success" json:"total_deploy_success"` TotalFailure int `bson:"total_deploy_failure" json:"total_deploy_failure"` }
type TestStatColl ¶
type TestStatColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewTestStatColl ¶
func NewTestStatColl() *TestStatColl
func (*TestStatColl) EnsureIndex ¶
func (c *TestStatColl) EnsureIndex(ctx context.Context) error
func (*TestStatColl) FindCount ¶
func (c *TestStatColl) FindCount() (int, error)
func (*TestStatColl) GetCollectionName ¶
func (c *TestStatColl) GetCollectionName() string
func (*TestStatColl) ListTestStat ¶
func (c *TestStatColl) ListTestStat(option *TestStatOption) (testStats []*models.TestStat, err error)
Click to show internal directories.
Click to hide internal directories.