Documentation ¶
Index ¶
- func IsError(err error, re string) bool
- func IsPError(pErr *roachpb.Error, re string) bool
- func MakeKey(keys ...[]byte) []byte
- func NewNodeTestBaseContext() *base.Context
- func NewTestBaseContext(user string) *base.Context
- func TransitiveImports(importpath string, cgo bool) (map[string]struct{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsError ¶
IsError returns true if err is non-nil and the error string matches the supplied regexp.
func IsPError ¶
IsPError returns true if pErr is non-nil and the error message matches the supplied regexp.
func NewNodeTestBaseContext ¶
NewNodeTestBaseContext creates a base context for testing. This uses embedded certs and the "node" user (default node user). The "node" user has both server and client certificates.
func NewTestBaseContext ¶
NewTestBaseContext creates a secure base context for 'user'.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.