summaryrefslogtreecommitdiff
path: root/nslcd_server/type_nilbackend.go
diff options
context:
space:
mode:
Diffstat (limited to 'nslcd_server/type_nilbackend.go')
-rw-r--r--nslcd_server/type_nilbackend.go209
1 files changed, 209 insertions, 0 deletions
diff --git a/nslcd_server/type_nilbackend.go b/nslcd_server/type_nilbackend.go
new file mode 100644
index 0000000..208b62f
--- /dev/null
+++ b/nslcd_server/type_nilbackend.go
@@ -0,0 +1,209 @@
+// ./type_nilbackend.go.gen interface_backend.go
+// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
+
+package nslcd_server
+
+import (
+ "context"
+
+ p "git.lukeshu.com/go/libnslcd/nslcd_proto"
+)
+
+// NilBackend implements the Backend interface, but only returns empty
+// responses. It is useful to add as an anonymous member of a backend
+// implementation that does not return results for all of the
+// databases.
+type NilBackend struct{}
+
+func (o NilBackend) Config_Get(context.Context, p.Request_Config_Get) <-chan p.Config {
+ r := make(chan p.Config)
+ close(r)
+ return r
+}
+func (o NilBackend) Alias_ByName(context.Context, p.Request_Alias_ByName) <-chan p.Alias {
+ r := make(chan p.Alias)
+ close(r)
+ return r
+}
+func (o NilBackend) Alias_All(context.Context, p.Request_Alias_All) <-chan p.Alias {
+ r := make(chan p.Alias)
+ close(r)
+ return r
+}
+func (o NilBackend) Ether_ByName(context.Context, p.Request_Ether_ByName) <-chan p.Ether {
+ r := make(chan p.Ether)
+ close(r)
+ return r
+}
+func (o NilBackend) Ether_ByEther(context.Context, p.Request_Ether_ByEther) <-chan p.Ether {
+ r := make(chan p.Ether)
+ close(r)
+ return r
+}
+func (o NilBackend) Ether_All(context.Context, p.Request_Ether_All) <-chan p.Ether {
+ r := make(chan p.Ether)
+ close(r)
+ return r
+}
+func (o NilBackend) Group_ByName(context.Context, p.Request_Group_ByName) <-chan p.Group {
+ r := make(chan p.Group)
+ close(r)
+ return r
+}
+func (o NilBackend) Group_ByGid(context.Context, p.Request_Group_ByGid) <-chan p.Group {
+ r := make(chan p.Group)
+ close(r)
+ return r
+}
+func (o NilBackend) Group_ByMember(context.Context, p.Request_Group_ByMember) <-chan p.Group {
+ r := make(chan p.Group)
+ close(r)
+ return r
+}
+func (o NilBackend) Group_All(context.Context, p.Request_Group_All) <-chan p.Group {
+ r := make(chan p.Group)
+ close(r)
+ return r
+}
+func (o NilBackend) Host_ByName(context.Context, p.Request_Host_ByName) <-chan p.Host {
+ r := make(chan p.Host)
+ close(r)
+ return r
+}
+func (o NilBackend) Host_ByAddr(context.Context, p.Request_Host_ByAddr) <-chan p.Host {
+ r := make(chan p.Host)
+ close(r)
+ return r
+}
+func (o NilBackend) Host_All(context.Context, p.Request_Host_All) <-chan p.Host {
+ r := make(chan p.Host)
+ close(r)
+ return r
+}
+func (o NilBackend) Netgroup_ByName(context.Context, p.Request_Netgroup_ByName) <-chan p.Netgroup {
+ r := make(chan p.Netgroup)
+ close(r)
+ return r
+}
+func (o NilBackend) Netgroup_All(context.Context, p.Request_Netgroup_All) <-chan p.Netgroup {
+ r := make(chan p.Netgroup)
+ close(r)
+ return r
+}
+func (o NilBackend) Network_ByName(context.Context, p.Request_Network_ByName) <-chan p.Network {
+ r := make(chan p.Network)
+ close(r)
+ return r
+}
+func (o NilBackend) Network_ByAddr(context.Context, p.Request_Network_ByAddr) <-chan p.Network {
+ r := make(chan p.Network)
+ close(r)
+ return r
+}
+func (o NilBackend) Network_All(context.Context, p.Request_Network_All) <-chan p.Network {
+ r := make(chan p.Network)
+ close(r)
+ return r
+}
+func (o NilBackend) Passwd_ByName(context.Context, p.Request_Passwd_ByName) <-chan p.Passwd {
+ r := make(chan p.Passwd)
+ close(r)
+ return r
+}
+func (o NilBackend) Passwd_ByUID(context.Context, p.Request_Passwd_ByUID) <-chan p.Passwd {
+ r := make(chan p.Passwd)
+ close(r)
+ return r
+}
+func (o NilBackend) Passwd_All(context.Context, p.Request_Passwd_All) <-chan p.Passwd {
+ r := make(chan p.Passwd)
+ close(r)
+ return r
+}
+func (o NilBackend) Protocol_ByName(context.Context, p.Request_Protocol_ByName) <-chan p.Protocol {
+ r := make(chan p.Protocol)
+ close(r)
+ return r
+}
+func (o NilBackend) Protocol_ByNumber(context.Context, p.Request_Protocol_ByNumber) <-chan p.Protocol {
+ r := make(chan p.Protocol)
+ close(r)
+ return r
+}
+func (o NilBackend) Protocol_All(context.Context, p.Request_Protocol_All) <-chan p.Protocol {
+ r := make(chan p.Protocol)
+ close(r)
+ return r
+}
+func (o NilBackend) RPC_ByName(context.Context, p.Request_RPC_ByName) <-chan p.RPC {
+ r := make(chan p.RPC)
+ close(r)
+ return r
+}
+func (o NilBackend) RPC_ByNumber(context.Context, p.Request_RPC_ByNumber) <-chan p.RPC {
+ r := make(chan p.RPC)
+ close(r)
+ return r
+}
+func (o NilBackend) RPC_All(context.Context, p.Request_RPC_All) <-chan p.RPC {
+ r := make(chan p.RPC)
+ close(r)
+ return r
+}
+func (o NilBackend) Service_ByName(context.Context, p.Request_Service_ByName) <-chan p.Service {
+ r := make(chan p.Service)
+ close(r)
+ return r
+}
+func (o NilBackend) Service_ByNumber(context.Context, p.Request_Service_ByNumber) <-chan p.Service {
+ r := make(chan p.Service)
+ close(r)
+ return r
+}
+func (o NilBackend) Service_All(context.Context, p.Request_Service_All) <-chan p.Service {
+ r := make(chan p.Service)
+ close(r)
+ return r
+}
+func (o NilBackend) Shadow_ByName(context.Context, p.Request_Shadow_ByName) <-chan p.Shadow {
+ r := make(chan p.Shadow)
+ close(r)
+ return r
+}
+func (o NilBackend) Shadow_All(context.Context, p.Request_Shadow_All) <-chan p.Shadow {
+ r := make(chan p.Shadow)
+ close(r)
+ return r
+}
+func (o NilBackend) UserMod(context.Context, p.Request_UserMod) <-chan p.UserMod {
+ r := make(chan p.UserMod)
+ close(r)
+ return r
+}
+func (o NilBackend) PAM_Authentication(context.Context, p.Request_PAM_Authentication) <-chan p.PAM_Authentication {
+ r := make(chan p.PAM_Authentication)
+ close(r)
+ return r
+}
+func (o NilBackend) PAM_Authorization(context.Context, p.Request_PAM_Authorization) <-chan p.PAM_Authorization {
+ r := make(chan p.PAM_Authorization)
+ close(r)
+ return r
+}
+func (o NilBackend) PAM_SessionOpen(context.Context, p.Request_PAM_SessionOpen) <-chan p.PAM_SessionOpen {
+ r := make(chan p.PAM_SessionOpen)
+ close(r)
+ return r
+}
+func (o NilBackend) PAM_SessionClose(context.Context, p.Request_PAM_SessionClose) <-chan p.PAM_SessionClose {
+ r := make(chan p.PAM_SessionClose)
+ close(r)
+ return r
+}
+func (o NilBackend) PAM_PwMod(context.Context, p.Request_PAM_PwMod) <-chan p.PAM_PwMod {
+ r := make(chan p.PAM_PwMod)
+ close(r)
+ return r
+}
+
+var _ Backend = NilBackend{}