mongodb

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildDailyItem

type BuildDailyItem struct {
	Date            string `bson:"date"               json:"date"`
	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 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 BuildItem

type BuildItem struct {
	Date            string `bson:"date"               json:"date"`
	TotalSuccess    int    `bson:"total_success"      json:"total_success"`
	TotalBuildCount int    `bson:"total_build_count"  json:"total_build_count"`
}

type BuildItemResp added in v1.9.9

type BuildItemResp struct {
	ID              string `bson:"_id" json:"_id"`
	TotalSuccess    int    `bson:"total_success"          json:"total_success"`
	TotalBuildCount int    `bson:"total_build_count"      json:"total_build_count"`
}

type BuildPipeResp

type BuildPipeResp struct {
	ID              BuildItem `bson:"_id"                    json:"_id"`
	TotalSuccess    int       `bson:"total_success"          json:"total_success"`
	TotalBuildCount int       `bson:"total_build_count"      json:"total_build_count"`
}

type BuildStat added in v1.9.9

type BuildStat struct {
	TotalSuccess    int `bson:"total_success"          json:"total_success"`
	TotalBuildCount int `bson:"total_build_count"      json:"total_build_count"`
}

type BuildStatColl

type BuildStatColl struct {
	*mongo.Collection
	// contains filtered or unexported fields
}

func NewBuildStatColl

func NewBuildStatColl() *BuildStatColl

func (*BuildStatColl) Create

func (c *BuildStatColl) Create(args *models.BuildStat) error

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)

func (*BuildStatColl) Update

func (c *BuildStatColl) Update(args *models.BuildStat) error

type DeployDailyItem

type DeployDailyItem struct {
	Date         string `bson:"date"                      json:"date"`
	TotalSuccess int    `bson:"total_deploy_success"      json:"total_deploy_success"`
	TotalFailure int    `bson:"total_deploy_failure"      json:"total_deploy_failure"`
}

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 DeployFailurePipeInfo struct {
	ProductName                 string `bson:"product_name"                      json:"productName"`
	MaxDeployFailureServiceName string `bson:"max_deploy_failure_service_name"   json:"maxDeployFailureServiceName"`
}

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 DeployStat struct {
	TotalSuccess int `bson:"total_deploy_success"     json:"total_deploy_success"`
	TotalFailure int `bson:"total_deploy_failure"     json:"total_deploy_failure"`
}

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 (*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 DeployStatGetOption struct {
	MaxDeployServiceNum int
	ServiceName         string
}

type DeployTotalItem

type DeployTotalItem struct {
	ProductName  string `bson:"product_name"              json:"product_name"`
	TotalSuccess int    `bson:"total_deploy_success"      json:"total_deploy_success"`
	TotalFailure int    `bson:"total_deploy_failure"      json:"total_deploy_failure"`
}

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) Create

func (c *TestStatColl) Create(args *models.TestStat) error

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)

func (*TestStatColl) Update

func (c *TestStatColl) Update(args *models.TestStat) error

type TestStatOption

type TestStatOption struct {
	StartDate    int64
	EndDate      int64
	IsAsc        bool
	ProductNames []string
}

Jump to

Keyboard shortcuts

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