package
0.11.5
Repository: https://github.com/sergeyignatov/goiardi.git
Documentation: pkg.go.dev

# Functions

CastErr will easily cast a different kind of error to a Gerror.
CheckAdminPlusValidator checks that client/user json is not trying to set admin and validator at the same time.
No description provided by the author
CustomObjURL crafts a URL for a Goiardi object with additional path elements.
CustomURL crafts a URL from the provided path, without providing an object.
DeepMerge merges disparate data structures into a flat hash.
DelSliceElement removes an element from a slice of strings.
Errorf creates a new Gerror, with a formatted error string.
FlattenObj flattens an object and expand its keys into a map[string]string so it's suitable for indexing, either with solr (eventually) or with the whipped up replacement for local mode.
IndexEscapeStr escapes values to index in the database, so characters that need to be escaped for Solr are properly found when using the trie or postgres based searches.
Indexify prepares a flattened object for indexing by turning it into a sorted slice of strings formatted like "key:value".
InitS3 sets up the session and whatnot for using goiardi with S3.
MapifyObject turns an object into a map[string]interface{}.
ObjURL crafts a URL for an object.
PgSearchKey removes characters from search term fields that make the ltree data type unhappy.
PgSearchQueryKey is very similar to PgSearchKey, except that it preserves the Solr wildcard charactes '*' and '?' in the queries.
RemoveDupStrings removes duplicates from a slice of strings.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TrimStringMax trims a string down if its length is over a certain amount.
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
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
No description provided by the author
No description provided by the author

# Variables

NoDBConfigured is an error for when no database has been configured for use, yet an SQL function is being called.

# Interfaces

Gerror is an error type that wraps around the goiardi Error type.
GoiardiObj is an interface for helping goiardi/chef objects, like cookbooks, roles, etc., be able to easily make URLs and be identified by name.

# Type aliases

StringSlice makes it possible to scan Posgres arrays directly into a golang slice.