autotest

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmsCfgKeyScope           = "AUTOTEST_SCOPE"
	CmsCfgKeyScopeID         = "AUTOTEST_SCOPE_ID"
	CmsCfgKeyDisplayName     = "AUTOTEST_DISPLAY_NAME"
	CmsCfgKeyDesc            = "AUTOTEST_DESC"
	CmsCfgKeyCreatorID       = "AUTOTEST_CREATOR_ID"
	CmsCfgKeyUpdaterID       = "AUTOTEST_UPDATER_ID"
	CmsCfgKeyCreatedAt       = "AUTOTEST_CREATED_AT"
	CmsCfgKeyUpdatedAt       = "AUTOTEST_UPDATED_AT"
	CmsCfgKeyAPIGlobalConfig = "AUTOTEST_API_GLOBAL_CONFIG"
	CmsCfgKeyUIGlobalConfig  = "AUTOTEST_UI_GLOBAL_CONFIG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

Option autotest 实例对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

func WithPipelineCms

func WithPipelineCms(cms cmspb.CmsServiceServer) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service autotest 实例对象封装

func New

func New(options ...Option) *Service

New 新建 autotest service

func (*Service) CreateFileTreeNodeHistory

func (svc *Service) CreateFileTreeNodeHistory(inode string) error

func (*Service) DeleteFileTreeNodeHistory

func (svc *Service) DeleteFileTreeNodeHistory(inode string)

func (*Service) QueryPipelineSnippetYaml

func (svc *Service) QueryPipelineSnippetYaml(req apistructs.SnippetConfig, identityIndo apistructs.IdentityInfo) (string, error)

QueryPipelineSnippetYaml 提供协议接口供 pipeline 引擎在运行时调用,根据 snippet 配置查询 snippet 对应的 pipelineYaml 文件内容 规则:

  • source: autotest
  • name: file tree node inode
  • labels: no need now

Jump to

Keyboard shortcuts

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