validate

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 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

View Source
var (
	ErrInvalidFilters                             = &types.BadRequestError{Message: "Request Filters are invalid, unable to parse."}
	ErrDomainNotSet                               = &types.BadRequestError{Message: "Domain not set on request."}
	ErrTaskTokenNotSet                            = &types.BadRequestError{Message: "Task token not set on request."}
	ErrInvalidTaskToken                           = &types.BadRequestError{Message: "Invalid TaskToken."}
	ErrTaskListNotSet                             = &types.BadRequestError{Message: "TaskList is not set on request."}
	ErrTaskListTypeNotSet                         = &types.BadRequestError{Message: "TaskListType is not set on request."}
	ErrExecutionNotSet                            = &types.BadRequestError{Message: "Execution is not set on request."}
	ErrWorkflowIDNotSet                           = &types.BadRequestError{Message: "WorkflowId is not set on request."}
	ErrActivityIDNotSet                           = &types.BadRequestError{Message: "ActivityID is not set on request."}
	ErrSignalNameNotSet                           = &types.BadRequestError{Message: "SignalName is not set on request."}
	ErrInvalidRunID                               = &types.BadRequestError{Message: "Invalid RunId."}
	ErrInvalidNextPageToken                       = &types.BadRequestError{Message: "Invalid NextPageToken."}
	ErrNextPageTokenRunIDMismatch                 = &types.BadRequestError{Message: "RunID in the request does not match the NextPageToken."}
	ErrQueryNotSet                                = &types.BadRequestError{Message: "WorkflowQuery is not set on request."}
	ErrQueryTypeNotSet                            = &types.BadRequestError{Message: "QueryType is not set on request."}
	ErrRequestNotSet                              = &types.BadRequestError{Message: "Request is nil."}
	ErrNoPermission                               = &types.BadRequestError{Message: "No permission to do this operation."}
	ErrWorkflowTypeNotSet                         = &types.BadRequestError{Message: "WorkflowType is not set on request."}
	ErrInvalidRetention                           = &types.BadRequestError{Message: "RetentionDays is invalid."}
	ErrInvalidExecutionStartToCloseTimeoutSeconds = &types.BadRequestError{Message: "A valid ExecutionStartToCloseTimeoutSeconds is not set on request."}
	ErrInvalidTaskStartToCloseTimeoutSeconds      = &types.BadRequestError{Message: "A valid TaskStartToCloseTimeoutSeconds is not set on request."}
	ErrInvalidDelayStartSeconds                   = &types.BadRequestError{Message: "A valid DelayStartSeconds is not set on request."}
	ErrInvalidJitterStartSeconds                  = &types.BadRequestError{Message: "A valid JitterStartSeconds is not set on request (negative)."}
	ErrInvalidJitterStartSeconds2                 = &types.BadRequestError{Message: "A valid JitterStartSeconds is not set on request (larger than cron duration)."}
	ErrQueryDisallowedForDomain                   = &types.BadRequestError{Message: "Domain is not allowed to query, please contact cadence team to re-enable queries."}
	ErrClusterNameNotSet                          = &types.BadRequestError{Message: "Cluster name is not set."}
	ErrEmptyReplicationInfo                       = &types.BadRequestError{Message: "Replication task info is not set."}
	ErrEmptyQueueType                             = &types.BadRequestError{Message: "Queue type is not set."}
	ErrDomainInLockdown                           = &types.BadRequestError{Message: "Domain is not accepting fail overs at this time due to lockdown."}
	ErrShuttingDown                               = &types.InternalServiceError{Message: "Shutting down"}

	// Err for archival
	ErrHistoryNotFound = &types.BadRequestError{Message: "Requested workflow history not found, may have passed retention period."}

	// Err for string too long
	ErrDomainTooLong       = &types.BadRequestError{Message: "Domain length exceeds limit."}
	ErrWorkflowTypeTooLong = &types.BadRequestError{Message: "WorkflowType length exceeds limit."}
	ErrWorkflowIDTooLong   = &types.BadRequestError{Message: "WorkflowID length exceeds limit."}
	ErrSignalNameTooLong   = &types.BadRequestError{Message: "SignalName length exceeds limit."}
	ErrTaskListTooLong     = &types.BadRequestError{Message: "TaskList length exceeds limit."}
	ErrRequestIDTooLong    = &types.BadRequestError{Message: "RequestID length exceeds limit."}
	ErrIdentityTooLong     = &types.BadRequestError{Message: "Identity length exceeds limit."}
)

Functions

func CheckExecution

func CheckExecution(w *types.WorkflowExecution) error

func CheckPermission

func CheckPermission(
	config *config.Config,
	securityToken string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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