Documentation ¶
Index ¶
- Constants
- Variables
- func NormalizeName(name string) string
- type Config
- type Flag
- type Parameter
- func NewBase64(description string, required bool, spec map[string]string) (Parameter, error)
- func NewDatetime(description string, required bool, spec map[string]string) (Parameter, error)
- func NewDirectory(description string, required bool, spec map[string]string) (Parameter, error)
- func NewEmail(description string, required bool, spec map[string]string) (Parameter, error)
- func NewEnum(description string, required bool, spec map[string]string) (Parameter, error)
- func NewFile(description string, required bool, spec map[string]string) (Parameter, error)
- func NewFloat(description string, required bool, spec map[string]string) (Parameter, error)
- func NewGit(description string, required bool, spec map[string]string, ...) (Parameter, error)
- func NewHex(description string, required bool, spec map[string]string) (Parameter, error)
- func NewHostname(description string, required bool, spec map[string]string) (Parameter, error)
- func NewIP(description string, required bool, spec map[string]string) (Parameter, error)
- func NewInteger(description string, required bool, spec map[string]string) (Parameter, error)
- func NewJSON(description string, required bool, spec map[string]string) (Parameter, error)
- func NewMac(description string, required bool, spec map[string]string) (Parameter, error)
- func NewSemver(description string, required bool, spec map[string]string) (Parameter, error)
- func NewString(description string, required bool, spec map[string]string) (Parameter, error)
- func NewURL(description string, required bool, spec map[string]string) (Parameter, error)
- func NewUUID(description string, required bool, spec map[string]string) (Parameter, error)
- func NewXML(description string, required bool, spec map[string]string) (Parameter, error)
- type RawConfig
- type RawFlag
- type RawParameter
Constants ¶
View Source
const ( ParameterBase64 = "base64" Base64EncRawStd = "raw_std" Base64EncRawURL = "raw_url" Base64EncStd = "std" Base64EncURL = "url" Base64EncDefault = Base64EncStd )
View Source
const ParameterDatetime = "datetime"
View Source
const ParameterDirectory = "directory"
View Source
const ParameterEmail = "email"
View Source
const ParameterEnum = "enum"
View Source
const ParameterFile = "file"
View Source
const ParameterFloat = "float"
View Source
const ParameterGit = "git"
View Source
const ParameterHex = "hex"
View Source
const ParameterHostname = "hosthame"
View Source
const ParameterIP = "ip"
View Source
const ParameterInteger = "integer"
View Source
const ParameterJSON = "json"
View Source
const ParameterMac = "mac"
View Source
const ParameterSemver = "semver"
View Source
const ParameterString = "string"
View Source
const ParameterURL = "url"
View Source
const ParameterUUID = "uuid"
View Source
const ParameterXML = "xml"
Variables ¶
View Source
var ErrGitIncorrectRefType = errors.New("value does not conform an expected reference type")
Functions ¶
func NormalizeName ¶
Types ¶
type Config ¶
type Parameter ¶
type Parameter interface { Specification() map[string]string Description() string Type() string Required() bool Validate(context.Context, string) error }
func NewDatetime ¶
func NewDirectory ¶
func NewHostname ¶
func NewInteger ¶
Source Files ¶
- config.go
- flag.go
- mixin_fs_permissions.go
- mixin_string_length.go
- parameter.go
- parameter_base64.go
- parameter_datetime.go
- parameter_directory.go
- parameter_email.go
- parameter_enum.go
- parameter_file.go
- parameter_float.go
- parameter_git.go
- parameter_hex.go
- parameter_hostname.go
- parameter_integer.go
- parameter_ip.go
- parameter_json.go
- parameter_mac.go
- parameter_semver.go
- parameter_string.go
- parameter_url.go
- parameter_uuid.go
- parameter_xml.go
- raw.go
- utils.go
Click to show internal directories.
Click to hide internal directories.