package
2.0.0+incompatible
Repository: https://github.com/vertica/vcluster.git
Documentation: pkg.go.dev

# README

util/

The util directory contains code that

  1. Provides useful functionality that could be used by more than one library in this module
  2. Doesn't fall into an existing specialized category, like logging
  3. Has a relatively limited scope. "Limited scope" is a subjective criteria. If there are many objects and functions that all interact together, consider placing the code in its own top-level directory and not here.

# Functions

No description provided by the author
No description provided by the author
convert an array to a string by joining the elements in the array using the given delimiter.
No description provided by the author
Check whether the directory is read accessible by trying to open the file.
Check whether the directory is read accessible.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
copy file from a source path to a destination path.
CopyMap returns a copy of a map.
CopySlice returns a copy of a slice.
Read date only string from argument, fill in time, overwrite argument by date time string, and return parsed time, the filled in time will indicate the end of a day (right before the beginning of the following day).
Read date only string from argument, fill in time, overwrite argument by date time string, and return parsed time, the filled in time will indicate the beginning of a day.
FilterMapByKey, given a map and a slice of keys, returns a map, which is a subset of the original, that contains only keys in from the given slice.
GenVNodeName generates a vnode and returns it after checking it is not already taken by an existing node.
replace all '//' to be '/', trim the path string.
No description provided by the author
get env var with a fallback value.
get int value of env var with a fallback value.
No description provided by the author
No description provided by the author
GetPathPrefix returns a path prefix for a (catalog/data/depot) path of a node.
HoursAgo calculates the hours from the input time to the current time, erroring in case of over/underflow.
have this util function so no need to import file/path for every command that needs check file path.
import time package in this util file so other files don't need to import time wrapper function to handle empty input string, returns an error if the time is invalid caller responsible for passing in correct layout.
IP util functions.
No description provided by the author
No description provided by the author
check if an option is passed in.
No description provided by the author
calculate diff of map keys: m-n.
Max works on all sane types, not just float64 like the math package funcs.
NmaCertsLookup retrieves kubernetes certs.
NmaSecretLookup retrieves kubernetes secrets.
No description provided by the author
ParseHostList will trim spaces and convert all chars to lowercase in the hosts.
ParseTime attempts to parse an input time string according to a series of provided valid formats.
resolve RawHosts to be IP addresses.
No description provided by the author
No description provided by the author
No description provided by the author
suppress help message for hidden options.
calculate and sort array commonalities: m ∩ n.
calculate array diff: m-n.
No description provided by the author
avoid import strings in every operation.
No description provided by the author
ValidateCommunalStorageLocation can identify some invalid communal storage locations.
No description provided by the author
ValidateName will validate the name of an obj, the obj can be database, subcluster, etc.
ValidateRequiredAbsPath check whether a required path is set then validate it.
No description provided by the author
No description provided by the author
when password is given, the user name cannot be empty.

# Constants

No description provided by the author
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
default date only format: this omits time within a date.
default date time format: this omits nanoseconds but is still able to parse those out.
default date time format: this includes nanoseconds.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
No description provided by the author
No description provided by the author
No description provided by the author
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this file defines basic default values.
this is for sandbox only.
this file defines basic default values.
No description provided by the author
this file defines basic default values.

# Variables

No description provided by the author

# Structs

TimeFormat defines a format for parsing time, including whether local timezone should be assumed.

# Interfaces

No description provided by the author