response

package
v1.12.7 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIError

func NewAPIError(message, detailedMessage string) *models.APIError

func ToCondition

func ToCondition(cond *dag.Condition) *models.Condition

func ToDAG

func ToDAG(d *dag.DAG) *models.Dag

func ToDagDetail

func ToDagDetail(d *dag.DAG) *models.DagDetail

func ToDagListItem

func ToDagListItem(s *persistence.DAGStatus) *models.DagListItem

func ToDagLogGridItem

func ToDagLogGridItem(name string, vals []scheduler.NodeStatus) *models.DagLogGridItem

func ToDagLogResponse

func ToDagLogResponse(logs []*domain.StatusFile) *models.DagLogResponse

func ToDagSchedulerLogResponse

func ToDagSchedulerLogResponse(logFile, content string) *models.DagSchedulerLogResponse

func ToDagStatus

func ToDagStatus(s *domain.Status) *models.DagStatus

func ToDagStatusDetail

func ToDagStatusDetail(s *domain.Status) *models.DagStatusDetail

func ToDagStatusFile

func ToDagStatusFile(status *domain.StatusFile) *models.DagStatusFile

func ToDagStatusWithDetails

func ToDagStatusWithDetails(dagStatus *persistence.DAGStatus) *models.DagStatusWithDetails

func ToDagStepLogResponse

func ToDagStepLogResponse(logFile, content string, step *domain.Node) *models.DagStepLogResponse

func ToGetDagDetailResponse

func ToGetDagDetailResponse(
	workflowStatus *persistence.DAGStatus,
	tab string,
) *models.GetDagDetailsResponse

func ToHandlerOn

func ToHandlerOn(handlerOn dag.HandlerOn) *models.HandlerOn

func ToListDagResponse

func ToListDagResponse(
	dagStatusList []*persistence.DAGStatus,
	errs []string,
	hasError bool,
) *models.ListDagsResponse

func ToNode

func ToNode(node *domain.Node) *models.StatusNode

func ToRepeatPolicy

func ToRepeatPolicy(repeatPolicy dag.RepeatPolicy) *models.RepeatPolicy

func ToSchedule

func ToSchedule(s *dag.Schedule) *models.Schedule

func ToSearchDAGsMatchItem

func ToSearchDAGsMatchItem(match *grep.Match) *models.SearchDagsMatchItem

func ToSearchDAGsResponse

func ToSearchDAGsResponse(ret []*persistence.GrepResult, errs []string) *models.SearchDagsResponse

func ToSearchDAGsResultItem

func ToSearchDAGsResultItem(workflow *persistence.GrepResult) *models.SearchDagsResultItem

func ToStepObject

func ToStepObject(step *dag.Step) *models.StepObject

Types

type CodedError

type CodedError struct {
	Code     int
	APIError *models.APIError
}

func NewBadRequestError

func NewBadRequestError(err error) *CodedError

func NewCodedError

func NewCodedError(code int, apiError *models.APIError) *CodedError

func NewInternalError

func NewInternalError(err error) *CodedError

func NewNotFoundError

func NewNotFoundError(err error) *CodedError

Jump to

Keyboard shortcuts

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