Documentation ¶
Overview ¶
Package ping implements a directory provider for Ping.
Index ¶
Constants ¶
const Name = "ping"
Name is the name of the Ping provider.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*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 WithEnvironmentID ¶
WithEnvironmentID sets the environment ID in the config.
func WithHTTPClient ¶
WithHTTPClient sets the http client option.
func WithProviderURL ¶
WithProviderURL sets the environment ID from the provider URL set in the config.
func WithServiceAccount ¶
func WithServiceAccount(serviceAccount *ServiceAccount) Option
WithServiceAccount sets the service account in the config.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements a directory provider using the Ping API.
type ServiceAccount ¶
type ServiceAccount struct { ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` EnvironmentID string `json:"environment_id"` }
A ServiceAccount is used by the Ping provider to query the API.
func ParseServiceAccount ¶
func ParseServiceAccount(rawServiceAccount string) (*ServiceAccount, error)
ParseServiceAccount parses the service account in the config options.