package
0.0.0-20250304201544-e5f78fe3ede9
Repository: https://github.com/kubernetes/kube-openapi.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
DefaultNameNormalizer removes all dashes.
IsBSONObjectID returns true when the string is a valid BSON.ObjectId.
IsDate returns true when the string is a valid date.
IsDateTime returns true when the string is a valid date-time.
IsDuration returns true if the provided string is a valid duration.
IsEmail validates an email address.
IsHostname returns true when the string is a valid hostname.
IsUUID returns true is the string matches a UUID, upper case is allowed.
IsUUID3 returns true is the string matches a UUID, upper case is allowed.
IsUUID4 returns true is the string matches a UUID, upper case is allowed.
IsUUID5 returns true is the string matches a UUID, upper case is allowed.
NewDateTime is a representation of zero value for DateTime type.
NewFormats creates a new formats registry seeded with the values from the default.
NewObjectId creates a ObjectId from a Hex String.
NewSeededFormats creates a new formats registry.
ParseDateTime parses a string that represents an ISO8601 time or a unix epoch.
ParseDuration parses a duration from a string, compatible with scala duration syntax.
# Constants
DateTimePattern pattern to match for the date-time format from http://tools.ietf.org/html/rfc3339#section-5.6.
HostnamePattern http://json-schema.org/latest/json-schema-validation.html#anchor114 A string instance is valid against this attribute if it is a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].
ISO8601LocalTime represents a ISO8601 format to ISO8601 in local time (no timezone).
RFC3339FullDate represents a full-date as specified by RFC3339 See: http://goo.gl/xXOvVd.
RFC3339Micro represents a ISO8601 format to micro instead of to nano.
RFC3339Millis represents a ISO8601 format to millis instead of to nanos.
UUID3Pattern Regex for UUID3 that allows uppercase.
UUID4Pattern Regex for UUID4 that allows uppercase.
UUID5Pattern Regex for UUID5 that allows uppercase.
UUIDPattern Regex for UUID that allows uppercase.
# Variables
Default is the default formats registry.
MarshalFormat sets the time resolution format used for marshaling time (set to milliseconds).
# Type aliases
Base64 represents a base64 encoded string, using URLEncoding alphabet
swagger:strfmt byte.
CIDR represents a Classless Inter-Domain Routing notation
swagger:strfmt cidr.
CreditCard represents a credit card string format
swagger:strfmt creditcard.
Date represents a date from the API
swagger:strfmt date.
DateTime is a time but it serializes to ISO8601 format with millis It knows how to read 3 different variations of a RFC3339 date time.
Duration represents a duration
Duration stores a period of time as a nanosecond count, with the largest repesentable duration being approximately 290 years.
Email represents the email string format as specified by the json schema spec
swagger:strfmt email.
HexColor represents a hex color string format
swagger:strfmt hexcolor.
Hostname represents the hostname string format as specified by the json schema spec
swagger:strfmt hostname.
IPv4 represents an IP v4 address
swagger:strfmt ipv4.
IPv6 represents an IP v6 address
swagger:strfmt ipv6.
ISBN represents an isbn string format
swagger:strfmt isbn.
ISBN10 represents an isbn 10 string format
swagger:strfmt isbn10.
ISBN13 represents an isbn 13 string format
swagger:strfmt isbn13.
MAC represents a 48 bit MAC address
swagger:strfmt mac.
NameNormalizer is a function that normalizes a format name.
ObjectId represents a BSON object ID (alias to go.mongodb.org/mongo-driver/bson/primitive.ObjectID)
swagger:strfmt bsonobjectid.
Password represents a password.
RGBColor represents a RGB color string format
swagger:strfmt rgbcolor.
SSN represents a social security string format
swagger:strfmt ssn.
URI represents the uri string format as specified by the json schema spec
swagger:strfmt uri.
UUID represents a uuid string format
swagger:strfmt uuid.
UUID3 represents a uuid3 string format
swagger:strfmt uuid3.
UUID4 represents a uuid4 string format
swagger:strfmt uuid4.
UUID5 represents a uuid5 string format
swagger:strfmt uuid5.
Validator represents a validator for a string format.