Documentation ¶
Index ¶
- Variables
- func ConnectRPCServer(in PipePair) error
- func RegisterAndServe(pipes PipePair)
- type PAMRequest
- type PipePair
- type Proxy
- func (*Proxy) Commit(r Request, dummy *int) error
- func (*Proxy) DestroyResAssociation(grpName string, dummy *int) error
- func (*Proxy) EnableCat(dummy *int, result *bool) error
- func (*Proxy) PAMAuthenticate(request PAMRequest, dummy *int) error
- func (*Proxy) RemoveTasks(tasks []string, dummy *int) error
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *rpc.Client
Client is the connection to rpc server
Functions ¶
func ConnectRPCServer ¶
ConnectRPCServer by a pipe pair Be care about this method usage, it can only be called once while we start RMD API server, sync.once could be one choice, developer should control it.
func RegisterAndServe ¶
func RegisterAndServe(pipes PipePair)
RegisterAndServe to register rpc and serve
Types ¶
type PAMRequest ¶
PAMRequest is request from rpc client
type Proxy ¶
type Proxy struct { }
Proxy struct of to rpc server
func (*Proxy) DestroyResAssociation ¶
DestroyResAssociation remove resource association
func (*Proxy) PAMAuthenticate ¶
func (*Proxy) PAMAuthenticate(request PAMRequest, dummy *int) error
PAMAuthenticate calls PAM authenticate
type Request ¶
type Request struct { Name string Res resctrl.ResAssociation }
Request struct of to rpc server
Click to show internal directories.
Click to hide internal directories.