From 5d1fe0000ba409ffbce62db439ae303e30a1eeb0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 24 Aug 2021 22:04:56 -0600 Subject: Generate artifacts --- nslcd_server/interface_backend.go | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 nslcd_server/interface_backend.go (limited to 'nslcd_server/interface_backend.go') diff --git a/nslcd_server/interface_backend.go b/nslcd_server/interface_backend.go new file mode 100644 index 0000000..de9b99a --- /dev/null +++ b/nslcd_server/interface_backend.go @@ -0,0 +1,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 +} -- cgit v1.2.3