valueObject

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 4 Imported by: 0

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 Arch

type Arch struct {
	Value string
}

func NewArch

func NewArch(arch string) *Arch

type Description

type Description struct {
	Value string
}

func NewDescription

func NewDescription(description string) *Description

type Filename

type Filename struct {
	Value string
}

func NewFilename

func NewFilename(filename string) *Filename

type Filepath

type Filepath struct {
	Value string
}

func NewFilepath

func NewFilepath(filepath string) *Filepath

type OS

type OS struct {
	Value string
}

func NewOS

func NewOS(os string) *OS

type Platform

type Platform struct {
	*OS
	*Arch
}

func NewPlatform

func NewPlatform(os, arch string) *Platform

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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