Documentation
¶
Index ¶
- Variables
- type AccessTokenType
- type AccessTokenValue
- type AccountId
- type ActivityRecordCode
- type ActivityRecordId
- type ActivityRecordLevel
- type ActivityRecordMessage
- type Byte
- type CidrBlock
- type CityName
- type CompressionFormat
- type CountryCode
- type CurrencyCode
- type DnsRecordType
- type EnvelopedPrivateKey
- type Fqdn
- type GenericNotes
- type Hash
- type HttpMethod
- type HttpStatusCode
- type IpAddress
- type MailAddress
- type MimeType
- type NetworkPort
- type NetworkProtocol
- type PaginationLastSeenId
- type PaginationSortBy
- type PaginationSortDirection
- type Password
- type PhoneNumber
- type PrivateKeyAlgorithm
- type RelativeTime
- type StreetAddress
- type SystemResourceId
- type SystemResourceIdentifier
- func (vo SystemResourceIdentifier) ReadAccountId() (accountId AccountId, err error)
- func (vo SystemResourceIdentifier) ReadResourceId() (resourceId SystemResourceId, err error)
- func (vo SystemResourceIdentifier) ReadResourceType() (resourceType SystemResourceType, err error)
- func (vo SystemResourceIdentifier) String() string
- type SystemResourceType
- type UnixAbsoluteFilePath
- func (vo UnixAbsoluteFilePath) ReadCompoundFileExtension() (UnixFileExtension, error)
- func (vo UnixAbsoluteFilePath) ReadFileDir() UnixAbsoluteFilePath
- func (vo UnixAbsoluteFilePath) ReadFileExtension() (UnixFileExtension, error)
- func (vo UnixAbsoluteFilePath) ReadFileName(allowUnsafeChars bool) UnixFileName
- func (vo UnixAbsoluteFilePath) ReadFileNameWithoutExtension(allowUnsafeChars bool) UnixFileName
- func (vo UnixAbsoluteFilePath) ReadWithoutExtension(allowUnsafeChars bool) UnixAbsoluteFilePath
- func (vo UnixAbsoluteFilePath) String() string
- type UnixCommand
- type UnixFileExtension
- type UnixFileName
- type UnixFileOwnership
- type UnixGroupId
- type UnixGroupName
- type UnixHostname
- type UnixRelativeFilePath
- func (vo UnixRelativeFilePath) ReadCompoundFileExtension() (UnixFileExtension, error)
- func (vo UnixRelativeFilePath) ReadFileDir() UnixRelativeFilePath
- func (vo UnixRelativeFilePath) ReadFileExtension() (UnixFileExtension, error)
- func (vo UnixRelativeFilePath) ReadFileName() UnixFileName
- func (vo UnixRelativeFilePath) ReadFileNameWithoutExtension() UnixFileName
- func (vo UnixRelativeFilePath) ReadWithoutExtension() UnixRelativeFilePath
- func (vo UnixRelativeFilePath) String() string
- type UnixTime
- func (vo UnixTime) Int64() int64
- func (vo UnixTime) IsBetween(startDate, endDate UnixTime) bool
- func (vo UnixTime) IsFuture() bool
- func (vo UnixTime) IsPast() bool
- func (vo UnixTime) ReadAsGoTime() time.Time
- func (vo UnixTime) ReadDateOnly() string
- func (ut UnixTime) ReadDateTime() string
- func (ut UnixTime) ReadEndOfDay() time.Time
- func (vo UnixTime) ReadRfcDate() string
- func (ut UnixTime) ReadStartOfDay() time.Time
- func (vo UnixTime) ReadTimeOnly() string
- func (vo UnixTime) String() string
- type UnixUserId
- type UnixUsername
- type Url
- type UrlPath
- type UserAgent
- type WeakPassword
- type X509BasicConstraints
- type X509CertificatePolicy
- type X509DistinguishedName
- type X509EnvelopedCertificate
- type X509ExtendedKeyUsage
- type X509Fingerprint
- type X509KeyIdentifier
- type X509KeyUsage
- type X509Locality
- type X509Organization
- type X509OrganizationalUnit
- type X509PolicyName
- type X509PolicyOID
- type X509PolicyQualifier
- type X509PublicKeyAlgorithm
- type X509PublicKeySize
- type X509PublicKeyValue
- type X509SerialNumber
- type X509SignatureAlgorithm
- type X509SignatureValue
- type X509StateOrProvince
- type X509SubjectName
- type X509VersionNumber
- type ZipCode
Constants ¶
This section is empty.
Variables ¶
var AccountIdSystem = AccountId(0)
var AvailableCountryCodes = []CountryCode{}/* 181 elements not displayed */
var HumanlyUsedCharsRegex = regexp.MustCompile(`^[\p{L}\p{N}\p{Pd}\p{Pi}\p{Pf}\p{Pc}\p{Po}\p{Z}\p{Sc}\(\)\[\]\+\=]+$`)
var IpAddressLocal = IpAddress("127.0.0.1")
var ValidCompressionFormats = []string{
"tar", "tar.gz", "gzip", "zip", "xz", "br",
}
var ValidPrivateKeyAlgorithms = []string{ PrivateKeyAlgorithmRSA.String(), PrivateKeyAlgorithmECDSA.String(), PrivateKeyAlgorithmDSA.String(), PrivateKeyAlgorithmEd25519.String(), }
Functions ¶
This section is empty.
Types ¶
type AccessTokenType ¶ added in v0.0.8
type AccessTokenType string
var ( AccessTokenTypeSessionToken AccessTokenType = "sessionToken" AccessTokenTypeSecretKey AccessTokenType = "secretKey" )
func NewAccessTokenType ¶ added in v0.0.8
func NewAccessTokenType(value any) (tokenType AccessTokenType, err error)
func (AccessTokenType) String ¶ added in v0.0.8
func (vo AccessTokenType) String() string
type AccessTokenValue ¶ added in v0.0.8
type AccessTokenValue string
func NewAccessTokenValue ¶ added in v0.0.8
func NewAccessTokenValue(value any) (tokenValue AccessTokenValue, err error)
func (AccessTokenValue) String ¶ added in v0.0.8
func (vo AccessTokenValue) String() string
type ActivityRecordCode ¶ added in v0.1.2
type ActivityRecordCode string
func NewActivityRecordCode ¶ added in v0.1.2
func NewActivityRecordCode(value any) (recordCode ActivityRecordCode, err error)
func (ActivityRecordCode) String ¶ added in v0.1.2
func (vo ActivityRecordCode) String() string
type ActivityRecordId ¶ added in v0.1.2
type ActivityRecordId uint64
func NewActivityRecordId ¶ added in v0.1.2
func NewActivityRecordId(value any) (recordId ActivityRecordId, err error)
func (ActivityRecordId) String ¶ added in v0.1.2
func (vo ActivityRecordId) String() string
func (ActivityRecordId) Uint64 ¶ added in v0.1.2
func (vo ActivityRecordId) Uint64() uint64
type ActivityRecordLevel ¶ added in v0.1.2
type ActivityRecordLevel string
var ( ActivityRecordLevelDebug ActivityRecordLevel = "DEBUG" ActivityRecordLevelInfo ActivityRecordLevel = "INFO" ActivityRecordLevelWarning ActivityRecordLevel = "WARNING" ActivityRecordLevelError ActivityRecordLevel = "ERROR" ActivityRecordLevelSecurity ActivityRecordLevel = "SECURITY" )
func NewActivityRecordLevel ¶ added in v0.1.2
func NewActivityRecordLevel(value any) (recordLevel ActivityRecordLevel, err error)
func (ActivityRecordLevel) String ¶ added in v0.1.2
func (vo ActivityRecordLevel) String() string
type ActivityRecordMessage ¶ added in v0.1.2
type ActivityRecordMessage string
ActivityRecordMessage is a string that represents the message of an activity record. Since it's supposed to be used by the system itself, it's not validated as much as other value objects on purpose. There is only a length limit of 2048 characters.
func NewActivityRecordMessage ¶ added in v0.1.2
func NewActivityRecordMessage(value any) (recordMessage ActivityRecordMessage, err error)
func (ActivityRecordMessage) String ¶ added in v0.1.2
func (vo ActivityRecordMessage) String() string
type Byte ¶ added in v0.0.8
type Byte uint64
func NewGibibyte ¶ added in v0.0.8
func NewKibibyte ¶ added in v0.0.8
func NewMebibyte ¶ added in v0.0.8
func NewTebibyte ¶ added in v0.0.8
func (Byte) StringWithSuffix ¶ added in v0.0.8
type CompressionFormat ¶ added in v0.0.7
type CompressionFormat string
var ( CompressionFormatTarball CompressionFormat = "tar" CompressionFormatGzippedTarball CompressionFormat = "tar.gz" CompressionFormatGzip CompressionFormat = "gzip" CompressionFormatZip CompressionFormat = "zip" CompressionFormatXz CompressionFormat = "xz" CompressionFormatBrotli CompressionFormat = "br" )
func NewCompressionFormat ¶ added in v0.0.7
func NewCompressionFormat(value any) (CompressionFormat, error)
func (CompressionFormat) String ¶ added in v0.0.7
func (vo CompressionFormat) String() string
type CountryCode ¶ added in v0.0.8
type CountryCode string
func NewCountryCode ¶ added in v0.0.8
func NewCountryCode(value any) (countryCode CountryCode, err error)
func (CountryCode) ReadCountryName ¶ added in v0.0.8
func (vo CountryCode) ReadCountryName() (string, error)
func (CountryCode) String ¶ added in v0.0.8
func (vo CountryCode) String() string
type CurrencyCode ¶ added in v0.0.8
type CurrencyCode string
var ( CurrencyCodeAED CurrencyCode = "AED" CurrencyCodeAUD CurrencyCode = "AUD" CurrencyCodeBRL CurrencyCode = "BRL" CurrencyCodeCAD CurrencyCode = "CAD" CurrencyCodeCHF CurrencyCode = "CHF" CurrencyCodeCLP CurrencyCode = "CLP" CurrencyCodeCNY CurrencyCode = "CNY" CurrencyCodeCOP CurrencyCode = "COP" CurrencyCodeCZK CurrencyCode = "CZK" CurrencyCodeDKK CurrencyCode = "DKK" CurrencyCodeEUR CurrencyCode = "EUR" CurrencyCodeGBP CurrencyCode = "GBP" CurrencyCodeHKD CurrencyCode = "HKD" CurrencyCodeHUF CurrencyCode = "HUF" CurrencyCodeIDR CurrencyCode = "IDR" CurrencyCodeILS CurrencyCode = "ILS" CurrencyCodeINR CurrencyCode = "INR" CurrencyCodeJPY CurrencyCode = "JPY" CurrencyCodeKRW CurrencyCode = "KRW" CurrencyCodeMXN CurrencyCode = "MXN" CurrencyCodeMYR CurrencyCode = "MYR" CurrencyCodeNOK CurrencyCode = "NOK" CurrencyCodeNZD CurrencyCode = "NZD" CurrencyCodePEN CurrencyCode = "PEN" CurrencyCodePHP CurrencyCode = "PHP" CurrencyCodePLN CurrencyCode = "PLN" CurrencyCodeRON CurrencyCode = "RON" CurrencyCodeRUB CurrencyCode = "RUB" CurrencyCodeSAR CurrencyCode = "SAR" CurrencyCodeSEK CurrencyCode = "SEK" CurrencyCodeSGD CurrencyCode = "SGD" CurrencyCodeTHB CurrencyCode = "THB" CurrencyCodeTRY CurrencyCode = "TRY" CurrencyCodeTWD CurrencyCode = "TWD" CurrencyCodeUSD CurrencyCode = "USD" CurrencyCodeXCD CurrencyCode = "XCD" CurrencyCodeZAR CurrencyCode = "ZAR" CurrencyCodeDefault CurrencyCode = CurrencyCodeUSD )
func NewCurrencyCode ¶ added in v0.0.8
func NewCurrencyCode(value any) (currencyCode CurrencyCode, err error)
func (CurrencyCode) ReadCurrencyName ¶ added in v0.0.8
func (vo CurrencyCode) ReadCurrencyName() (string, error)
func (CurrencyCode) String ¶ added in v0.0.8
func (vo CurrencyCode) String() string
type DnsRecordType ¶ added in v0.1.8
type DnsRecordType string
var ( DnsRecordTypeA DnsRecordType = "A" DnsRecordTypeAAAA DnsRecordType = "AAAA" DnsRecordTypeMX DnsRecordType = "MX" DnsRecordTypeTXT DnsRecordType = "TXT" DnsRecordTypeNS DnsRecordType = "NS" DnsRecordTypeCNAME DnsRecordType = "CNAME" DnsRecordTypePTR DnsRecordType = "PTR" DnsRecordTypeDefault = DnsRecordTypeA )
func NewDnsRecordType ¶ added in v0.1.8
func NewDnsRecordType(value any) (dnsRecordType DnsRecordType, err error)
func (DnsRecordType) String ¶ added in v0.1.8
func (vo DnsRecordType) String() string
type EnvelopedPrivateKey ¶ added in v0.2.0
type EnvelopedPrivateKey string
func NewEnvelopedPrivateKey ¶ added in v0.2.0
func NewEnvelopedPrivateKey( value any, ) (envelopedKey EnvelopedPrivateKey, err error)
func (EnvelopedPrivateKey) Bytes ¶ added in v0.2.0
func (vo EnvelopedPrivateKey) Bytes() []byte
func (EnvelopedPrivateKey) String ¶ added in v0.2.0
func (vo EnvelopedPrivateKey) String() string
type GenericNotes ¶ added in v0.0.8
type GenericNotes string
func NewGenericNotes ¶ added in v0.0.8
func NewGenericNotes(value any) (genericNotes GenericNotes, err error)
func (GenericNotes) String ¶ added in v0.0.8
func (vo GenericNotes) String() string
type HttpMethod ¶ added in v0.0.8
type HttpMethod string
var ( HttpMethodGet HttpMethod = "GET" HttpMethodHead HttpMethod = "HEAD" HttpMethodPost HttpMethod = "POST" HttpMethodPut HttpMethod = "PUT" HttpMethodDelete HttpMethod = "DELETE" HttpMethodConnect HttpMethod = "CONNECT" HttpMethodOptions HttpMethod = "OPTIONS" HttpMethodTrace HttpMethod = "TRACE" HttpMethodPatch HttpMethod = "PATCH" )
func NewHttpMethod ¶ added in v0.0.8
func NewHttpMethod(value any) (vo HttpMethod, err error)
func (HttpMethod) HasBodySupport ¶ added in v0.0.8
func (vo HttpMethod) HasBodySupport() bool
func (HttpMethod) String ¶ added in v0.0.8
func (vo HttpMethod) String() string
type HttpStatusCode ¶ added in v0.0.8
type HttpStatusCode uint16
var ( HttpStatusCodeContinue HttpStatusCode = 100 HttpStatusCodeSwitchingProtocols HttpStatusCode = 101 HttpStatusCodeProcessing HttpStatusCode = 102 HttpStatusCodeEarlyHints HttpStatusCode = 103 HttpStatusCodeOk HttpStatusCode = 200 HttpStatusCodeCreated HttpStatusCode = 201 HttpStatusCodeAccepted HttpStatusCode = 202 HttpStatusCodeNonAuthoritativeInfo HttpStatusCode = 203 HttpStatusCodeNoContent HttpStatusCode = 204 HttpStatusCodeResetContent HttpStatusCode = 205 HttpStatusCodePartialContent HttpStatusCode = 206 HttpStatusCodeMultiStatus HttpStatusCode = 207 HttpStatusCodeAlreadyReported HttpStatusCode = 208 HttpStatusCodeImUsed HttpStatusCode = 226 HttpStatusCodeMultipleChoices HttpStatusCode = 300 HttpStatusCodeMovedPermanently HttpStatusCode = 301 HttpStatusCodeFound HttpStatusCode = 302 HttpStatusCodeSeeOther HttpStatusCode = 303 HttpStatusCodeNotModified HttpStatusCode = 304 HttpStatusCodeTemporaryRedirect HttpStatusCode = 307 HttpStatusCodePermanentRedirect HttpStatusCode = 308 HttpStatusCodeBadRequest HttpStatusCode = 400 HttpStatusCodePaymentRequired HttpStatusCode = 402 HttpStatusCodeForbidden HttpStatusCode = 403 HttpStatusCodeNotFound HttpStatusCode = 404 HttpStatusCodeMethodNotAllowed HttpStatusCode = 405 HttpStatusCodeNotAcceptable HttpStatusCode = 406 HttpStatusCodeProxyAuthenticationRequired HttpStatusCode = 407 HttpStatusCodeRequestTimeout HttpStatusCode = 408 HttpStatusCodeConflict HttpStatusCode = 409 HttpStatusCodeGone HttpStatusCode = 410 HttpStatusCodeLengthRequired HttpStatusCode = 411 HttpStatusCodePreconditionFailed HttpStatusCode = 412 HttpStatusCodePayloadTooLarge HttpStatusCode = 413 HttpStatusCodeUriTooLong HttpStatusCode = 414 HttpStatusCodeUnsupportedMediaType HttpStatusCode = 415 HttpStatusCodeRangeNotSatisfiable HttpStatusCode = 416 HttpStatusCodeExpectationFailed HttpStatusCode = 417 HttpStatusCodeImATeapot HttpStatusCode = 418 HttpStatusCodeMisdirectedRequest HttpStatusCode = 421 HttpStatusCodeUnprocessableEntity HttpStatusCode = 422 HttpStatusCodeLocked HttpStatusCode = 423 HttpStatusCodeFailedDependency HttpStatusCode = 424 HttpStatusCodeTooEarly HttpStatusCode = 425 HttpStatusCodeUpgradeRequired HttpStatusCode = 426 HttpStatusCodePreconditionRequired HttpStatusCode = 428 HttpStatusCodeTooManyRequests HttpStatusCode = 429 HttpStatusCodeRequestHeaderFieldsTooLarge HttpStatusCode = 431 HttpStatusCodeInternalServerError HttpStatusCode = 500 HttpStatusCodeNotImplemented HttpStatusCode = 501 HttpStatusCodeBadGateway HttpStatusCode = 502 HttpStatusCodeGatewayTimeout HttpStatusCode = 504 HttpStatusCodeHttpVersionNotSupported HttpStatusCode = 505 HttpStatusCodeVariantAlsoNegotiates HttpStatusCode = 506 HttpStatusCodeInsufficientStorage HttpStatusCode = 507 HttpStatusCodeLoopDetected HttpStatusCode = 508 HttpStatusCodeNotExtended HttpStatusCode = 510 HttpStatusCodeNetworkAuthenticationRequired HttpStatusCode = 511 )
func NewHttpStatusCode ¶ added in v0.0.8
func NewHttpStatusCode(value any) (statusCode HttpStatusCode, err error)
func (HttpStatusCode) String ¶ added in v0.0.8
func (vo HttpStatusCode) String() string
func (HttpStatusCode) Uint16 ¶ added in v0.0.8
func (vo HttpStatusCode) Uint16() uint16
type MailAddress ¶
type MailAddress string
func NewMailAddress ¶
func NewMailAddress(value any) (mailAddress MailAddress, err error)
func (MailAddress) String ¶
func (vo MailAddress) String() string
type NetworkPort ¶ added in v0.0.8
type NetworkPort uint16
func NewNetworkPort ¶ added in v0.0.8
func NewNetworkPort(value interface{}) (networkPort NetworkPort, err error)
func (NetworkPort) String ¶ added in v0.0.8
func (vo NetworkPort) String() string
func (NetworkPort) Uint16 ¶ added in v0.0.8
func (vo NetworkPort) Uint16() uint16
type NetworkProtocol ¶ added in v0.0.8
type NetworkProtocol string
var ( NetworkProtocolHttp NetworkProtocol = "http" NetworkProtocolHttps NetworkProtocol = "https" NetworkProtocolWs NetworkProtocol = "ws" NetworkProtocolWss NetworkProtocol = "wss" NetworkProtocolGrpc NetworkProtocol = "grpc" NetworkProtocolGrpcs NetworkProtocol = "grpcs" NetworkProtocolTcp NetworkProtocol = "tcp" NetworkProtocolUdp NetworkProtocol = "udp" NetworkProtocolDefault NetworkProtocol = "http" )
func NewNetworkProtocol ¶ added in v0.0.8
func NewNetworkProtocol(value any) (networkProtocol NetworkProtocol, err error)
func (NetworkProtocol) String ¶ added in v0.0.8
func (vo NetworkProtocol) String() string
type PaginationLastSeenId ¶ added in v0.0.8
type PaginationLastSeenId string
func NewPaginationLastSeenId ¶ added in v0.0.8
func NewPaginationLastSeenId(value any) (lastSeenId PaginationLastSeenId, err error)
func (PaginationLastSeenId) String ¶ added in v0.0.8
func (vo PaginationLastSeenId) String() string
type PaginationSortBy ¶ added in v0.0.8
type PaginationSortBy string
func NewPaginationSortBy ¶ added in v0.0.8
func NewPaginationSortBy(value any) (sortBy PaginationSortBy, err error)
func (PaginationSortBy) String ¶ added in v0.0.8
func (vo PaginationSortBy) String() string
type PaginationSortDirection ¶ added in v0.0.8
type PaginationSortDirection string
var ( PaginationSortDirectionAsc PaginationSortDirection = "asc" PaginationSortDirectionDesc PaginationSortDirection = "desc" )
func NewPaginationSortDirection ¶ added in v0.0.8
func NewPaginationSortDirection(value any) ( sortDirection PaginationSortDirection, err error, )
func (PaginationSortDirection) String ¶ added in v0.0.8
func (vo PaginationSortDirection) String() string
type Password ¶ added in v0.0.8
type Password string
Password must be at least 5 characters long and at most 128 characters long. It must contain at least one letter, one number, and one special character. If you cannot control the password being validated (e.g. a password from an external service), use WeakPassword instead.
func NewPassword ¶ added in v0.0.8
type PhoneNumber ¶ added in v0.0.8
type PhoneNumber string
func NewPhoneNumber ¶ added in v0.0.8
func NewPhoneNumber(value any) (phoneNumber PhoneNumber, err error)
func (PhoneNumber) String ¶ added in v0.0.8
func (vo PhoneNumber) String() string
type PrivateKeyAlgorithm ¶ added in v0.2.0
type PrivateKeyAlgorithm string
var ( PrivateKeyAlgorithmRSA PrivateKeyAlgorithm = "RSA" PrivateKeyAlgorithmECDSA PrivateKeyAlgorithm = "ECDSA" PrivateKeyAlgorithmDSA PrivateKeyAlgorithm = "DSA" PrivateKeyAlgorithmEd25519 PrivateKeyAlgorithm = "Ed25519" )
func NewPrivateKeyAlgorithm ¶ added in v0.2.0
func NewPrivateKeyAlgorithm(value any) (PrivateKeyAlgorithm, error)
func (PrivateKeyAlgorithm) String ¶ added in v0.2.0
func (vo PrivateKeyAlgorithm) String() string
type RelativeTime ¶ added in v0.0.8
type RelativeTime string
func NewRelativeTime ¶ added in v0.0.8
func NewRelativeTime(value any) (relativeTime RelativeTime, err error)
func (RelativeTime) String ¶ added in v0.0.8
func (vo RelativeTime) String() string
type StreetAddress ¶ added in v0.0.8
type StreetAddress string
func NewStreetAddress ¶ added in v0.0.8
func NewStreetAddress(value any) (streetAddress StreetAddress, err error)
func (StreetAddress) String ¶ added in v0.0.8
func (vo StreetAddress) String() string
type SystemResourceId ¶ added in v0.1.6
type SystemResourceId string
func NewSystemResourceId ¶ added in v0.1.6
func NewSystemResourceId(value any) (resourceId SystemResourceId, err error)
func (SystemResourceId) String ¶ added in v0.1.6
func (vo SystemResourceId) String() string
type SystemResourceIdentifier ¶ added in v0.1.2
type SystemResourceIdentifier string
SystemResourceIdentifier is a string that represents the complete identifier of a system resource.
It has the following format: sri://<accountId>:<resourceType>/<resourceId>
- accountId: the account id of the resource, 0 if it's a system resource. It must be a positive integer.
- resourceType: the type of the resource. It must start with a letter and can only contain letters, numbers, underscores, and hyphens. It has a maximum length of 256 characters.
- resourceId: the id of the resource. It must start with a letter or number and can only contain letters, numbers, underscores, hyphens, and periods OR be a single asterisk ("*") to represent all resources of the type. It has a maximum length of 512 characters.
func NewSriAccount ¶ added in v0.1.5
func NewSriAccount(accountId AccountId) SystemResourceIdentifier
func NewSystemResourceIdentifier ¶ added in v0.1.2
func NewSystemResourceIdentifier(value any) (sri SystemResourceIdentifier, err error)
func NewSystemResourceIdentifierMustCreate ¶ added in v0.1.2
func NewSystemResourceIdentifierMustCreate(value any) SystemResourceIdentifier
Note: This function is solely used for developer auditing to warn about the misuse of the SystemResourceIdentifier Value Object. It is not intended for user input validation and should not be used as a model for other Value Objects. It is not a standard and should not be followed for the development of other Value Objects.
func (SystemResourceIdentifier) ReadAccountId ¶ added in v0.1.5
func (vo SystemResourceIdentifier) ReadAccountId() (accountId AccountId, err error)
func (SystemResourceIdentifier) ReadResourceId ¶ added in v0.1.5
func (vo SystemResourceIdentifier) ReadResourceId() (resourceId SystemResourceId, err error)
func (SystemResourceIdentifier) ReadResourceType ¶ added in v0.1.5
func (vo SystemResourceIdentifier) ReadResourceType() (resourceType SystemResourceType, err error)
func (SystemResourceIdentifier) String ¶ added in v0.1.2
func (vo SystemResourceIdentifier) String() string
type SystemResourceType ¶ added in v0.1.6
type SystemResourceType string
var (
SystemResourceTypeAccount SystemResourceType = "account"
)
func NewSystemResourceType ¶ added in v0.1.6
func NewSystemResourceType(value any) (resourceType SystemResourceType, err error)
func (SystemResourceType) String ¶ added in v0.1.6
func (vo SystemResourceType) String() string
type UnixAbsoluteFilePath ¶ added in v0.0.9
type UnixAbsoluteFilePath string
func NewUnixAbsoluteFilePath ¶ added in v0.0.9
func NewUnixAbsoluteFilePath(value any, allowUnsafeChars bool) ( filePath UnixAbsoluteFilePath, err error, )
func (UnixAbsoluteFilePath) ReadCompoundFileExtension ¶ added in v0.0.9
func (vo UnixAbsoluteFilePath) ReadCompoundFileExtension() (UnixFileExtension, error)
func (UnixAbsoluteFilePath) ReadFileDir ¶ added in v0.0.9
func (vo UnixAbsoluteFilePath) ReadFileDir() UnixAbsoluteFilePath
func (UnixAbsoluteFilePath) ReadFileExtension ¶ added in v0.0.9
func (vo UnixAbsoluteFilePath) ReadFileExtension() (UnixFileExtension, error)
func (UnixAbsoluteFilePath) ReadFileName ¶ added in v0.0.9
func (vo UnixAbsoluteFilePath) ReadFileName(allowUnsafeChars bool) UnixFileName
func (UnixAbsoluteFilePath) ReadFileNameWithoutExtension ¶ added in v0.0.9
func (vo UnixAbsoluteFilePath) ReadFileNameWithoutExtension(allowUnsafeChars bool) UnixFileName
func (UnixAbsoluteFilePath) ReadWithoutExtension ¶ added in v0.0.9
func (vo UnixAbsoluteFilePath) ReadWithoutExtension(allowUnsafeChars bool) UnixAbsoluteFilePath
func (UnixAbsoluteFilePath) String ¶ added in v0.0.9
func (vo UnixAbsoluteFilePath) String() string
type UnixCommand ¶ added in v0.0.8
type UnixCommand string
func NewUnixCommand ¶ added in v0.0.8
func NewUnixCommand(value any) (unixCommand UnixCommand, err error)
func (UnixCommand) String ¶ added in v0.0.8
func (vo UnixCommand) String() string
type UnixFileExtension ¶ added in v0.0.8
type UnixFileExtension string
func NewUnixFileExtension ¶ added in v0.0.8
func NewUnixFileExtension(value any) ( unixFileExtension UnixFileExtension, err error, )
func (UnixFileExtension) ReadMimeType ¶ added in v0.0.8
func (vo UnixFileExtension) ReadMimeType() MimeType
func (UnixFileExtension) String ¶ added in v0.0.8
func (vo UnixFileExtension) String() string
type UnixFileName ¶ added in v0.0.8
type UnixFileName string
func NewUnixFileName ¶ added in v0.0.8
func NewUnixFileName(value any, allowUnsafeChars bool) (fileName UnixFileName, err error)
func (UnixFileName) String ¶ added in v0.0.8
func (vo UnixFileName) String() string
type UnixFileOwnership ¶ added in v0.0.8
type UnixFileOwnership string
var ( UnixFileOwnershipNobodyNogroup UnixFileOwnership = "nobody:nogroup" UnixFileOwnershipRootRoot UnixFileOwnership = "root:root" )
func NewUnixFileOwnership ¶ added in v0.0.8
func NewUnixFileOwnership(value any) (fileOwnership UnixFileOwnership, err error)
func (UnixFileOwnership) ReadGroupName ¶ added in v0.0.8
func (vo UnixFileOwnership) ReadGroupName() (UnixGroupName, error)
func (UnixFileOwnership) ReadUsername ¶ added in v0.0.8
func (vo UnixFileOwnership) ReadUsername() (UnixUsername, error)
func (UnixFileOwnership) String ¶ added in v0.0.8
func (vo UnixFileOwnership) String() string
type UnixGroupId ¶ added in v0.0.8
type UnixGroupId uint64
func NewUnixGroupId ¶ added in v0.0.8
func NewUnixGroupId(value any) (UnixGroupId, error)
func (UnixGroupId) String ¶ added in v0.0.8
func (vo UnixGroupId) String() string
func (UnixGroupId) Uint64 ¶ added in v0.0.8
func (vo UnixGroupId) Uint64() uint64
type UnixGroupName ¶ added in v0.0.8
type UnixGroupName string
func NewUnixGroupName ¶ added in v0.0.8
func NewUnixGroupName(value any) (unixGroupName UnixGroupName, err error)
func (UnixGroupName) String ¶ added in v0.0.8
func (vo UnixGroupName) String() string
type UnixHostname ¶ added in v0.0.8
type UnixHostname string
func NewUnixHostname ¶ added in v0.0.8
func NewUnixHostname(value any) (hostname UnixHostname, err error)
func (UnixHostname) String ¶ added in v0.0.8
func (vo UnixHostname) String() string
type UnixRelativeFilePath ¶ added in v0.0.9
type UnixRelativeFilePath string
func NewUnixRelativeFilePath ¶ added in v0.0.9
func NewUnixRelativeFilePath(value any) (filePath UnixRelativeFilePath, err error)
Besides validating the input, NewUnixRelativeFilePath will also normalize the path. If the path is not relative, it will be converted to a relative path. For example, "/my/file.go" will be converted to "./my/file.go". Be careful with relative paths. Consider using UnixAbsoluteFilePath VO whenever possible.
func (UnixRelativeFilePath) ReadCompoundFileExtension ¶ added in v0.0.9
func (vo UnixRelativeFilePath) ReadCompoundFileExtension() (UnixFileExtension, error)
func (UnixRelativeFilePath) ReadFileDir ¶ added in v0.0.9
func (vo UnixRelativeFilePath) ReadFileDir() UnixRelativeFilePath
func (UnixRelativeFilePath) ReadFileExtension ¶ added in v0.0.9
func (vo UnixRelativeFilePath) ReadFileExtension() (UnixFileExtension, error)
func (UnixRelativeFilePath) ReadFileName ¶ added in v0.0.9
func (vo UnixRelativeFilePath) ReadFileName() UnixFileName
func (UnixRelativeFilePath) ReadFileNameWithoutExtension ¶ added in v0.0.9
func (vo UnixRelativeFilePath) ReadFileNameWithoutExtension() UnixFileName
func (UnixRelativeFilePath) ReadWithoutExtension ¶ added in v0.0.9
func (vo UnixRelativeFilePath) ReadWithoutExtension() UnixRelativeFilePath
func (UnixRelativeFilePath) String ¶ added in v0.0.9
func (vo UnixRelativeFilePath) String() string
type UnixTime ¶ added in v0.0.4
type UnixTime int64
func NewUnixTime ¶ added in v0.0.4
func NewUnixTimeAfterNow ¶ added in v0.0.4
func NewUnixTimeBeforeNow ¶ added in v0.0.4
func NewUnixTimeNow ¶ added in v0.0.4
func NewUnixTimeNow() UnixTime
func NewUnixTimeWithGoTime ¶ added in v0.0.4
func (UnixTime) ReadAsGoTime ¶ added in v0.0.4
func (UnixTime) ReadDateOnly ¶ added in v0.0.4
func (UnixTime) ReadDateTime ¶ added in v0.0.4
func (UnixTime) ReadEndOfDay ¶ added in v0.0.4
func (UnixTime) ReadRfcDate ¶ added in v0.0.4
func (UnixTime) ReadStartOfDay ¶ added in v0.0.4
func (UnixTime) ReadTimeOnly ¶ added in v0.0.4
type UnixUserId ¶ added in v0.0.8
type UnixUserId uint64
func NewUnixUserId ¶ added in v0.0.8
func NewUnixUserId(value any) (unixUserId UnixUserId, err error)
func (UnixUserId) String ¶ added in v0.0.8
func (vo UnixUserId) String() string
func (UnixUserId) Uint64 ¶ added in v0.0.8
func (vo UnixUserId) Uint64() uint64
type UnixUsername ¶ added in v0.0.8
type UnixUsername string
func NewUnixUsername ¶ added in v0.0.8
func NewUnixUsername(value any) (unixUsername UnixUsername, err error)
func (UnixUsername) String ¶ added in v0.0.8
func (vo UnixUsername) String() string
type UrlPath ¶ added in v0.0.8
type UrlPath string
func NewUrlPath ¶ added in v0.0.8
func (UrlPath) ReadWithoutQuery ¶ added in v0.0.8
func (UrlPath) ReadWithoutTrailingSlash ¶ added in v0.0.8
type WeakPassword ¶ added in v0.1.2
type WeakPassword string
WeakPassword is only for backward compatibility with old code or when the password being validated is outside the control of your application (e.g. a password from an external service). If possible, never use this type and instead use Password which provides stronger validation policies.
func NewWeakPassword ¶ added in v0.1.2
func NewWeakPassword(value any) (weakPassword WeakPassword, err error)
func (WeakPassword) String ¶ added in v0.1.2
func (vo WeakPassword) String() string
type X509BasicConstraints ¶ added in v0.2.0
type X509BasicConstraints struct {
IsAuthority bool `json:"isAuthority"`
MaxPathLength *int `json:"maxPathLength"`
}
func NewX509BasicConstraints ¶ added in v0.2.0
func NewX509BasicConstraints( isAuthority bool, maxPathLength *int, ) (constraints X509BasicConstraints, err error)
type X509CertificatePolicy ¶ added in v0.2.0
type X509CertificatePolicy struct {
PolicyIdentifier X509PolicyOID `json:"policyIdentifier"`
PolicyName *X509PolicyName `json:"policyName"`
PolicyQualifiers []X509PolicyQualifier `json:"policyQualifiers"`
}
func NewX509CertificatePolicy ¶ added in v0.2.0
func NewX509CertificatePolicy( policyIdentifier X509PolicyOID, policyName *X509PolicyName, policyQualifiers []X509PolicyQualifier, ) X509CertificatePolicy
type X509DistinguishedName ¶ added in v0.2.0
type X509DistinguishedName struct {
Organization *X509Organization `json:"organization"`
OrganizationalUnit []X509OrganizationalUnit `json:"organizationalUnit"`
Locality *X509Locality `json:"locality"`
StateOrProvince *X509StateOrProvince `json:"stateOrProvince"`
Country *CountryCode `json:"country"`
}
func NewX509DistinguishedName ¶ added in v0.2.0
func NewX509DistinguishedName( organization *X509Organization, organizationalUnit []X509OrganizationalUnit, locality *X509Locality, stateOrProvince *X509StateOrProvince, country *CountryCode, ) X509DistinguishedName
func NewX509DistinguishedNameFromPkixName ¶ added in v0.2.0
func NewX509DistinguishedNameFromPkixName( pkixName pkix.Name, ) (*X509DistinguishedName, error)
func (X509DistinguishedName) String ¶ added in v0.2.0
func (vo X509DistinguishedName) String() string
type X509EnvelopedCertificate ¶ added in v0.2.0
type X509EnvelopedCertificate string
func NewX509EnvelopedCertificate ¶ added in v0.2.0
func NewX509EnvelopedCertificate( value any, ) (envelopedCert X509EnvelopedCertificate, err error)
func (X509EnvelopedCertificate) Bytes ¶ added in v0.2.0
func (vo X509EnvelopedCertificate) Bytes() []byte
func (X509EnvelopedCertificate) String ¶ added in v0.2.0
func (vo X509EnvelopedCertificate) String() string
type X509ExtendedKeyUsage ¶ added in v0.2.0
type X509ExtendedKeyUsage string
var ( X509ExtendedKeyUsageServerAuth X509ExtendedKeyUsage = "serverAuth" X509ExtendedKeyUsageClientAuth X509ExtendedKeyUsage = "clientAuth" X509ExtendedKeyUsageCodeSigning X509ExtendedKeyUsage = "codeSigning" X509ExtendedKeyUsageEmailProtection X509ExtendedKeyUsage = "emailProtection" X509ExtendedKeyUsageTimeStamping X509ExtendedKeyUsage = "timeStamping" X509ExtendedKeyUsageOCSPSigning X509ExtendedKeyUsage = "ocspSigning" )
func NewX509ExtendedKeyUsage ¶ added in v0.2.0
func NewX509ExtendedKeyUsage( value any, ) (usage X509ExtendedKeyUsage, err error)
func NewX509ExtendedKeyUsageSliceFromStdlib ¶ added in v0.2.0
func NewX509ExtendedKeyUsageSliceFromStdlib( stdlibExtendedKeyUsages []x509.ExtKeyUsage, ) ([]X509ExtendedKeyUsage, error)
func (X509ExtendedKeyUsage) String ¶ added in v0.2.0
func (vo X509ExtendedKeyUsage) String() string
type X509Fingerprint ¶ added in v0.2.0
type X509Fingerprint string
func NewX509Fingerprint ¶ added in v0.2.0
func NewX509Fingerprint(value any) (fp X509Fingerprint, err error)
func (X509Fingerprint) String ¶ added in v0.2.0
func (vo X509Fingerprint) String() string
type X509KeyIdentifier ¶ added in v0.2.0
type X509KeyIdentifier string
func NewX509KeyIdentifier ¶ added in v0.2.0
func NewX509KeyIdentifier(value any) (id X509KeyIdentifier, err error)
func (X509KeyIdentifier) String ¶ added in v0.2.0
func (vo X509KeyIdentifier) String() string
type X509KeyUsage ¶ added in v0.2.0
type X509KeyUsage string
var ( X509KeyUsageDigitalSignature X509KeyUsage = "digitalSignature" X509KeyUsageContentCommitment X509KeyUsage = "contentCommitment" X509KeyUsageKeyEncipherment X509KeyUsage = "keyEncipherment" X509KeyUsageDataEncipherment X509KeyUsage = "dataEncipherment" X509KeyUsageKeyAgreement X509KeyUsage = "keyAgreement" X509KeyUsageKeyCertSign X509KeyUsage = "keyCertSign" X509KeyUsageCRLSign X509KeyUsage = "cRLSign" X509KeyUsageEncipherOnly X509KeyUsage = "encipherOnly" X509KeyUsageDecipherOnly X509KeyUsage = "decipherOnly" )
func NewX509KeyUsage ¶ added in v0.2.0
func NewX509KeyUsage(value any) (usage X509KeyUsage, err error)
func NewX509KeyUsageSliceFromStdlib ¶ added in v0.2.0
func NewX509KeyUsageSliceFromStdlib( stdlibKeyUsage x509.KeyUsage, ) ([]X509KeyUsage, error)
func (X509KeyUsage) String ¶ added in v0.2.0
func (vo X509KeyUsage) String() string
type X509Locality ¶ added in v0.2.0
type X509Locality string
func NewX509Locality ¶ added in v0.2.0
func NewX509Locality(value any) (locality X509Locality, err error)
func (X509Locality) String ¶ added in v0.2.0
func (vo X509Locality) String() string
type X509Organization ¶ added in v0.2.0
type X509Organization string
func NewX509Organization ¶ added in v0.2.0
func NewX509Organization(value any) (org X509Organization, err error)
func (X509Organization) String ¶ added in v0.2.0
func (vo X509Organization) String() string
type X509OrganizationalUnit ¶ added in v0.2.0
type X509OrganizationalUnit string
func NewX509OrganizationalUnit ¶ added in v0.2.0
func NewX509OrganizationalUnit( value any, ) (unit X509OrganizationalUnit, err error)
func (X509OrganizationalUnit) String ¶ added in v0.2.0
func (vo X509OrganizationalUnit) String() string
type X509PolicyName ¶ added in v0.2.0
type X509PolicyName string
func NewX509PolicyName ¶ added in v0.2.0
func NewX509PolicyName(value any) (name X509PolicyName, err error)
func (X509PolicyName) String ¶ added in v0.2.0
func (vo X509PolicyName) String() string
type X509PolicyOID ¶ added in v0.2.0
type X509PolicyOID string
func NewX509PolicyOID ¶ added in v0.2.0
func NewX509PolicyOID(value any) (oid X509PolicyOID, err error)
func (X509PolicyOID) String ¶ added in v0.2.0
func (vo X509PolicyOID) String() string
type X509PolicyQualifier ¶ added in v0.2.0
type X509PolicyQualifier string
var ( X509PolicyQualifierCPS X509PolicyQualifier = "cps" X509PolicyQualifierUserNotice X509PolicyQualifier = "userNotice" )
func NewX509PolicyQualifier ¶ added in v0.2.0
func NewX509PolicyQualifier( value any, ) (qualifier X509PolicyQualifier, err error)
func (X509PolicyQualifier) String ¶ added in v0.2.0
func (vo X509PolicyQualifier) String() string
type X509PublicKeyAlgorithm ¶ added in v0.2.0
type X509PublicKeyAlgorithm string
var ( X509PublicKeyAlgorithmRSA X509PublicKeyAlgorithm = "RSA" X509PublicKeyAlgorithmECDSA X509PublicKeyAlgorithm = "ECDSA" X509PublicKeyAlgorithmEd25519 X509PublicKeyAlgorithm = "Ed25519" X509PublicKeyAlgorithmDSA X509PublicKeyAlgorithm = "DSA" )
func NewX509PublicKeyAlgorithm ¶ added in v0.2.0
func NewX509PublicKeyAlgorithm( value any, ) (alg X509PublicKeyAlgorithm, err error)
func NewX509PublicKeyAlgorithmFromStdlib ¶ added in v0.2.0
func NewX509PublicKeyAlgorithmFromStdlib( stdlibAlgorithm x509.PublicKeyAlgorithm, ) (X509PublicKeyAlgorithm, error)
func (X509PublicKeyAlgorithm) String ¶ added in v0.2.0
func (vo X509PublicKeyAlgorithm) String() string
type X509PublicKeySize ¶ added in v0.2.0
type X509PublicKeySize uint16
func NewX509PublicKeySize ¶ added in v0.2.0
func NewX509PublicKeySize(value any) (size X509PublicKeySize, err error)
func NewX509PublicKeySizeFromStdlib ¶ added in v0.2.0
func NewX509PublicKeySizeFromStdlib( stdlibPublicKey any, ) (size X509PublicKeySize, err error)
func (X509PublicKeySize) String ¶ added in v0.2.0
func (vo X509PublicKeySize) String() string
func (X509PublicKeySize) Uint16 ¶ added in v0.2.0
func (vo X509PublicKeySize) Uint16() uint16
type X509PublicKeyValue ¶ added in v0.2.0
type X509PublicKeyValue string
func NewX509PublicKeyValue ¶ added in v0.2.0
func NewX509PublicKeyValue(value any) (key X509PublicKeyValue, err error)
func (X509PublicKeyValue) String ¶ added in v0.2.0
func (vo X509PublicKeyValue) String() string
type X509SerialNumber ¶ added in v0.2.0
type X509SerialNumber string
func NewX509SerialNumber ¶ added in v0.2.0
func NewX509SerialNumber(value any) (serial X509SerialNumber, err error)
func (X509SerialNumber) String ¶ added in v0.2.0
func (vo X509SerialNumber) String() string
type X509SignatureAlgorithm ¶ added in v0.2.0
type X509SignatureAlgorithm string
var ( X509SignatureAlgorithmSHA256WithRSA X509SignatureAlgorithm = "SHA256WithRSA" X509SignatureAlgorithmSHA384WithRSA X509SignatureAlgorithm = "SHA384WithRSA" X509SignatureAlgorithmSHA512WithRSA X509SignatureAlgorithm = "SHA512WithRSA" X509SignatureAlgorithmECDSAWithSHA256 X509SignatureAlgorithm = "ECDSAWithSHA256" X509SignatureAlgorithmECDSAWithSHA384 X509SignatureAlgorithm = "ECDSAWithSHA384" X509SignatureAlgorithmECDSAWithSHA512 X509SignatureAlgorithm = "ECDSAWithSHA512" X509SignatureAlgorithmEd25519 X509SignatureAlgorithm = "Ed25519" )
func NewX509SignatureAlgorithm ¶ added in v0.2.0
func NewX509SignatureAlgorithm( value any, ) (alg X509SignatureAlgorithm, err error)
func NewX509SignatureAlgorithmFromStdlib ¶ added in v0.2.0
func NewX509SignatureAlgorithmFromStdlib( stdlibAlgorithm x509.SignatureAlgorithm, ) (X509SignatureAlgorithm, error)
func (X509SignatureAlgorithm) String ¶ added in v0.2.0
func (vo X509SignatureAlgorithm) String() string
type X509SignatureValue ¶ added in v0.2.0
type X509SignatureValue string
func NewX509SignatureValue ¶ added in v0.2.0
func NewX509SignatureValue(value any) (sig X509SignatureValue, err error)
func (X509SignatureValue) String ¶ added in v0.2.0
func (vo X509SignatureValue) String() string
type X509StateOrProvince ¶ added in v0.2.0
type X509StateOrProvince string
func NewX509StateOrProvince ¶ added in v0.2.0
func NewX509StateOrProvince( value any, ) (state X509StateOrProvince, err error)
func (X509StateOrProvince) String ¶ added in v0.2.0
func (vo X509StateOrProvince) String() string
type X509SubjectName ¶ added in v0.2.0
type X509SubjectName string
func NewX509SubjectName ¶ added in v0.2.0
func NewX509SubjectName(value any) (name X509SubjectName, err error)
func (X509SubjectName) String ¶ added in v0.2.0
func (vo X509SubjectName) String() string
type X509VersionNumber ¶ added in v0.2.0
type X509VersionNumber uint8
func NewX509VersionNumber ¶ added in v0.2.0
func NewX509VersionNumber(value any) (version X509VersionNumber, err error)
func (X509VersionNumber) String ¶ added in v0.2.0
func (vo X509VersionNumber) String() string
func (X509VersionNumber) Uint8 ¶ added in v0.2.0
func (vo X509VersionNumber) Uint8() uint8
Source Files
¶
- accessTokenType.go
- accessTokenValue.go
- accountId.go
- activityRecordCode.go
- activityRecordId.go
- activityRecordLevel.go
- activityRecordMessage.go
- byte.go
- cidrBlock.go
- cityName.go
- compressionFormat.go
- countryCode.go
- currencyCode.go
- dnsRecordType.go
- envelopedPrivateKey.go
- fqdn.go
- genericNotes.go
- hash.go
- httpMethod.go
- httpStatusCode.go
- ipAddress.go
- mailAddress.go
- mimeType.go
- networkPort.go
- networkProtocol.go
- paginationLastSeenId.go
- paginationSortBy.go
- paginationSortDirection.go
- password.go
- phoneNumber.go
- privateKeyAlgorithm.go
- relativeTime.go
- streetAddress.go
- systemResourceId.go
- systemResourceIdentifier.go
- systemResourceType.go
- unixAbsoluteFilePath.go
- unixCommand.go
- unixFileExtension.go
- unixFileName.go
- unixFileOwnership.go
- unixGroupId.go
- unixGroupName.go
- unixHostname.go
- unixRelativeFilePath.go
- unixTime.go
- unixUserId.go
- unixUsername.go
- url.go
- urlPath.go
- userAgent.go
- x509BasicConstraints.go
- x509CertificatePolicy.go
- x509DistinguishedName.go
- x509EnvelopedCertificate.go
- x509ExtendedKeyUsage.go
- x509Fingerprint.go
- x509KeyIdentifier.go
- x509KeyUsage.go
- x509Locality.go
- x509Organization.go
- x509OrganizationalUnit.go
- x509PolicyName.go
- x509PolicyOid.go
- x509PolicyQualifier.go
- x509PublicKeyAlgorithm.go
- x509PublicKeySize.go
- x509PublicKeyValue.go
- x509SerialNumber.go
- x509SignatureAlgorithm.go
- x509SignatureValue.go
- x509StateOrProvince.go
- x509SubjectName.go
- x509VersionNumber.go
- zipCode.go