etcdutil

package
v0.0.0-...-9a5d330 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CliCertFile = "etcd-client.crt"
	CliKeyFile  = "etcd-client.key"
	CliCAFile   = "etcd-client-ca.crt"
)

Variables

This section is empty.

Functions

func ListMembers

func ListMembers(clientURLs []string, tc *tls.Config) (*clientv3.MemberListResponse, error)

func NewTLSConfig

func NewTLSConfig(certData, keyData, caData []byte) (*tls.Config, error)

func RemoveMember

func RemoveMember(clientURLs []string, tc *tls.Config, id uint64) error

Types

type MemberConfig

type MemberConfig struct {
	SecurePeer   bool
	SecureClient bool
	Namespace    string
}

MemberConfig is used to create the template for the members in the StatefulSet

func (*MemberConfig) ListenClientURL

func (m *MemberConfig) ListenClientURL() string

ListenClientURL is the URL to listen on for client connection

func (*MemberConfig) ListenPeerURL

func (m *MemberConfig) ListenPeerURL() string

ListenPeerURL is the URL to listen on for peer connections

func (*MemberConfig) PeerScheme

func (m *MemberConfig) PeerScheme() string

PeerScheme returns http or https for the peer scheme

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL