Documentation ¶
Index ¶
- func AddPrefixToVKVPath(p, mountPath, apiPrefix string) string
- func EnsureNoLeadingSlash(s string) string
- func EnsureNoTrailingSlash(s string) string
- func EnsureTrailingSlash(s string) string
- func IsKVv2(path string, client *api.Client) (string, bool, error)
- func KVPreflightVersionRequest(client *api.Client, path string) (string, int, error)
- func ParseArgsData(stdin io.Reader, args []string) (map[string]interface{}, error)
- func ParseArgsDataString(stdin io.Reader, args []string) (map[string]string, error)
- func SanitizePath(s string) string
- func TruncateToSeconds(d time.Duration) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPrefixToVKVPath ¶
AddPrefixToVKVPath does stuff
func EnsureNoLeadingSlash ¶
EnsureNoLeadingSlash ensures the given string has a trailing slash.
func EnsureNoTrailingSlash ¶
EnsureNoTrailingSlash ensures the given string has a trailing slash.
func EnsureTrailingSlash ¶
EnsureTrailingSlash ensures the given string has a trailing slash.
func KVPreflightVersionRequest ¶
KVPreflightVersionRequest do a preflight call
func ParseArgsData ¶
ParseArgsData parses the given args in the format key=value into a map of the provided arguments. The given reader can also supply key=value pairs.
func ParseArgsDataString ¶
ParseArgsDataString parses the args data and returns the values as strings. If the values cannot be represented as strings, an error is returned.
func SanitizePath ¶
SanitizePath removes any leading or trailing things from a "path".
func TruncateToSeconds ¶
TruncateToSeconds truncates the given duration to the number of seconds. If the duration is less than 1s, it is returned as 0. The integer represents the whole number unit of seconds for the duration.
Types ¶
This section is empty.