validation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAddCommentToPRArgs

func ValidateAddCommentToPRArgs(args *shared.VCSAddCommentToPRRequest) error

ValidateAddCommentToPRArgs checks the necessary fields in VCSAddCommentToPRRequest and returns errors if they are not set.

func ValidateAddRoleToPRArgs

func ValidateAddRoleToPRArgs(args *shared.VCSAddRoleToPRRequest) error

ValidateAddRoleToPRArgs checks the necessary fields in VCSAddRoleToPRRequest and returns errors if they are not set.

func ValidateBaseArgs

func ValidateBaseArgs(args *shared.VCSRequestBase) error

ValidateBaseArgs checks the common fields in VCSRequestBase and returns errors if they are not set.

func ValidateCommonCredentials

func ValidateCommonCredentials(username, token string) error

ValidateCommonCredentials checks for the presence of common credentials.

func ValidateFetchArgs

func ValidateFetchArgs(args *shared.VCSFetchRequest) error

ValidateFetchArgs checks the necessary fields in VCSFetchRequest and returns errors if they are not set.

func ValidateListArgs

func ValidateListArgs(args *shared.VCSListRepositoriesRequest) error

ValidateListArgs checks the necessary fields in VCSListRepositoriesRequest and returns errors if they are not set.

func ValidateRetrievePRInformationArgs

func ValidateRetrievePRInformationArgs(args *shared.VCSRetrievePRInformationRequest) error

ValidateRetrievePRInformationArgs checks the necessary fields in VCSRetrievePRInformationRequest and returns errors if they are not set.

func ValidateScanArgs

func ValidateScanArgs(args *shared.ScannerScanRequest) error

ValidateScanArgs checks the necessary fields in ScannerScanRequest and returns errors if they are not set

func ValidateSetStatusOfPRArgs

func ValidateSetStatusOfPRArgs(args *shared.VCSSetStatusOfPRRequest) error

ValidateSetStatusOfPRArgs checks the necessary fields in VCSSetStatusOfPRRequest and returns errors if they are not set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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