Documentation
¶
Index ¶
Constants ¶
View Source
const DescriptionMaxCharactersLength = "100"
View Source
const DescriptionMinCharactersLength = "1"
View Source
const FilenameMaxCharactersLength = "50"
View Source
const FilenameMinCharactersLength = "1"
Variables ¶
View Source
var AllowedArch = []string{"amd64", "386"}
View Source
var AllowedOS = []string{"linux", "windows", "darwin"}
View Source
var InvalidArchValue = errors.InvalidValue{Message: "Architecture should be: " + strings.Join(AllowedArch, ", ")}
View Source
var InvalidDescriptionValue = errors.InvalidValue{Message: "Description must be between " + DescriptionMinCharactersLength + " to " + DescriptionMaxCharactersLength + " characters"}
View Source
var InvalidFilenameValue = errors.InvalidValue{Message: "Filename must be between " + FilenameMinCharactersLength + " to " + FilenameMaxCharactersLength + " characters"}
View Source
var InvalidFilepathValue = errors.InvalidValue{Message: "Filepath Invalid"}
View Source
var InvalidOSValue = errors.InvalidValue{Message: "Operating System should be: " + strings.Join(AllowedOS, ", ")}
Functions ¶
This section is empty.
Types ¶
type Description ¶
type Description struct {
Value string
}
func NewDescription ¶
func NewDescription(description string) *Description
Source Files
¶
Click to show internal directories.
Click to hide internal directories.