validation

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Miscellaneous functions to validate that required proto and spec fields are non empty when required for execution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndFetchInputsForExecution

func CheckAndFetchInputsForExecution(
	userInputs *core.LiteralMap, fixedInputs *core.LiteralMap, expectedInputs *core.ParameterMap) (*core.LiteralMap, error)

func CheckValidExecutionID

func CheckValidExecutionID(executionID, fieldName string) error

func ValidateActiveLaunchPlanListRequest

func ValidateActiveLaunchPlanListRequest(request admin.ActiveLaunchPlanListRequest) error

func ValidateActiveLaunchPlanRequest

func ValidateActiveLaunchPlanRequest(request admin.ActiveLaunchPlanRequest) error

func ValidateCompiledWorkflow

func ValidateCompiledWorkflow(identifier core.Identifier, workflow admin.WorkflowClosure, config runtime.RegistrationValidationConfiguration) error

func ValidateCreateWorkflowEventRequest

func ValidateCreateWorkflowEventRequest(request admin.WorkflowExecutionEventRequest) error

func ValidateEmptyStringField

func ValidateEmptyStringField(field, fieldName string) error

func ValidateIdentifier

func ValidateIdentifier(id *core.Identifier, expectedType common.Entity) error

Validates that all required fields for an identifier are present.

func ValidateLimit

func ValidateLimit(limit uint32) error

func ValidateMaxLengthStringField added in v0.1.1

func ValidateMaxLengthStringField(field string, fieldName string, limit int) error

Validates that a string field does not exceed a certain character count

func ValidateNamedEntityGetRequest added in v0.1.5

func ValidateNamedEntityGetRequest(request admin.NamedEntityGetRequest) error

func ValidateNamedEntityIdentifier added in v0.1.5

func ValidateNamedEntityIdentifier(id *admin.NamedEntityIdentifier) error

Validates that all required fields for an identifier are present.

func ValidateNamedEntityIdentifierListRequest

func ValidateNamedEntityIdentifierListRequest(request admin.NamedEntityIdentifierListRequest) error

func ValidateNamedEntityListRequest added in v0.1.5

func ValidateNamedEntityListRequest(request admin.NamedEntityListRequest) error

func ValidateNamedEntityUpdateRequest added in v0.1.5

func ValidateNamedEntityUpdateRequest(request admin.NamedEntityUpdateRequest) error

func ValidateNodeExecutionForTaskListRequest

func ValidateNodeExecutionForTaskListRequest(request admin.NodeExecutionForTaskListRequest) error

func ValidateNodeExecutionIdentifier

func ValidateNodeExecutionIdentifier(identifier *core.NodeExecutionIdentifier) error

func ValidateNodeExecutionListRequest

func ValidateNodeExecutionListRequest(request admin.NodeExecutionListRequest) error

func ValidateProjectAndDomain

func ValidateProjectAndDomain(
	ctx context.Context, db repositories.RepositoryInterface, config runtimeInterfaces.ApplicationConfiguration, projectID, domainID string) error

Validates that a specified project and domain combination has been registered and exists in the db.

func ValidateProjectDomainAttributesDeleteRequest added in v0.2.0

func ValidateProjectDomainAttributesDeleteRequest(request admin.ProjectDomainAttributesDeleteRequest) error

func ValidateProjectDomainAttributesGetRequest added in v0.2.0

func ValidateProjectDomainAttributesGetRequest(request admin.ProjectDomainAttributesGetRequest) error

func ValidateProjectDomainAttributesUpdateRequest added in v0.1.4

func ValidateProjectDomainAttributesUpdateRequest(request admin.ProjectDomainAttributesUpdateRequest) (
	admin.MatchableResource, error)

func ValidateProjectRegisterRequest

func ValidateProjectRegisterRequest(request admin.ProjectRegisterRequest) error

func ValidateResourceListRequest

func ValidateResourceListRequest(request admin.ResourceListRequest) error

func ValidateResourceType added in v0.1.5

func ValidateResourceType(resourceType core.ResourceType) error

func ValidateTaskExecutionIdentifier

func ValidateTaskExecutionIdentifier(identifier *core.TaskExecutionIdentifier) error

func ValidateTaskExecutionListRequest

func ValidateTaskExecutionListRequest(request admin.TaskExecutionListRequest) error

func ValidateTaskExecutionRequest

func ValidateTaskExecutionRequest(request admin.TaskExecutionEventRequest) error

func ValidateToken

func ValidateToken(token string) (int, error)

Offsets are encoded as string tokens to enable future api pagination changes. In addition to validating that an offset is a valid integer, we assert that it is non-negative.

func ValidateVersion

func ValidateVersion(version string) error

func ValidateWorkflowAttributesDeleteRequest added in v0.2.0

func ValidateWorkflowAttributesDeleteRequest(request admin.WorkflowAttributesDeleteRequest) error

func ValidateWorkflowAttributesGetRequest added in v0.2.0

func ValidateWorkflowAttributesGetRequest(request admin.WorkflowAttributesGetRequest) error

func ValidateWorkflowAttributesUpdateRequest added in v0.2.0

func ValidateWorkflowAttributesUpdateRequest(request admin.WorkflowAttributesUpdateRequest) (
	admin.MatchableResource, error)

func ValidateWorkflowExecutionIdentifier

func ValidateWorkflowExecutionIdentifier(identifier *core.WorkflowExecutionIdentifier) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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