Documentation
¶
Index ¶
- func CreateAWSFuncs(ctx context.Context) map[string]any
- func CreateBase64Funcs(ctx context.Context) map[string]any
- func CreateCollFuncs(ctx context.Context) map[string]any
- func CreateConvFuncs(ctx context.Context) map[string]any
- func CreateCryptoFuncs(ctx context.Context) map[string]any
- func CreateDataFuncs(ctx context.Context) map[string]any
- func CreateDataSourceFuncs(ctx context.Context, sr datafs.DataSourceReader) map[string]any
- func CreateEnvFuncs(ctx context.Context) map[string]any
- func CreateFileFuncs(ctx context.Context) map[string]any
- func CreateFilePathFuncs(ctx context.Context) map[string]any
- func CreateGCPFuncs(ctx context.Context) map[string]any
- func CreateMathFuncs(ctx context.Context) map[string]any
- func CreateNetFuncs(ctx context.Context) map[string]any
- func CreatePathFuncs(ctx context.Context) map[string]any
- func CreateRandomFuncs(ctx context.Context) map[string]any
- func CreateReFuncs(ctx context.Context) map[string]any
- func CreateSemverFuncs(ctx context.Context) map[string]any
- func CreateSockaddrFuncs(ctx context.Context) map[string]any
- func CreateStringFuncs(ctx context.Context) map[string]any
- func CreateTestFuncs(ctx context.Context) map[string]any
- func CreateTimeFuncs(ctx context.Context) map[string]any
- func CreateUUIDFuncs(ctx context.Context) map[string]any
- type Base64Funcs
- type CollFuncs
- func (CollFuncs) Append(v any, list any) ([]any, error)
- func (CollFuncs) Dict(in ...any) (map[string]any, error)
- func (CollFuncs) Flatten(args ...any) ([]any, error)
- func (CollFuncs) GoSlice(item reflect.Value, indexes ...reflect.Value) (reflect.Value, error)
- func (CollFuncs) Has(in any, key string) bool
- func (CollFuncs) Index(args ...any) (any, error)
- func (f *CollFuncs) JQ(jqExpr string, in any) (any, error)
- func (CollFuncs) JSONPath(p string, in any) (any, error)
- func (CollFuncs) Keys(in ...map[string]any) ([]string, error)
- func (CollFuncs) Merge(dst map[string]any, src ...map[string]any) (map[string]any, error)
- func (CollFuncs) Omit(args ...any) (map[string]any, error)
- func (CollFuncs) Pick(args ...any) (map[string]any, error)
- func (CollFuncs) Prepend(v any, list any) ([]any, error)
- func (CollFuncs) Reverse(in any) ([]any, error)
- func (CollFuncs) Set(key string, value any, m map[string]any) (map[string]any, error)
- func (CollFuncs) Slice(args ...any) []any
- func (CollFuncs) Sort(args ...any) ([]any, error)
- func (CollFuncs) Uniq(in any) ([]any, error)
- func (CollFuncs) Unset(key string, m map[string]any) (map[string]any, error)
- func (CollFuncs) Values(in ...map[string]any) ([]any, error)
- type ConvFuncs
- func (ConvFuncs) Atoi(s any) (int, error)
- func (f *ConvFuncs) Bool(s any) booldeprecated
- func (ConvFuncs) Default(def, in any) any
- func (ConvFuncs) Join(in any, sep string) (string, error)
- func (ConvFuncs) ParseFloat(s any, bitSize int) (float64, error)
- func (ConvFuncs) ParseInt(s any, base, bitSize int) (int64, error)
- func (ConvFuncs) ParseUint(s any, base, bitSize int) (uint64, error)
- func (ConvFuncs) ToBool(in any) bool
- func (ConvFuncs) ToBools(in ...any) []bool
- func (ConvFuncs) ToFloat64(in any) (float64, error)
- func (ConvFuncs) ToFloat64s(in ...any) ([]float64, error)
- func (ConvFuncs) ToInt(in any) (int, error)
- func (ConvFuncs) ToInt64(in any) (int64, error)
- func (ConvFuncs) ToInt64s(in ...any) ([]int64, error)
- func (ConvFuncs) ToInts(in ...any) ([]int, error)
- func (ConvFuncs) ToString(in any) string
- func (ConvFuncs) ToStrings(in ...any) []string
- func (ConvFuncs) URL(s any) (*url.URL, error)
- type CryptoFuncs
- func (CryptoFuncs) Bcrypt(args ...any) (string, error)
- func (f *CryptoFuncs) DecryptAES(key string, args ...any) (string, error)
- func (f *CryptoFuncs) DecryptAESBytes(key string, args ...any) ([]byte, error)
- func (f *CryptoFuncs) ECDSADerivePublicKey(privateKey string) (string, error)
- func (f *CryptoFuncs) ECDSAGenerateKey(args ...any) (string, error)
- func (f *CryptoFuncs) Ed25519DerivePublicKey(privateKey string) (string, error)
- func (f *CryptoFuncs) Ed25519GenerateKey() (string, error)
- func (f *CryptoFuncs) Ed25519GenerateKeyFromSeed(encoding, seed string) (string, error)
- func (f *CryptoFuncs) EncryptAES(key string, args ...any) ([]byte, error)
- func (CryptoFuncs) PBKDF2(password, salt, iter, keylen any, hashFunc ...string) (k string, err error)
- func (f *CryptoFuncs) RSADecrypt(key string, in []byte) (string, error)
- func (f *CryptoFuncs) RSADecryptBytes(key string, in []byte) ([]byte, error)
- func (f *CryptoFuncs) RSADerivePublicKey(privateKey string) (string, error)
- func (f *CryptoFuncs) RSAEncrypt(key string, in any) ([]byte, error)
- func (f *CryptoFuncs) RSAGenerateKey(args ...any) (string, error)
- func (f CryptoFuncs) SHA1(input any) string
- func (CryptoFuncs) SHA1Bytes(input any) ([]byte, error)
- func (f CryptoFuncs) SHA224(input any) string
- func (CryptoFuncs) SHA224Bytes(input any) ([]byte, error)
- func (f CryptoFuncs) SHA256(input any) string
- func (CryptoFuncs) SHA256Bytes(input any) ([]byte, error)
- func (f CryptoFuncs) SHA384(input any) string
- func (CryptoFuncs) SHA384Bytes(input any) ([]byte, error)
- func (f CryptoFuncs) SHA512(input any) string
- func (CryptoFuncs) SHA512Bytes(input any) ([]byte, error)
- func (f CryptoFuncs) SHA512_224(input any) string
- func (CryptoFuncs) SHA512_224Bytes(input any) ([]byte, error)
- func (f CryptoFuncs) SHA512_256(input any) string
- func (CryptoFuncs) SHA512_256Bytes(input any) ([]byte, error)
- func (f CryptoFuncs) WPAPSK(ssid, password any) (string, error)
- type DataFuncs
- func (f *DataFuncs) CSV(args ...string) ([][]string, error)
- func (f *DataFuncs) CSVByColumn(args ...string) (cols map[string][]string, err error)
- func (f *DataFuncs) CSVByRow(args ...string) (rows []map[string]string, err error)
- func (f *DataFuncs) CUE(in any) (any, error)
- func (f *DataFuncs) JSON(in any) (map[string]any, error)
- func (f *DataFuncs) JSONArray(in any) ([]any, error)
- func (f *DataFuncs) TOML(in any) (any, error)
- func (f *DataFuncs) ToCSV(args ...any) (string, error)
- func (f *DataFuncs) ToCUE(in any) (string, error)
- func (f *DataFuncs) ToJSON(in any) (string, error)
- func (f *DataFuncs) ToJSONPretty(indent string, in any) (string, error)
- func (f *DataFuncs) ToTOML(in any) (string, error)
- func (f *DataFuncs) ToYAML(in any) (string, error)
- func (f *DataFuncs) YAML(in any) (map[string]any, error)
- func (f *DataFuncs) YAMLArray(in any) ([]any, error)
- type EnvFuncs
- type FileFuncs
- func (f *FileFuncs) Exists(path any) bool
- func (f *FileFuncs) IsDir(path any) bool
- func (f *FileFuncs) Read(path any) (string, error)
- func (f *FileFuncs) ReadDir(path any) ([]string, error)
- func (f *FileFuncs) Stat(path any) (fs.FileInfo, error)
- func (f *FileFuncs) Walk(path any) ([]string, error)
- func (f *FileFuncs) Write(path any, data any) (s string, err error)
- type FilePathFuncs
- func (f *FilePathFuncs) Base(in any) string
- func (f *FilePathFuncs) Clean(in any) string
- func (f *FilePathFuncs) Dir(in any) string
- func (f *FilePathFuncs) Ext(in any) string
- func (f *FilePathFuncs) FromSlash(in any) string
- func (f *FilePathFuncs) IsAbs(in any) bool
- func (f *FilePathFuncs) Join(elem ...any) string
- func (f *FilePathFuncs) Match(pattern, name any) (matched bool, err error)
- func (f *FilePathFuncs) Rel(basepath, targpath any) (string, error)
- func (f *FilePathFuncs) Split(in any) []string
- func (f *FilePathFuncs) ToSlash(in any) string
- func (f *FilePathFuncs) VolumeName(in any) string
- type Funcs
- func (a *Funcs) ARN() (string, error)
- func (a *Funcs) Account() (string, error)
- func (a *Funcs) EC2Dynamic(key string, def ...string) (string, error)
- func (a *Funcs) EC2Meta(key string, def ...string) (string, error)
- func (a *Funcs) EC2Region(def ...string) (string, error)
- func (a *Funcs) EC2Tag(tag string, def ...string) (string, error)
- func (a *Funcs) EC2Tags() (map[string]string, error)
- func (a *Funcs) KMSDecrypt(ciphertext any) (string, error)
- func (a *Funcs) KMSEncrypt(keyID, plaintext any) (string, error)
- func (a *Funcs) UserID() (string, error)
- type GcpFuncs
- type MathFuncs
- func (f MathFuncs) Abs(n any) (any, error)
- func (f MathFuncs) Add(n ...any) (any, error)
- func (f MathFuncs) Ceil(n any) (any, error)
- func (f MathFuncs) Div(a, b any) (any, error)
- func (f MathFuncs) Floor(n any) (any, error)
- func (f MathFuncs) IsFloat(n any) bool
- func (f MathFuncs) IsInt(n any) bool
- func (f MathFuncs) IsNum(n any) bool
- func (f MathFuncs) Max(a any, b ...any) (any, error)
- func (f MathFuncs) Min(a any, b ...any) (any, error)
- func (f MathFuncs) Mul(n ...any) (any, error)
- func (f MathFuncs) Pow(a, b any) (any, error)
- func (f MathFuncs) Rem(a, b any) (any, error)
- func (f MathFuncs) Round(n any) (any, error)
- func (f MathFuncs) Seq(n ...any) ([]int64, error)
- func (f MathFuncs) Sub(a, b any) (any, error)
- type NetFuncs
- func (f *NetFuncs) CIDRHost(hostnum any, prefix any) (netip.Addr, error)
- func (f *NetFuncs) CIDRNetmask(prefix any) (netip.Addr, error)
- func (f *NetFuncs) CIDRSubnetSizes(args ...any) ([]netip.Prefix, error)
- func (f *NetFuncs) CIDRSubnets(newbits any, prefix any) ([]netip.Prefix, error)
- func (f NetFuncs) LookupCNAME(name any) (string, error)
- func (f NetFuncs) LookupIP(name any) (string, error)
- func (f NetFuncs) LookupIPs(name any) ([]string, error)
- func (f NetFuncs) LookupSRV(name any) (*stdnet.SRV, error)
- func (f NetFuncs) LookupSRVs(name any) ([]*stdnet.SRV, error)
- func (f NetFuncs) LookupTXT(name any) ([]string, error)
- func (f NetFuncs) ParseAddr(ip any) (netip.Addr, error)
- func (f *NetFuncs) ParseIP(ip any) (netaddr.IP, error)deprecated
- func (f *NetFuncs) ParseIPPrefix(ipprefix any) (netaddr.IPPrefix, error)deprecated
- func (f *NetFuncs) ParseIPRange(iprange any) (netaddr.IPRange, error)deprecated
- func (f NetFuncs) ParsePrefix(ipprefix any) (netip.Prefix, error)
- func (f NetFuncs) ParseRange(iprange any) (netipx.IPRange, error)
- type PathFuncs
- func (PathFuncs) Base(in any) string
- func (PathFuncs) Clean(in any) string
- func (PathFuncs) Dir(in any) string
- func (PathFuncs) Ext(in any) string
- func (PathFuncs) IsAbs(in any) bool
- func (PathFuncs) Join(elem ...any) string
- func (PathFuncs) Match(pattern, name any) (matched bool, err error)
- func (PathFuncs) Split(in any) []string
- type RandomFuncs
- func (RandomFuncs) ASCII(count any) (string, error)
- func (RandomFuncs) Alpha(count any) (string, error)
- func (RandomFuncs) AlphaNum(count any) (string, error)
- func (RandomFuncs) Float(args ...any) (float64, error)
- func (RandomFuncs) Item(items any) (any, error)
- func (RandomFuncs) Number(args ...any) (int64, error)
- func (RandomFuncs) String(count any, args ...any) (string, error)
- type ReFuncs
- func (ReFuncs) Find(re, input any) (string, error)
- func (ReFuncs) FindAll(args ...any) ([]string, error)
- func (ReFuncs) Match(re, input any) (bool, error)
- func (ReFuncs) QuoteMeta(in any) string
- func (ReFuncs) Replace(re, replacement, input any) (string, error)
- func (ReFuncs) ReplaceLiteral(re, replacement, input any) (string, error)
- func (ReFuncs) Split(args ...any) ([]string, error)
- type SemverFuncs
- type SockaddrFuncs
- func (SockaddrFuncs) Attr(selectorName string, ifAddrsRaw any) (string, error)
- func (SockaddrFuncs) Exclude(selectorName, selectorParam string, inputIfAddrs sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) GetAllInterfaces() (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) GetDefaultInterfaces() (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) GetInterfaceIP(namedIfRE string) (string, error)
- func (SockaddrFuncs) GetInterfaceIPs(namedIfRE string) (string, error)
- func (SockaddrFuncs) GetPrivateIP() (string, error)
- func (SockaddrFuncs) GetPrivateIPs() (string, error)
- func (SockaddrFuncs) GetPrivateInterfaces() (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) GetPublicIP() (string, error)
- func (SockaddrFuncs) GetPublicIPs() (string, error)
- func (SockaddrFuncs) GetPublicInterfaces() (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) Include(selectorName, selectorParam string, inputIfAddrs sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) Join(selectorName, joinString string, inputIfAddrs sockaddr.IfAddrs) (string, error)
- func (SockaddrFuncs) Limit(lim uint, in sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) Math(operation, value string, inputIfAddrs sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) Offset(off int, in sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) Sort(selectorParam string, inputIfAddrs sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
- func (SockaddrFuncs) Unique(selectorName string, inputIfAddrs sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
- type StringFuncs
- func (StringFuncs) Abbrev(args ...any) (string, error)
- func (StringFuncs) CamelCase(in any) (string, error)
- func (StringFuncs) Contains(substr string, s any) bool
- func (StringFuncs) HasPrefix(prefix string, s any) bool
- func (StringFuncs) HasSuffix(suffix string, s any) bool
- func (StringFuncs) Indent(args ...any) (string, error)
- func (StringFuncs) KebabCase(in any) (string, error)
- func (StringFuncs) Quote(in any) string
- func (StringFuncs) Repeat(count int, s any) (string, error)
- func (StringFuncs) ReplaceAll(old, new string, s any) string
- func (StringFuncs) RuneCount(args ...any) (int, error)
- func (StringFuncs) ShellQuote(in any) string
- func (StringFuncs) SkipLines(skip int, in string) (string, error)
- func (StringFuncs) Slug(in any) string
- func (StringFuncs) SnakeCase(in any) (string, error)
- func (f *StringFuncs) Sort(list any) ([]string, error)deprecated
- func (StringFuncs) Split(sep string, s any) []string
- func (StringFuncs) SplitN(sep string, n int, s any) []string
- func (StringFuncs) Squote(in any) string
- func (f *StringFuncs) Title(s any) string
- func (f *StringFuncs) ToLower(s any) string
- func (f *StringFuncs) ToUpper(s any) string
- func (StringFuncs) Trim(cutset string, s any) string
- func (StringFuncs) TrimLeft(cutset string, s any) string
- func (StringFuncs) TrimPrefix(cutset string, s any) string
- func (StringFuncs) TrimRight(cutset string, s any) string
- func (StringFuncs) TrimSpace(s any) string
- func (StringFuncs) TrimSuffix(cutset string, s any) string
- func (StringFuncs) Trunc(length int, s any) string
- func (StringFuncs) WordWrap(args ...any) (string, error)
- type TestFuncs
- type TimeFuncs
- func (TimeFuncs) Hour(n any) (gotime.Duration, error)
- func (TimeFuncs) Microsecond(n any) (gotime.Duration, error)
- func (TimeFuncs) Millisecond(n any) (gotime.Duration, error)
- func (TimeFuncs) Minute(n any) (gotime.Duration, error)
- func (TimeFuncs) Nanosecond(n any) (gotime.Duration, error)
- func (TimeFuncs) Now() gotime.Time
- func (TimeFuncs) Parse(layout string, value any) (gotime.Time, error)
- func (TimeFuncs) ParseDuration(n any) (gotime.Duration, error)
- func (TimeFuncs) ParseInLocation(layout, location string, value any) (gotime.Time, error)
- func (f TimeFuncs) ParseLocal(layout string, value any) (gotime.Time, error)
- func (TimeFuncs) Second(n any) (gotime.Duration, error)
- func (TimeFuncs) Since(n gotime.Time) gotime.Duration
- func (TimeFuncs) Unix(in any) (gotime.Time, error)
- func (TimeFuncs) Until(n gotime.Time) gotime.Duration
- func (TimeFuncs) ZoneName() string
- func (TimeFuncs) ZoneOffset() int
- type UUIDFuncs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBase64Funcs ¶
CreateBase64Funcs -
func CreateCryptoFuncs ¶
CreateCryptoFuncs -
func CreateDataSourceFuncs ¶
CreateDataSourceFuncs -
func CreateFilePathFuncs ¶
CreateFilePathFuncs -
func CreateRandomFuncs ¶
CreateRandomFuncs -
func CreateSemverFuncs ¶
CreateSemverFuncs -
func CreateSockaddrFuncs ¶
CreateSockaddrFuncs -
func CreateStringFuncs ¶
CreateStringFuncs -
Types ¶
type Base64Funcs ¶
type Base64Funcs struct {
// contains filtered or unexported fields
}
Base64Funcs -
func (Base64Funcs) DecodeBytes ¶
func (Base64Funcs) DecodeBytes(in any) ([]byte, error)
DecodeBytes -
type CollFuncs ¶
type CollFuncs struct {
// contains filtered or unexported fields
}
CollFuncs -
func (CollFuncs) Index ¶
Index returns the result of indexing the last argument with the preceding index keys. This is similar to the `index` built-in template function, but the arguments are ordered differently for pipeline compatibility. Also, this function is more strict, and will return an error when the value doesn't contain the given key.
type ConvFuncs ¶
type ConvFuncs struct {
// contains filtered or unexported fields
}
ConvFuncs -
func (ConvFuncs) ParseFloat ¶
ParseFloat -
func (ConvFuncs) ToFloat64s ¶
ToFloat64s -
type CryptoFuncs ¶
type CryptoFuncs struct {
// contains filtered or unexported fields
}
CryptoFuncs -
func (*CryptoFuncs) DecryptAES ¶
func (f *CryptoFuncs) DecryptAES(key string, args ...any) (string, error)
DecryptAES - Experimental!
func (*CryptoFuncs) DecryptAESBytes ¶
func (f *CryptoFuncs) DecryptAESBytes(key string, args ...any) ([]byte, error)
DecryptAESBytes - Experimental!
func (*CryptoFuncs) ECDSADerivePublicKey ¶
func (f *CryptoFuncs) ECDSADerivePublicKey(privateKey string) (string, error)
ECDSADerivePublicKey - Experimental!
func (*CryptoFuncs) ECDSAGenerateKey ¶
func (f *CryptoFuncs) ECDSAGenerateKey(args ...any) (string, error)
ECDSAGenerateKey - Experimental!
func (*CryptoFuncs) Ed25519DerivePublicKey ¶
func (f *CryptoFuncs) Ed25519DerivePublicKey(privateKey string) (string, error)
Ed25519DerivePublicKey - Experimental!
func (*CryptoFuncs) Ed25519GenerateKey ¶
func (f *CryptoFuncs) Ed25519GenerateKey() (string, error)
Ed25519GenerateKey - Experimental!
func (*CryptoFuncs) Ed25519GenerateKeyFromSeed ¶
func (f *CryptoFuncs) Ed25519GenerateKeyFromSeed(encoding, seed string) (string, error)
Ed25519GenerateKeyFromSeed - Experimental!
func (*CryptoFuncs) EncryptAES ¶
func (f *CryptoFuncs) EncryptAES(key string, args ...any) ([]byte, error)
EncryptAES - Experimental!
func (CryptoFuncs) PBKDF2 ¶
func (CryptoFuncs) PBKDF2(password, salt, iter, keylen any, hashFunc ...string) (k string, err error)
PBKDF2 - Run the Password-Based Key Derivation Function #2 as defined in RFC 2898 (PKCS #5 v2.0). This function outputs the binary result in hex format.
func (*CryptoFuncs) RSADecrypt ¶
func (f *CryptoFuncs) RSADecrypt(key string, in []byte) (string, error)
RSADecrypt - Experimental!
func (*CryptoFuncs) RSADecryptBytes ¶
func (f *CryptoFuncs) RSADecryptBytes(key string, in []byte) ([]byte, error)
RSADecryptBytes - Experimental!
func (*CryptoFuncs) RSADerivePublicKey ¶
func (f *CryptoFuncs) RSADerivePublicKey(privateKey string) (string, error)
RSADerivePublicKey - Experimental!
func (*CryptoFuncs) RSAEncrypt ¶
func (f *CryptoFuncs) RSAEncrypt(key string, in any) ([]byte, error)
RSAEncrypt - Experimental!
func (*CryptoFuncs) RSAGenerateKey ¶
func (f *CryptoFuncs) RSAGenerateKey(args ...any) (string, error)
RSAGenerateKey - Experimental!
func (CryptoFuncs) SHA1 ¶
func (f CryptoFuncs) SHA1(input any) string
SHA1 - Note: SHA-1 is cryptographically broken and should not be used for secure applications.
func (CryptoFuncs) SHA1Bytes ¶
func (CryptoFuncs) SHA1Bytes(input any) ([]byte, error)
SHA1 - Note: SHA-1 is cryptographically broken and should not be used for secure applications.
func (CryptoFuncs) SHA512_224Bytes ¶
func (CryptoFuncs) SHA512_224Bytes(input any) ([]byte, error)
SHA512_224 -
func (CryptoFuncs) SHA512_256Bytes ¶
func (CryptoFuncs) SHA512_256Bytes(input any) ([]byte, error)
SHA512_256 -
type DataFuncs ¶
type DataFuncs struct {
// contains filtered or unexported fields
}
DataFuncs -
func (*DataFuncs) CSVByColumn ¶
CSVByColumn -
func (*DataFuncs) ToJSONPretty ¶
ToJSONPretty -
type FilePathFuncs ¶
type FilePathFuncs struct {
// contains filtered or unexported fields
}
FilePathFuncs -
func (*FilePathFuncs) Match ¶
func (f *FilePathFuncs) Match(pattern, name any) (matched bool, err error)
Match -
type Funcs ¶
type Funcs struct {
// contains filtered or unexported fields
}
Funcs -
func (*Funcs) Account ¶
Account - Gets the AWS account ID number of the account that owns or contains the calling entity.
func (*Funcs) EC2Dynamic ¶
EC2Dynamic -
func (*Funcs) KMSEncrypt ¶
KMSEncrypt -
func (*Funcs) UserID ¶
UserID - Gets the unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable) found on the Policy Variables reference page in the IAM User Guide.
type MathFuncs ¶
type MathFuncs struct {
// contains filtered or unexported fields
}
MathFuncs -
type NetFuncs ¶
type NetFuncs struct {
// contains filtered or unexported fields
}
NetFuncs -
func (*NetFuncs) CIDRNetmask ¶
CIDRNetmask - Experimental!
func (*NetFuncs) CIDRSubnetSizes ¶
CIDRSubnetSizes - Experimental!
func (*NetFuncs) CIDRSubnets ¶
CIDRSubnets - Experimental!
func (NetFuncs) LookupSRVs ¶
LookupSRVs -
func (NetFuncs) ParsePrefix ¶
ParsePrefix -
type PathFuncs ¶
type PathFuncs struct {
// contains filtered or unexported fields
}
PathFuncs -
type RandomFuncs ¶
type RandomFuncs struct {
// contains filtered or unexported fields
}
RandomFuncs -
type ReFuncs ¶
type ReFuncs struct {
// contains filtered or unexported fields
}
ReFuncs -
func (ReFuncs) ReplaceLiteral ¶
ReplaceLiteral -
type SemverFuncs ¶
type SemverFuncs struct {
// contains filtered or unexported fields
}
SemverFuncs -
func (SemverFuncs) CheckConstraint ¶
func (SemverFuncs) CheckConstraint(constraint, in string) (bool, error)
CheckConstraint -
type SockaddrFuncs ¶
type SockaddrFuncs struct {
// contains filtered or unexported fields
}
SockaddrFuncs -
func (SockaddrFuncs) Attr ¶
func (SockaddrFuncs) Attr(selectorName string, ifAddrsRaw any) (string, error)
Attr -
func (SockaddrFuncs) Exclude ¶
func (SockaddrFuncs) Exclude(selectorName, selectorParam string, inputIfAddrs sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
Exclude -
func (SockaddrFuncs) GetAllInterfaces ¶
func (SockaddrFuncs) GetAllInterfaces() (sockaddr.IfAddrs, error)
GetAllInterfaces -
func (SockaddrFuncs) GetDefaultInterfaces ¶
func (SockaddrFuncs) GetDefaultInterfaces() (sockaddr.IfAddrs, error)
GetDefaultInterfaces -
func (SockaddrFuncs) GetInterfaceIP ¶
func (SockaddrFuncs) GetInterfaceIP(namedIfRE string) (string, error)
GetInterfaceIP -
func (SockaddrFuncs) GetInterfaceIPs ¶
func (SockaddrFuncs) GetInterfaceIPs(namedIfRE string) (string, error)
GetInterfaceIPs -
func (SockaddrFuncs) GetPrivateIP ¶
func (SockaddrFuncs) GetPrivateIP() (string, error)
GetPrivateIP -
func (SockaddrFuncs) GetPrivateIPs ¶
func (SockaddrFuncs) GetPrivateIPs() (string, error)
GetPrivateIPs -
func (SockaddrFuncs) GetPrivateInterfaces ¶
func (SockaddrFuncs) GetPrivateInterfaces() (sockaddr.IfAddrs, error)
GetPrivateInterfaces -
func (SockaddrFuncs) GetPublicIPs ¶
func (SockaddrFuncs) GetPublicIPs() (string, error)
GetPublicIPs -
func (SockaddrFuncs) GetPublicInterfaces ¶
func (SockaddrFuncs) GetPublicInterfaces() (sockaddr.IfAddrs, error)
GetPublicInterfaces -
func (SockaddrFuncs) Include ¶
func (SockaddrFuncs) Include(selectorName, selectorParam string, inputIfAddrs sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
Include -
func (SockaddrFuncs) Join ¶
func (SockaddrFuncs) Join(selectorName, joinString string, inputIfAddrs sockaddr.IfAddrs) (string, error)
Join -
func (SockaddrFuncs) Math ¶
func (SockaddrFuncs) Math(operation, value string, inputIfAddrs sockaddr.IfAddrs) (sockaddr.IfAddrs, error)
Math -
type StringFuncs ¶
type StringFuncs struct {
// contains filtered or unexported fields
}
StringFuncs -
func (StringFuncs) ReplaceAll ¶
func (StringFuncs) ReplaceAll(old, new string, s any) string
ReplaceAll -
func (StringFuncs) RuneCount ¶
func (StringFuncs) RuneCount(args ...any) (int, error)
RuneCount - like len(s), but for runes
func (StringFuncs) SkipLines ¶
func (StringFuncs) SkipLines(skip int, in string) (string, error)
SkipLines -
func (*StringFuncs) Sort
deprecated
func (f *StringFuncs) Sort(list any) ([]string, error)
Sort -
Deprecated: use CollFuncs.Sort instead
func (StringFuncs) TrimLeft ¶ added in v4.1.0
func (StringFuncs) TrimLeft(cutset string, s any) string
TrimLeft -
func (StringFuncs) TrimPrefix ¶
func (StringFuncs) TrimPrefix(cutset string, s any) string
TrimPrefix -
func (StringFuncs) TrimRight ¶ added in v4.1.0
func (StringFuncs) TrimRight(cutset string, s any) string
TrimRight -
func (StringFuncs) TrimSuffix ¶
func (StringFuncs) TrimSuffix(cutset string, s any) string
TrimSuffix -
type TestFuncs ¶
type TestFuncs struct {
// contains filtered or unexported fields
}
TestFuncs -
type TimeFuncs ¶
type TimeFuncs struct {
ANSIC string
UnixDate string
RubyDate string
RFC822 string
RFC822Z string
RFC850 string
RFC1123 string
RFC1123Z string
RFC3339 string
RFC3339Nano string
Kitchen string
Stamp string
StampMilli string
StampMicro string
StampNano string
// contains filtered or unexported fields
}
TimeFuncs -
func (TimeFuncs) Microsecond ¶
Microsecond -
func (TimeFuncs) Millisecond ¶
Millisecond -
func (TimeFuncs) Nanosecond ¶
Nanosecond -
func (TimeFuncs) ParseDuration ¶
ParseDuration -
func (TimeFuncs) ParseInLocation ¶
ParseInLocation -
func (TimeFuncs) ParseLocal ¶
ParseLocal -
func (TimeFuncs) Unix ¶
Unix - convert UNIX time (in seconds since the UNIX epoch) into a time.Time for further processing Takes a string or number (int or float)
func (TimeFuncs) ZoneOffset ¶
ZoneOffset - return the local system's time zone's name
type UUIDFuncs ¶
type UUIDFuncs struct {
// contains filtered or unexported fields
}
UUIDFuncs -
func (UUIDFuncs) IsValid ¶
IsValid - checks if the given UUID is in the correct format. It does not validate whether the version or variant are correct.
func (UUIDFuncs) Parse ¶
Parse - parse a UUID for further manipulation or inspection.
Both the standard UUID forms of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx are decoded as well as the Microsoft encoding {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} and the raw hex encoding: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.