Documentation
¶
Overview ¶
Package auth provides a client for the Doppler API's auth endpoints.
API-Docs: https://docs.doppler.com/reference/auth-revoke
Example:
// Revoke a token.
_, err := auth.Revoke(context.Background(), &doppler.AuthRevokeOptions{
Tokens: []string{"token1", "token2"},
})
if err != nil {
log.Fatal(err)
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Revoke ¶
func Revoke(ctx context.Context, opts *doppler.AuthRevokeOptions) (doppler.APIResponse, error)
Revoke revokes auth tokens using the default client.
Types ¶
type Client ¶
Client is the client used to invoke /v3/auth APIs.
func Default ¶
func Default() *Client
Default returns a new client based on the SDK's default backend and API key.
func (Client) Revoke ¶
func (c Client) Revoke(ctx context.Context, opts *doppler.AuthRevokeOptions) (doppler.APIResponse, error)
Revoke revokes auth tokens.
Click to show internal directories.
Click to hide internal directories.