Documentation ¶
Overview ¶
Package nits provides functions that are commonly needed in multiple projects and packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrX509InvalidPEMFormat invalid PEM format. ErrX509InvalidPEMFormat = errors.New("invalid PEM format") // ErrX509CertificateHasExpired certificate has expired. ErrX509CertificateHasExpired = errors.New("certificate has expired") // ErrX509CertificateIsNotYetValid certificate is not yet valid. ErrX509CertificateIsNotYetValid = errors.New("certificate is not yet valid") )
var Crypto cryptoUtility
Crypto is an entity that allows the methods of CryptoUtility to be executed from outside the package without initializing CryptoUtility. nolint: gochecknoglobals
var Env envUtility
Env is an entity that allows the methods of EnvUtility to be executed from outside the package without initializing EnvUtility. nolint: gochecknoglobals
var ErrCryptoNoSuchCryptographicAlgorithm = errors.New("no such cryptographic algorithm")
ErrCryptoNoSuchCryptographicAlgorithm no such encryption algorithm.
var ErrEnvironmentVariableIsNotSetOrEmpty = errors.New("environment variable is not set or empty")
ErrEnvironmentVariableIsNotSetOrEmpty environment variable is not set or empty.
var HTTP httpUtility
HTTP is an entity that allows the methods of HTTPUtility to be executed from outside the package without initializing HTTPUtility. nolint: gochecknoglobals
var JSON jsonUtility
JSON is an entity that allows the methods of JSONUtility to be executed from outside the package without initializing JSONUtility. nolint: gochecknoglobals
var MIME mimeUtility
MIME is an entity that allows the methods of MIMEUtility to be executed from outside the package without initializing MIMEUtility. nolint: gochecknoglobals
var Ptr ptrUtility
Ptr is an entity that allows the methods of PtrUtility to be executed from outside the package without initializing PtrUtility. nolint: gochecknoglobals
var Slice sliceUtility
Slice is an entity that allows the methods of SliceUtility to be executed from outside the package without initializing SliceUtility. nolint: gochecknoglobals
var Strconv strconvUtility
Strconv is an entity that allows the methods of StrconvUtility to be executed from outside the package without initializing StrconvUtility. nolint: gochecknoglobals
var X509 x509Utility
X509 is an entity that allows the methods of X509Utility to be executed from outside the package without initializing X509Utility. nolint: gochecknoglobals
Functions ¶
This section is empty.
Types ¶
type BasicAuthPassword ¶
type BasicAuthPassword = string
type BasicAuthUsername ¶
type BasicAuthUsername = string
type CryptographicAlgorithm ¶
type CryptographicAlgorithm = string
CryptographicAlgorithm is an alias of string.
const ( // CryptoRSA2048 RSA 2048 bits. CryptoRSA2048 CryptographicAlgorithm = "rsa2048" // CryptoRSA4096 RSA 4096 bits. CryptoRSA4096 CryptographicAlgorithm = "rsa4096" // CryptoRSA8192 RSA 8192 bits. CryptoRSA8192 CryptographicAlgorithm = "rsa8192" // CryptoECDSA256 ECDSA with p-256 curve. CryptoECDSA256 CryptographicAlgorithm = "ecdsa256" // CryptoECDSA384 ECDSA with p-384 curve. CryptoECDSA384 CryptographicAlgorithm = "ecdsa384" // CryptoEd25519 Ed25519. CryptoEd25519 CryptographicAlgorithm = "ed25519" )