org_resource

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*OrgResource)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dbclient.DBClient) Option

WithDBClient 配置 db client

func WithRedisClient

func WithRedisClient(cli *redis.Client) Option

WithRedisClient 配置 redis client

type OrgResource

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

func New

func New(options ...Option) *OrgResource

func (*OrgResource) DealReceiveTaskEvent

func (o *OrgResource) DealReceiveTaskEvent(req *apistructs.PipelineTaskEvent) (int64, error)

DealReceiveTaskEvent 处理接收到 pipeline 的 task 事件

func (*OrgResource) DealReceiveTaskRuntimeEvent

func (o *OrgResource) DealReceiveTaskRuntimeEvent(req *apistructs.PipelineTaskEvent) (int64, error)

DealReceiveTaskRuntimeEvent 处理接收到 pipeline 的 runtimeID 事件

func (*OrgResource) ListOrgRunningTasks

func (o *OrgResource) ListOrgRunningTasks(param *apistructs.OrgRunningTasksListRequest,
	orgID int64) (int64, []apistructs.OrgRunningTasks, error)

ListOrgRunningTasks impl: list running task or service by orgID

Jump to

Keyboard shortcuts

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