Documentation ¶
Index ¶
- type ClientOption
- type ClusterConfig
- type ClusterOption
- func WithClientTLS(tls TLSConfig) ClusterOption
- func WithClusterConfig(cfg ClusterConfig) ClusterOption
- func WithClusterSize(size int) ClusterOption
- func WithPeerTLS(tls TLSConfig) ClusterOption
- func WithQuotaBackendBytes(bytes int64) ClusterOption
- func WithSnapshotCount(count uint64) ClusterOption
- func WithStrictReconfigCheck(strict bool) ClusterOption
- type CompactOption
- type DefragOption
- type DeleteOptions
- type GetOptions
- type LeaseOption
- type PutOptions
- type TLSConfig
- type TxnOptions
- type UserAddOptions
- type WatchOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOption ¶
type ClientOption func(any)
ClientOption configures the client with additional parameter. For example, if Auth is enabled, the common test cases just need to use `WithAuth` to return a ClientOption. Note that the common `WithAuth` function calls `e2e.WithAuth` or `integration.WithAuth`, depending on the build tag (either "e2e" or "integration").
type ClusterConfig ¶
type ClusterConfig struct { ClusterSize int PeerTLS TLSConfig ClientTLS TLSConfig QuotaBackendBytes int64 StrictReconfigCheck bool AuthToken string SnapshotCount uint64 // ClusterContext is used by "e2e" or "integration" to extend the // ClusterConfig. The common test cases shouldn't care about what // data is encoded or included; instead "e2e" or "integration" // framework should decode or parse it separately. ClusterContext any }
func DefaultClusterConfig ¶
func DefaultClusterConfig() ClusterConfig
func NewClusterConfig ¶
func NewClusterConfig(opts ...ClusterOption) ClusterConfig
type ClusterOption ¶
type ClusterOption func(*ClusterConfig)
func WithClientTLS ¶
func WithClientTLS(tls TLSConfig) ClusterOption
func WithClusterConfig ¶
func WithClusterConfig(cfg ClusterConfig) ClusterOption
func WithClusterSize ¶
func WithClusterSize(size int) ClusterOption
func WithPeerTLS ¶
func WithPeerTLS(tls TLSConfig) ClusterOption
func WithQuotaBackendBytes ¶
func WithQuotaBackendBytes(bytes int64) ClusterOption
func WithSnapshotCount ¶
func WithSnapshotCount(count uint64) ClusterOption
func WithStrictReconfigCheck ¶
func WithStrictReconfigCheck(strict bool) ClusterOption
type CompactOption ¶
type DefragOption ¶
type DeleteOptions ¶
type GetOptions ¶
type LeaseOption ¶
type LeaseOption struct {
WithAttachedKeys bool
}
type TLSConfig ¶
type TLSConfig string
const ( NoTLS TLSConfig = "" AutoTLS TLSConfig = "auto-tls" ManualTLS TLSConfig = "manual-tls" TickDuration = 10 * time.Millisecond )
type TxnOptions ¶
type TxnOptions struct {
Interactive bool
}
type UserAddOptions ¶
type UserAddOptions struct {
NoPassword bool
}
type WatchOptions ¶
Click to show internal directories.
Click to hide internal directories.