Documentation
¶
Index ¶
Constants ¶
const ( // FromRandom is the from generating a random password, as the // "source random" of an install line or an environment reference. FromRandom = "random" )
Variables ¶
var ( ErrFromUnknown = errors.New("from is unknown") ErrFromEmpty = errors.New("from is empty") )
var ClusterSources func() (urls, cidrs []string)
ClusterSources returns the urls and the address ranges the cluster allows on top of the policy of the node, which the object layer sets: a util knows nothing of the configuration of a cluster. Left unset, as in a client with no cluster, the policy of the node is the whole of it.
Functions ¶
func DeprecatedFrom ¶
DeprecatedFrom says a from is deprecated, and returns the one to use instead, for the command to warn of: /dev/urandom, which reads as a path and generates a password, is FromRandom.
func IsValidHttp ¶
IsValidHttp validates if the provided string is a well-formed HTTP or HTTPS URL.
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
func (T) CallerFetch ¶
CallerFetch fetches the url a command is given, in the process of the command, and returns the path of a temporary file holding the body.
It is held to no SSRF policy: the url is the argument of who runs the command, fetched from where they run it, with nothing more than they could fetch with curl and pass on the standard input of the same command. A url a configuration names, fetched by a node, as the source of a key or the image of a vm, is the SafeHttpClient's to fetch.
func (T) IsValidHttp ¶
IsValidHttp checks if the encapsulated URI is a valid HTTP or HTTPS URL.