service

package
v0.0.0-...-26d813d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 54 Imported by: 13

Documentation

Index

Constants

View Source
const (
	QueryLogPath  = "/api/v1/log/task/query"
	OutputLineNum = 100
	OutputPeriod  = 5 * time.Second
)

Variables

This section is empty.

Functions

func CheckDomainDataSourceExists

func CheckDomainDataSourceExists(kusciaClient kusciaclientset.Interface, domainID, domainDataSourceID string) (kusciaError pberrorcode.ErrorCode, errorMsg string)

func CheckDomainExists

func CheckDomainExists(kusciaClient kusciaclientset.Interface, domainID string) (kusciaError pberrorcode.ErrorCode, errorMsg string)

func GetRoleAndDomainFromCtx

func GetRoleAndDomainFromCtx(ctx context.Context) (role, domain string)

Types

type IHealthService

type IHealthService interface {
	HealthZ(ctx context.Context, request *kusciaapi.HealthRequest) *kusciaapi.HealthResponse
}

func NewHealthService

func NewHealthService() IHealthService

type ILogService

type ILogService interface {
	QueryTaskLog(ctx context.Context, request *kusciaapi.QueryLogRequest, eventCh chan<- *kusciaapi.QueryLogResponse)
	QueryPodNode(ctx context.Context, request *kusciaapi.QueryPodNodeRequest) *kusciaapi.QueryPodNodeResponse
}

func NewLogService

func NewLogService(config *config.KusciaAPIConfig) ILogService

type RequestWithDomainID

type RequestWithDomainID interface {
	GetDomainId() string
}

type RequestWithDstAndSrc

type RequestWithDstAndSrc interface {
	GetDestination() string
	GetSource() string
}

Jump to

Keyboard shortcuts

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