package
1.14.1
Repository: https://github.com/kong/go-database-reconciler.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
CleanAddress removes trailling / from a URL.
CleanKongVersion takes a version of Kong and returns back a string in the form of `/major.minor` version.
ConfigFilesInDir traverses the directory rooted at dir and returns all the files with a case-insensitive extension of `yml` or `yaml`.
Confirm prompts a user for a confirmation with message and returns true with no error if input is "yes" or "y" (case-insensitive), otherwise false.
ConfirmFileOverwrite is a helper function to determine whether or not the program should truncate and overwrite a file given its name and extension.
Empty checks if a string referenced by s or s itself is empty.
FilenameToName (partially) reverses NameToFilename, replacing all URL-encoded path separator characters with the path separator character.
GetConsumerGroupReference returns a name+ID only copy of the input consumer-group, for use in references from other objects.
GetConsumerReference returns a username+ID only copy of the input consumer, for use in references from other objects.
GetDefaulter returns a Defaulter object to be used to set defaults on Kong entities.
GetKongClient returns a Kong client.
No description provided by the author
GetRouteReference returns a name+ID only copy of the input route, for use in references from other objects.
GetServiceReference returns a name+ID only copy of the input service, for use in references from other objects.
HasPathsWithRegex300AndAbove checks routes' paths format and returns true if these math a regex-pattern without a '~' prefix.
HasTags checks if the given object has any of the specified tags.
HTTPClient returns a new Go stdlib's net/http.Client with sane default timeouts.
No description provided by the author
IsPathRegexLike checks if a path string contains a regex pattern.
MergeTags merges Tags in the object with tags.
MustMergeTags is same as MergeTags but panics if there is an error.
MustRemoveTags is same as RemoveTags but panics if there is an error.
NameToFilename clears path separators from strings.
NewDefaulter initializes a Defaulter with empty entities.
ParseKongVersion takes a version string from the Gateway and turns it into a semver-compliant version to be used for comparison across the code.
PrintRouteRegexWarning prints out a warning about 3.x routes' path usage.
RemoveDuplicates removes duplicated elements from a slice.
RemoveTags removes tags from the Tags in obj.
No description provided by the author
UUID will generate a random v4 unique identifier.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

ImplementationTypeKongGateway indicates an implementation backed by Kong Gateway.

# Variables

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

# Structs

No description provided by the author
Defaulter registers types and fills in struct fields with default values.
No description provided by the author
ErrArray holds an array of errors.
KongClientConfig holds config details to use to talk to a Kong server.
KongRawState contains all of Kong Data.
No description provided by the author
KonnectRawState contains all of Konnect resources.
No description provided by the author