summaryrefslogtreecommitdiff
path: root/nslcd_server/interface_backend.go
blob: de9b99a785ff6f7ef8e4e97ac3ccfa47c067dce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// ./interface_backend.go.gen requests.txt
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT

package nslcd_server

import (
	"context"

	p "git.lukeshu.com/go/libnslcd/nslcd_proto"
)

// The Backend interface allows the backend store to be implemented
// separately from the protocol implementation.  Each request type
// that the nslcd server may reply to is implemented simply as a
// method that returns a channel of the resulting values.
type Backend interface {
	Config_Get(context.Context, p.Request_Config_Get) <-chan p.Config
	Alias_ByName(context.Context, p.Request_Alias_ByName) <-chan p.Alias
	Alias_All(context.Context, p.Request_Alias_All) <-chan p.Alias
	Ether_ByName(context.Context, p.Request_Ether_ByName) <-chan p.Ether
	Ether_ByEther(context.Context, p.Request_Ether_ByEther) <-chan p.Ether
	Ether_All(context.Context, p.Request_Ether_All) <-chan p.Ether
	Group_ByName(context.Context, p.Request_Group_ByName) <-chan p.Group
	Group_ByGid(context.Context, p.Request_Group_ByGid) <-chan p.Group
	Group_ByMember(context.Context, p.Request_Group_ByMember) <-chan p.Group
	Group_All(context.Context, p.Request_Group_All) <-chan p.Group
	Host_ByName(context.Context, p.Request_Host_ByName) <-chan p.Host
	Host_ByAddr(context.Context, p.Request_Host_ByAddr) <-chan p.Host
	Host_All(context.Context, p.Request_Host_All) <-chan p.Host
	Netgroup_ByName(context.Context, p.Request_Netgroup_ByName) <-chan p.Netgroup
	Netgroup_All(context.Context, p.Request_Netgroup_All) <-chan p.Netgroup
	Network_ByName(context.Context, p.Request_Network_ByName) <-chan p.Network
	Network_ByAddr(context.Context, p.Request_Network_ByAddr) <-chan p.Network
	Network_All(context.Context, p.Request_Network_All) <-chan p.Network
	Passwd_ByName(context.Context, p.Request_Passwd_ByName) <-chan p.Passwd
	Passwd_ByUID(context.Context, p.Request_Passwd_ByUID) <-chan p.Passwd
	Passwd_All(context.Context, p.Request_Passwd_All) <-chan p.Passwd
	Protocol_ByName(context.Context, p.Request_Protocol_ByName) <-chan p.Protocol
	Protocol_ByNumber(context.Context, p.Request_Protocol_ByNumber) <-chan p.Protocol
	Protocol_All(context.Context, p.Request_Protocol_All) <-chan p.Protocol
	RPC_ByName(context.Context, p.Request_RPC_ByName) <-chan p.RPC
	RPC_ByNumber(context.Context, p.Request_RPC_ByNumber) <-chan p.RPC
	RPC_All(context.Context, p.Request_RPC_All) <-chan p.RPC
	Service_ByName(context.Context, p.Request_Service_ByName) <-chan p.Service
	Service_ByNumber(context.Context, p.Request_Service_ByNumber) <-chan p.Service
	Service_All(context.Context, p.Request_Service_All) <-chan p.Service
	Shadow_ByName(context.Context, p.Request_Shadow_ByName) <-chan p.Shadow
	Shadow_All(context.Context, p.Request_Shadow_All) <-chan p.Shadow
	UserMod(context.Context, p.Request_UserMod) <-chan p.UserMod
	PAM_Authentication(context.Context, p.Request_PAM_Authentication) <-chan p.PAM_Authentication
	PAM_Authorization(context.Context, p.Request_PAM_Authorization) <-chan p.PAM_Authorization
	PAM_SessionOpen(context.Context, p.Request_PAM_SessionOpen) <-chan p.PAM_SessionOpen
	PAM_SessionClose(context.Context, p.Request_PAM_SessionClose) <-chan p.PAM_SessionClose
	PAM_PwMod(context.Context, p.Request_PAM_PwMod) <-chan p.PAM_PwMod
}