Documentation ¶
Index ¶
- Constants
- type Option
- type Service
- func (svc *Service) CopyFileTreeNode(req apistructs.UnifiedFileTreeNodeCopyRequest) (*apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) CreateFileTreeNode(req apistructs.UnifiedFileTreeNodeCreateRequest) (*apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) CreateFileTreeNodeHistory(inode string) error
- func (svc *Service) CreateGlobalConfig(req apistructs.AutoTestGlobalConfigCreateRequest) (*apistructs.AutoTestGlobalConfig, error)
- func (svc *Service) DeleteFileTreeNode(req apistructs.UnifiedFileTreeNodeDeleteRequest) (*apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) DeleteFileTreeNodeHistory(inode string)
- func (svc *Service) DeleteGlobalConfig(req apistructs.AutoTestGlobalConfigDeleteRequest) (*apistructs.AutoTestGlobalConfig, error)
- func (svc *Service) FindFileTreeNodeAncestors(req apistructs.UnifiedFileTreeNodeFindAncestorsRequest) ([]apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) FuzzySearchFileTreeNodes(req apistructs.UnifiedFileTreeNodeFuzzySearchRequest) ([]apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) GetFileTreeNode(req apistructs.UnifiedFileTreeNodeGetRequest) (*apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) ListFileTreeNodes(req apistructs.UnifiedFileTreeNodeListRequest) ([]apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) ListGlobalConfigs(req apistructs.AutoTestGlobalConfigListRequest) ([]apistructs.AutoTestGlobalConfig, error)
- func (svc *Service) MoveFileTreeNode(req apistructs.UnifiedFileTreeNodeMoveRequest) (*apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) QueryFileTreeNodeHistory(req apistructs.UnifiedFileTreeNodeHistorySearchRequest) ([]*apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) QueryPipelineSnippetYaml(req apistructs.SnippetConfig, identityIndo apistructs.IdentityInfo) (string, error)
- func (svc *Service) SaveFileTreeNodePipeline(req apistructs.AutoTestCaseSavePipelineRequest) (*apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) UpdateFileTreeNodeBasicInfo(req apistructs.UnifiedFileTreeNodeUpdateBasicInfoRequest) (*apistructs.UnifiedFileTreeNode, error)
- func (svc *Service) UpdateGlobalConfig(req apistructs.AutoTestGlobalConfigUpdateRequest) (*apistructs.AutoTestGlobalConfig, error)
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 WithPipelineCms ¶
func WithPipelineCms(cms cmspb.CmsServiceServer) Option
func WithPipelineGraph ¶
func WithPipelineGraph(graph graphpb.GraphServiceServer) Option
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service autotest 实例对象封装
func (*Service) CopyFileTreeNode ¶
func (svc *Service) CopyFileTreeNode(req apistructs.UnifiedFileTreeNodeCopyRequest) (*apistructs.UnifiedFileTreeNode, error)
func (*Service) CreateFileTreeNode ¶
func (svc *Service) CreateFileTreeNode(req apistructs.UnifiedFileTreeNodeCreateRequest) (*apistructs.UnifiedFileTreeNode, error)
func (*Service) CreateFileTreeNodeHistory ¶
func (*Service) CreateGlobalConfig ¶
func (svc *Service) CreateGlobalConfig(req apistructs.AutoTestGlobalConfigCreateRequest) (*apistructs.AutoTestGlobalConfig, error)
func (*Service) DeleteFileTreeNode ¶
func (svc *Service) DeleteFileTreeNode(req apistructs.UnifiedFileTreeNodeDeleteRequest) (*apistructs.UnifiedFileTreeNode, error)
func (*Service) DeleteFileTreeNodeHistory ¶
func (*Service) DeleteGlobalConfig ¶
func (svc *Service) DeleteGlobalConfig(req apistructs.AutoTestGlobalConfigDeleteRequest) (*apistructs.AutoTestGlobalConfig, error)
func (*Service) FindFileTreeNodeAncestors ¶
func (svc *Service) FindFileTreeNodeAncestors(req apistructs.UnifiedFileTreeNodeFindAncestorsRequest) ([]apistructs.UnifiedFileTreeNode, error)
func (*Service) FuzzySearchFileTreeNodes ¶
func (svc *Service) FuzzySearchFileTreeNodes(req apistructs.UnifiedFileTreeNodeFuzzySearchRequest) ([]apistructs.UnifiedFileTreeNode, error)
func (*Service) GetFileTreeNode ¶
func (svc *Service) GetFileTreeNode(req apistructs.UnifiedFileTreeNodeGetRequest) (*apistructs.UnifiedFileTreeNode, error)
func (*Service) ListFileTreeNodes ¶
func (svc *Service) ListFileTreeNodes(req apistructs.UnifiedFileTreeNodeListRequest) ([]apistructs.UnifiedFileTreeNode, error)
func (*Service) ListGlobalConfigs ¶
func (svc *Service) ListGlobalConfigs(req apistructs.AutoTestGlobalConfigListRequest) ([]apistructs.AutoTestGlobalConfig, error)
func (*Service) MoveFileTreeNode ¶
func (svc *Service) MoveFileTreeNode(req apistructs.UnifiedFileTreeNodeMoveRequest) (*apistructs.UnifiedFileTreeNode, error)
func (*Service) QueryFileTreeNodeHistory ¶
func (svc *Service) QueryFileTreeNodeHistory(req apistructs.UnifiedFileTreeNodeHistorySearchRequest) ([]*apistructs.UnifiedFileTreeNode, error)
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
func (*Service) SaveFileTreeNodePipeline ¶
func (svc *Service) SaveFileTreeNodePipeline(req apistructs.AutoTestCaseSavePipelineRequest) (*apistructs.UnifiedFileTreeNode, error)
func (*Service) UpdateFileTreeNodeBasicInfo ¶
func (svc *Service) UpdateFileTreeNodeBasicInfo(req apistructs.UnifiedFileTreeNodeUpdateBasicInfoRequest) (*apistructs.UnifiedFileTreeNode, error)
func (*Service) UpdateGlobalConfig ¶
func (svc *Service) UpdateGlobalConfig(req apistructs.AutoTestGlobalConfigUpdateRequest) (*apistructs.AutoTestGlobalConfig, error)
Source Files ¶
- filetree.go
- filetree_copy.go
- filetree_create.go
- filetree_delete.go
- filetree_find_ancestors.go
- filetree_fuzzy_search.go
- filetree_get.go
- filetree_history.go
- filetree_history_create.go
- filetree_history_delete.go
- filetree_list.go
- filetree_move.go
- filetree_save_pipeline.go
- filetree_update_basicinfo.go
- global_config.go
- pipeline_snippet.go
- service.go
Click to show internal directories.
Click to hide internal directories.