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 ¶ added in v0.14.0
func GetReadConn(cmd *cobra.Command) (*grpc.ClientConn, error)
func GetWriteConn ¶ added in v0.14.0
func GetWriteConn(cmd *cobra.Command) (*grpc.ClientConn, error)
func RegisterRemoteURLFlags ¶ added in v0.14.0
Types ¶
type ServerType ¶ added in v0.14.0
type ServerType string
const ( WriteServer ServerType = "write" ReadServer ServerType = "read" )
type TestServer ¶ added in v0.14.0
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 ¶ added in v0.14.0
func NewTestServer(t *testing.T, rw ServerType, nspaces []*namespace.Namespace, newCmd func() *cobra.Command) *TestServer
func (*TestServer) Shutdown ¶ added in v0.14.0
func (ts *TestServer) Shutdown(t *testing.T)
Click to show internal directories.
Click to hide internal directories.