internal

package
v1.7.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package internal is a generated GoMock package.

Package internal is a generated GoMock package.

Package internal is a generated GoMock package.

Index

Constants

View Source
const (
	// Delimiter is a separator that separates the etcd path.
	Delimiter = '/'
)

Variables

View Source
var (
	// DialTimeout is the dial timeout.
	DialTimeout = dialTimeout
	// RequestTimeout is the request timeout.
	RequestTimeout = requestTimeout
	// NewClient is used to create etcd clients.
	NewClient = DialClient
)

Functions

func AddAccount

func AddAccount(endpoints []string, user, pass string)

AddAccount adds the username/password for the given etcd cluster.

func AddTLS

func AddTLS(endpoints []string, certFile, certKeyFile, caFile string, insecureSkipVerify bool) error

AddTLS adds the tls cert files for the given etcd cluster.

func GetTLS

func GetTLS(endpoints []string) (*tls.Config, bool)

GetTLS gets the tls config for the given etcd cluster.

Types

type Account