Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagReadRemote = "read-remote" FlagWriteRemote = "write-remote" EnvReadRemote = "KETO_READ_REMOTE" EnvWriteRemote = "KETO_WRITE_REMOTE" ContextKeyTimeout contextKeys = "timeout" )
Variables ¶
This section is empty.
Functions ¶
func GetReadConn ¶
func GetReadConn(cmd *cobra.Command) (*grpc.ClientConn, error)
func GetWriteConn ¶
func GetWriteConn(cmd *cobra.Command) (*grpc.ClientConn, error)
func RegisterRemoteURLFlags ¶
Types ¶
type ServerType ¶
type ServerType string
const ( WriteServer ServerType = "write" ReadServer ServerType = "read" )
type TestServer ¶
type TestServer struct { Reg driver.Registry Namespace *namespace.Namespace Addr, FlagRemote string Cmd *cmdx.CommandExecuter Server *grpc.Server NewServer func() *grpc.Server // contains filtered or unexported fields }
func NewTestServer ¶
func NewTestServer(t *testing.T, rw ServerType, nspaces []*namespace.Namespace, newCmd func() *cobra.Command) *TestServer
func (*TestServer) Shutdown ¶
func (ts *TestServer) Shutdown(t *testing.T)
Click to show internal directories.
Click to hide internal directories.