package
1.1.94
Repository: https://github.com/axway/agent-sdk.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CheckEmptyMapStringString creates a new empty map if the provided map is nil.
ComputeHash - get the hash of the byte array sent in.
ComputeKIDFromDER - compute key ID for public key.
ConvertStringToUint -.
ConvertTimeToMillis - convert to milliseconds.
ConvertToDomainNameCompliant - converts string to be domain name complaint.
ConvertUnitToString -.
CreateDirIfNotExist - Creates the directory with same permission as parent.
GetAgentDetails get all the values for the x-agent-details sub resource.
GetAgentDetailStrings get all the values for the x-agent-details sub resource as string.
GetAgentDetailsValue gets a single string value fom the x-agent-details sub resource.
GetProxyURL - need to provide my own function (instead of http.ProxyURL()) to handle empty url.
GetStringArrayFromMapInterface - returns the validated string array for the map element.
GetStringFromMapInterface - returns the validated string for the map element.
No description provided by the author
GetSubResourcePropertyValue gets a single string value fom the specified sub resource.
GetURLHostName - return the host name of the passed in URL.
HandleInterfaceFuncNotImplemented - use this function to recover from a panic due to an interface not being implemented.
IsItemInSlice - Returns true if the given item is in the string slice, strSlice should be sorted.
IsNil checks a value, or a pointer for nil.
IsNotTest determines if a test is running or not.
LoadEnvFromFile - Loads the environment variables from a file.
No description provided by the author
MapStringInterfaceToStringString - convert map[string]interface{} to map[string]string given the item can be a string.
MapStringStringToMapStringInterface converts a map[string]string to map[string]interface{}.
MaskValue - mask sensitive information with * (asterisk).
MergeMapStringInterface - merges the provided maps.
MergeMapStringString - merges the provided maps.
NewDialer - creates a new dialer.
NewEncryptor creates a struct to handle encryption based on the provided key, algorithm, and hash.
NewGCMDecryptor creates a struct to handle decryption based on the provided key.
NewGCMEncryptor creates a struct to handle encryption based on the provided key.
No description provided by the author
No description provided by the author
No description provided by the author
ParseAddr - parse host:port from URL.
ParsePort - parse port from URL.
ParsePublicKey - parses the public key content.
ParsePublicKeyDER - parse DER block from public key.
PrettyPrint - print the contents of the obj.
PrintDataInterface - prints contents of the interface only if in debug mode.
ReadPrivateKeyFile - reads and parses the private key content.
ReadPublicKeyBytes - reads the public key bytes from file.
RemoveDuplicateValuesFromStringSlice - remove duplicate values from a string slice.
RemoveUnquotedSpaces - Remove all whitespace not between matching quotes.
SetAgentDetails creates a new x-agent-details sub resource for the given resource.
SetAgentDetailsKey sets a key value pair in the x-agent-details sub resource.
StringSliceContains - does the given string slice contain the specified string?.
ToString converts an interface{} to a string.

# Constants

AmplifyCentral amplify central.
No description provided by the author
DefaultKeepAliveInterval - default duration to send keep alive pings.
DefaultKeepAliveTimeout - default keepalive timeout.

# Interfaces

Decryptor is an interface for Decrypting strings.
Dialer - interface for http dialer for proxy and single entry point.
Encryptor is an interface for encrypting strings.