Documentation ¶
Overview ¶
Package ping implements a directory provider for Ping.
Index ¶
- Variables
- type Option
- func WithAPIURL(apiURL *url.URL) Option
- func WithAuthURL(authURL *url.URL) Option
- func WithClientID(clientID string) Option
- func WithClientSecret(clientSecret string) Option
- func WithEnvironmentID(environmentID string) Option
- func WithHTTPClient(httpClient *http.Client) Option
- func WithLogger(logger zerolog.Logger) Option
- func WithProviderURL(providerURL *url.URL) Option
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEnvironmentIDRequired = errors.New("ping: environment id is required") ErrClientIDRequired = errors.New("ping: client id is required") ErrClientSecretRequired = errors.New("ping: client secret is required") )
Errors
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(cfg *config)
An Option updates the Ping configuration.
func WithAPIURL ¶
WithAPIURL sets the api url in the config.
func WithAuthURL ¶
WithAuthURL sets the auth url in the config.
func WithClientID ¶
WithClientID sets the client id in the config.
func WithClientSecret ¶
WithClientSecret sets the client secret in the config.
func WithEnvironmentID ¶
WithEnvironmentID sets the environment ID in the config.
func WithHTTPClient ¶
WithHTTPClient sets the http client option.
func WithLogger ¶
WithLogger sets the logger in the config.
func WithProviderURL ¶
WithProviderURL sets the environment ID from the provider URL set in the config.
Click to show internal directories.
Click to hide internal directories.