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
- Variables
- func AddAccount(endpoints []string, user, pass string)
- func AddTLS(endpoints []string, certFile, certKeyFile, caFile string, ...) error
- func GetTLS(endpoints []string) (*tls.Config, bool)
- type Account
- type EtcdClient
- type KV
- type Listener
- type MockEtcdClient
- func (m *MockEtcdClient) ActiveConnection() *grpc.ClientConn
- func (m *MockEtcdClient) Close() error
- func (m *MockEtcdClient) Ctx() context.Context
- func (m *MockEtcdClient) EXPECT() *MockEtcdClientMockRecorder
- func (m *MockEtcdClient) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)
- func (m *MockEtcdClient) Grant(ctx context.Context, ttl int64) (*clientv3.LeaseGrantResponse, error)
- func (m *MockEtcdClient) KeepAlive(ctx context.Context, id clientv3.LeaseID) (<-chan *clientv3.LeaseKeepAliveResponse, error)
- func (m *MockEtcdClient) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error)
- func (m *MockEtcdClient) Revoke(ctx context.Context, id clientv3.LeaseID) (*clientv3.LeaseRevokeResponse, error)
- func (m *MockEtcdClient) Watch(ctx context.Context, key string, opts ...clientv3.OpOption) clientv3.WatchChan
- type MockEtcdClientMockRecorder
- func (mr *MockEtcdClientMockRecorder) ActiveConnection() *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Close() *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Ctx() *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Get(ctx, key any, opts ...any) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Grant(ctx, ttl any) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) KeepAlive(ctx, id any) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Put(ctx, key, val any, opts ...any) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Revoke(ctx, id any) *gomock.Call
- func (mr *MockEtcdClientMockRecorder) Watch(ctx, key any, opts ...any) *gomock.Call
- type MockUpdateListener
- type MockUpdateListenerMockRecorder
- type MocketcdConn
- type MocketcdConnMockRecorder
- type Registry
- type UpdateListener
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 ¶
AddAccount adds the username/password for the given etcd cluster.