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 ( // CredsRequire - Credentials/certificate required for thi type of connection. CredsRequire CredsRequirement = iota // CredsDrop - Credentials/certificate not needed and should get ignored. CredsDrop // CredsOptional - Credentials/certificate might be used if supplied CredsOptional )
func RequiresCredentials ¶
func RequiresCredentials(ep string) CredsRequirement
RequiresCredentials returns whether given endpoint requires credentials/certificates for connection.
Source Files ¶
endpoint.go
- Version
- v3.6.0 (latest)
- Published
- May 15, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 week ago –
Tools for package owners.