# Functions
NewCatalogDatacentersQuery creates a new datacenter dependency.
NewCatalogNodeQuery parses the given string into a dependency.
NewCatalogNodesQuery parses the given string into a dependency.
NewCatalogServiceQuery parses a string into a CatalogServiceQuery.
NewCatalogServicesQuery parses a string of the format @dc.
NewCatalogServicesQueryV1 processes options in the format of "key=value" e.g.
NewClientSet creates a new client set that is ready to accept clients.
No description provided by the author
No description provided by the author
NewFileQuery creates a file dependency from the given path.
NewHealthConnect Query processes the strings to build a connect dependency.
NewHealthConnectQueryV1 Query processes the strings to build a connect dependency.
NewHealthServiceQuery processes the strings to build a service dependency.
NewHealthServiceQueryV1 processes the strings to build a service dependency.
NewKVExistsGetQueryV1 processes options in the format of "key key=value" e.g.
NewKVExistsQuery parses a string into a KV lookup.
NewKVExistsQueryV1 processes options in the format of "key key=value" e.g.
NewKVGetQuery parses a string into a (non-blocking) KV lookup.
NewKVGetQueryV1 processes options in the format of "key key=value" e.g.
NewKVKeysQuery parses a string into a dependency.
NewKVListQuery parses a string into a dependency.
NewKVListQuery processes options in the format of "prefix key=value" e.g.
NewVaultAgentTokenQuery creates a new dependency.
NewVaultListQuery creates a new datacenter dependency.
NewVaultReadQuery creates a new datacenter dependency.
NewVaultTokenQuery creates a new dependency.
NewVaultWriteQuery creates a new datacenter dependency.
# Constants
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
VaultAgentTokenSleepTime is the amount of time to sleep between queries, since the fsnotify library is not compatible with solaris and other OSes yet.
# Variables
CatalogDatacentersQuerySleepTime is the amount of time to sleep between queries, since the endpoint does not support blocking queries.
CatalogNodeQueryRe is the regular expression to use.
CatalogNodesQueryRe is the regular expression to use.
CatalogServiceQueryRe is the regular expression to use.
CatalogServicesQueryRe is the regular expression to use for CatalogNodesQuery.
ErrContinue is a special error which says to continue (retry) on error.
No description provided by the author
ErrStopped is a special error that is returned when a dependency is prematurely stopped, usually due to a configuration reload or a process interrupt.
FileQuerySleepTime is the amount of time to sleep between queries, since the fsnotify library is not compatible with solaris and other OSes yet.
HealthServiceQueryRe is the regular expression to use.
KVExistsQueryRe is the regular expression to use.
KVGetQueryRe is the regular expression to use.
KVKeysQueryRe is the regular expression to use.
KVListQueryRe is the regular expression to use.
# Structs
CatalogDatacentersQuery is the dependency to query all datacenters.
CatalogNodeQuery represents a single node from the Consul catalog.
CatalogNodesQuery is the representation of all registered nodes in Consul.
CatalogService is a catalog entry in Consul.
CatalogServiceQuery is the representation of a requested catalog services dependency from inside a template.
CatalogServicesQuery is the representation of a requested catalog service dependency from inside a template.
ClientSet is a collection of clients that dependencies use to communicate with remote services like Consul or Vault.
No description provided by the author
No description provided by the author
CreateClientInput is used as input to the CreateClient functions.
FakeDep is a fake dependency that does not actually speaks to a server.
FakeDepBlockingQuery is a fake dependency that blocks on Fetch for a duration to resemble Consul blocking queries.
FakeDepFetchError is a fake dependency that returns an error while fetching.
FakeDepRetry is a fake dependency that errors on the first fetch and succeeds on subsequent fetches.
No description provided by the author
FakeDepStale is a fake dependency that can be used to test what happens when stale data is permitted.
FakeListDep is a fake dependency that does not actually speaks to a server.
FileQuery represents a local file dependency.
HealthServiceQuery is the representation of all a service query in Consul.
KVExistsGetQuery uses a non-blocking query to lookup a single key in the KV store.
KVExistsQuery uses a non-blocking query with the KV store for key lookup.
KVGetQuery queries the KV store for a single key.
KVKeysQuery queries the KV store for a single key.
KVListQuery queries the KV store for a single key.
QueryOptions is a list of options to send with the query.
VaultAgentTokenQuery is the dependency to Vault Agent token.
VaultListQuery is the dependency to Vault for a secret.
VaultReadQuery is the dependency to Vault for a secret.
VaultTokenQuery is the dependency to Vault for a secret.
VaultWriteQuery is the dependency to Vault for a secret.
# Interfaces
Using interfaces for type annotations see hashicat/dep/ for interface definitions.
No description provided by the author
used to help shoehorn the dependency setup into hashicat until I get a chance to rework it Used to assert/access option setting.
TransportDialer is an interface that allows passing a custom dialer function to an HTTP client's transport config Intended to match https://pkg.go.dev/net#Dialer.DialContext.
No description provided by the author
# Type aliases
ByName is a sortable slice of CatalogService structs.
ByNode is a sortable list of nodes by name and then IP address.
ByNodeThenID is a sortable slice of Service.
ByService is a sorter of node services by their service name and then ID.
Type aliases to simplify things as we refactortype QueryOptions = dep.QueryOptions.