package
module
Version:
v0.0.0-...-9da37ed
Opens a new window with list of versions in this module.
Published: Apr 24, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Context() context.Context
-
func File(ctx context.Context, name string) (*os.File, error)
-
func GoRun(ctx context.Context, out, errOut io.Writer, args ...string) (int, error)
-
func MustFile(ctx context.Context, t *testing.T, name string) *os.File
-
func NewTLog(t testing.TB) io.Writer
-
func Run(ctx context.Context, out, errOut io.Writer, args ...string) error
-
func WaitForServerReady(address string, out io.Writer)
-
type Client
-
type TLogger
Context returns a Context registered to close on SIGTERM and SIGINT.
If a second signal is caught, the program is terminated with exit code 1.
File returns a writer to a new file that will be closed when the context is
cancelled.
GoRun runs the command in the background and returns a process group id
MustFile fails the test if it can't create a file called name.
NewTLog returns a TLogger
Run runs the command and blocks until it is finished
WaitForServerReady polls the address every second until it responds
type Client interface {
V1() v1Client
}
Client holds versioned clients to spicedb that all share the same connection
NewClient returns a spicedb Client for the given grpc connection
TLogger wraps a testing.TB and makes it conform to io.Writer
Write satisfied io.Writer
Source Files
¶
Directories
¶
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
|
|
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
Click to show internal directories.
Click to hide internal directories.