...

Package credentials

import "go.etcd.io/etcd/client/v3/credentials"
Overview
Index

Overview ▾

Package credentials implements gRPC credential interface with etcd specific logic. e.g., client handshake with custom authority parameter

type Bundle

Bundle defines gRPC credential interface.

type Bundle interface {
    grpccredentials.Bundle
    UpdateAuthToken(token string)
}

func NewBundle

func NewBundle(cfg Config) Bundle

NewBundle constructs a new gRPC credential bundle.

type Config

Config defines gRPC credential configuration.

type Config struct {
    TLSConfig *tls.Config
}