Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidAWSAccount describes invalid AWS Account IDs by sharing the // regular expression they must match ErrInvalidAWSAccount = fmt.Errorf("AWS account ID must match %q", awsAccountPattern) )
View Source
var ( // ErrInvalidAlias describes invalid alias(es) by sharing the regular expression // they must match ErrInvalidAlias = fmt.Errorf("each alias must match %q", aliasPattern) )
View Source
var ( // ErrInvalidEntry flags keywords that are not in the allow list ErrInvalidEntry = fmt.Errorf("only the following keywords are valid %q", bundleAllowList) )
View Source
var ( // ErrInvalidName describes invalid names by sharing the regular expression // they must match ErrInvalidName = fmt.Errorf("name must match %q", namePattern) )
View Source
var ( // ErrInvalidTag describes invalid tags by sharing the regular expression // they must match ErrInvalidTag = fmt.Errorf("tag must match %q", tagPattern) )
View Source
var ErrUnsafeReadme = fmt.Errorf("readme contained unsafe html content")
Functions ¶
func ValidateAWSAccount ¶
ValidateAWSAccount checks an AWS account id is valid. AWS Accounts must be a 12 digit number.
func ValidateAliases ¶ added in v0.1.27
func ValidateBundles ¶
func ValidateName ¶
func ValidateReadme ¶ added in v0.1.14
ValidateReadme validates the contents of a Markdown README.md file. If the contents are invalid, a string will be returned containing the diff of what the Markdown would look like as HTML if properly sanitized.
func ValidateTag ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.