package endpoint
import "go.etcd.io/etcd/client/v3/internal/endpoint"
Index ¶
Functions ¶
func Interpret ¶
Interpret endpoint parses an endpoint of the form (http|https)://<host>*|(unix|unixs)://<path>) and returns low-level address (supported by 'net') to connect to, and a server name used for x509 certificate matching.
Types ¶
type CredsRequirement ¶
type CredsRequirement int
const ( // CREDS_REQUIRE - Credentials/certificate required for thi type of connection. CREDS_REQUIRE CredsRequirement = iota // CREDS_DROP - Credentials/certificate not needed and should get ignored. CREDS_DROP // CREDS_OPTIONAL - Credentials/certificate might be used if supplied CREDS_OPTIONAL )
func RequiresCredentials ¶
func RequiresCredentials(ep string) CredsRequirement
RequiresCredentials returns whether given endpoint requires credentials/certificates for connection.
Source Files ¶
endpoint.go
- Version
- v3.5.18 (latest)
- Published
- Jan 24, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 day ago –
Tools for package owners.