Documentation
¶
Overview ¶
Package adminclient provides an authenticated Connect RPC client for the pbflags admin API, suitable for use by the CLI.
Index ¶
Constants ¶
View Source
const DefaultURL = "http://localhost:9200"
DefaultURL is the default admin API address.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(url string) (pbflagsv1connect.FlagAdminServiceClient, error)
New creates an authenticated FlagAdminServiceClient. It loads credentials from the standard lookup chain (env var, then credentials file) and injects them as headers on every request.
The admin URL is resolved from the url parameter, PBFLAGS_ADMIN_URL env var, or DefaultURL, in that order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.