Versions in this module Expand all Collapse all v1 v1.0.1 Jul 5, 2021 v1.0.0 Jun 8, 2021 Changes in this version + func ListAPIsByTestCaseIDs(projectID uint64, tcIDs []uint64) (map[uint64][]*ApiTest, error) v1.0.0-rc May 24, 2021 v1.0.0-RC May 21, 2021 v0 v0.0.1 May 21, 2021 Changes in this version + const ExtraAccessKey + const ExtraBucket + const ExtraEndpoint + const ExtraSecretKey + const HTTP + const PageNo + const PageSize + func CreateApiTest(at *ApiTest) (int64, error) + func CreateTestEnv(env *APITestEnv) (int64, error) + func DeleteApiTest(apiID int64) error + func DeleteTestEnv(envID int64) error + func InsertTPRecords(rs ...*TPRecordDO) error + func UpdateApiTest(at *ApiTest) (int64, error) + func UpdateApiTestResults(at *ApiTest) (int64, error) + func UpdateTestEnv(env *APITestEnv) error + type APITestEnv struct + CreatedAt time.Time + Domain string + EnvID int64 + EnvType string + Global string + Header string + ID int64 + Name string + UpdatedAt time.Time + func GetTestEnv(envID int64) (*APITestEnv, error) + func GetTestEnvListByEnvID(envID int64, envType string) ([]APITestEnv, error) + func (APITestEnv) TableName() string + type ApiTest struct + ApiInfo string + ApiRequest string + ApiResponse string + AssertResult string + CreatedAt time.Time + ID int64 + PipelineID int64 + ProjectID int64 + Status string + UpdatedAt time.Time + UsecaseID int64 + UsecaseOrder int64 + func GetApiTest(apiID int64) (*ApiTest, error) + func GetApiTestListByUsecaseID(usecaseID int64) ([]ApiTest, error) + func (ApiTest) TableName() string + type KV map[string]interface + type Paging struct + List interface{} + PageNo int + PageSize int + Total int64 + func FindTPRecordPagingByAppID(req apistructs.TestRecordPagingRequest) (*Paging, error) + func NewPaging(pageNo, pageSize int) *Paging + type Pipeline struct + Envs map[string]string + ResourceTypes []ResourceType + Resources []Resource + Stages []*Stage + Triggers []Trigger + Version string + type QASonar struct + ApplicationID int64 + ApplicationName string + Branch string + Bugs string + BuildID int64 + CodeSmells string + CommitID string + Coverage string + CreatedAt time.Time + Duplications string + GitRepo string + ID int64 + IssuesStatistics string + Key string + LogID string + OperatorID string + ProjectID int64 + UpdatedAt time.Time + Vulnerabilities string + func FindLatestSonarByAppID(appID int64) (*QASonar, error) + func (QASonar) TableName() string + type Resource struct + Name string + Source KV + Type string + type ResourceType struct + Name string + Source KV + Type string + type Schedule struct + Cron string + type Stage struct + Name string + Tasks []Tasks + type TPRecordDO struct + Application string + ApplicationID int64 + ApplicationName string + Avatar string + Branch string + BuildID int64 + CaseDir string + CommitID string + CreatedAt time.Time + Desc string + Envs map[string]string + Extra map[string]string + GitRepo string + ID uint64 + Name string + OperatorID string + OperatorName string + Output string + ParserType types.TestParserType + ProjectID int64 + Suites []*apistructs.TestSuite + TType apistructs.TestType + Totals *apistructs.TestTotals + UUID string + UpdatedAt time.Time + Workspace apistructs.DiceWorkspace + func FindTPRecord(tp *TPRecordDO) (*TPRecordDO, error) + func FindTPRecordByCommitId(commitID string) (*TPRecordDO, error) + func FindTPRecordById(id uint64) (*TPRecordDO, error) + func InsertTPRecord(r *TPRecordDO) (*TPRecordDO, error) + func NewTPRecordDO() *TPRecordDO + func (TPRecordDO) TableName() string + func (tp *TPRecordDO) EraseSensitiveInfo() + func (tp *TPRecordDO) GenSubject() string + func (tp *TPRecordDO) GetExtraInfo(key string) string + func (tp *TPRecordDO) GetRecordName() string + func (tp *TPRecordDO) SetCols(cols interface{}) (*TPRecordDO, error) + func (tp *TPRecordDO) SetTPType(tpType apistructs.TestType) *TPRecordDO + type Tasks KV + type Trigger struct + Schedule Schedule