-
Notifications
You must be signed in to change notification settings - Fork 19
/
upstreamauthority_spire_plugin.pb.go
50 lines (38 loc) · 1.41 KB
/
upstreamauthority_spire_plugin.pb.go
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
// Code generated by protoc-gen-go-spire. DO NOT EDIT.
package upstreamauthorityv1
import (
pluginsdk "github.com/spiffe/spire-plugin-sdk/pluginsdk"
grpc "google.golang.org/grpc"
)
func UpstreamAuthorityPluginServer(server UpstreamAuthorityServer) pluginsdk.PluginServer {
return upstreamAuthorityPluginServer{UpstreamAuthorityServer: server}
}
type upstreamAuthorityPluginServer struct {
UpstreamAuthorityServer
}
func (s upstreamAuthorityPluginServer) Type() string {
return "UpstreamAuthority"
}
func (s upstreamAuthorityPluginServer) GRPCServiceName() string {
return "spire.plugin.server.upstreamauthority.v1.UpstreamAuthority"
}
func (s upstreamAuthorityPluginServer) RegisterServer(server *grpc.Server) interface{} {
RegisterUpstreamAuthorityServer(server, s.UpstreamAuthorityServer)
return s.UpstreamAuthorityServer
}
type UpstreamAuthorityPluginClient struct {
UpstreamAuthorityClient
}
func (s UpstreamAuthorityPluginClient) Type() string {
return "UpstreamAuthority"
}
func (c *UpstreamAuthorityPluginClient) IsInitialized() bool {
return c.UpstreamAuthorityClient != nil
}
func (c *UpstreamAuthorityPluginClient) GRPCServiceName() string {
return "spire.plugin.server.upstreamauthority.v1.UpstreamAuthority"
}
func (c *UpstreamAuthorityPluginClient) InitClient(conn grpc.ClientConnInterface) interface{} {
c.UpstreamAuthorityClient = NewUpstreamAuthorityClient(conn)
return c.UpstreamAuthorityClient
}