mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-29 18:21:10 +00:00
* wip * experimenting with terraform plugin framework * cleaning up poc and adding tests * adding read / update / delete * update bridge_vlan_aware and MTU * add ipv6 and simplify IP support * fix provider's schema * add docs * run linter from cmdline * disable TF acceptance tests * add VLAN * update docs * add examole * cleanup
24 lines
711 B
Go
24 lines
711 B
Go
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
package api
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
)
|
|
|
|
// Authenticator is an interface for adding authentication data to a request.
|
|
// The authenticator is also aware of the authentication context, e.g. if it
|
|
// is configured to use the root user.
|
|
type Authenticator interface {
|
|
// IsRoot returns true if the authenticator is configured to use the root
|
|
IsRoot() bool
|
|
|
|
// AuthenticateRequest adds authentication data to a new request.
|
|
AuthenticateRequest(ctx context.Context, req *http.Request) error
|
|
}
|