Documentation ¶
Index ¶
- Variables
- func NodeResolverPluginServer(server NodeResolverServer) pluginsdk.PluginServer
- func RegisterNodeResolverServer(s grpc.ServiceRegistrar, srv NodeResolverServer)
- type NodeResolverClient
- type NodeResolverPluginClient
- type NodeResolverServer
- type ResolveRequest
- type ResolveResponse
- func (*ResolveResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveResponse) GetMap() map[string]*common.Selectors
- func (*ResolveResponse) ProtoMessage()
- func (x *ResolveResponse) ProtoReflect() protoreflect.Message
- func (x *ResolveResponse) Reset()
- func (x *ResolveResponse) String() string
- type UnimplementedNodeResolverServer
- func (UnimplementedNodeResolverServer) Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
- func (UnimplementedNodeResolverServer) GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
- func (UnimplementedNodeResolverServer) Resolve(context.Context, *ResolveRequest) (*ResolveResponse, error)
- type UnsafeNodeResolverServer
Constants ¶
This section is empty.
Variables ¶
var File_spire_plugin_server_noderesolver_v0_noderesolver_proto protoreflect.FileDescriptor
var NodeResolver_ServiceDesc = grpc.ServiceDesc{ ServiceName: "spire.server.noderesolver.NodeResolver", HandlerType: (*NodeResolverServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Resolve", Handler: _NodeResolver_Resolve_Handler, }, { MethodName: "Configure", Handler: _NodeResolver_Configure_Handler, }, { MethodName: "GetPluginInfo", Handler: _NodeResolver_GetPluginInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "spire/plugin/server/noderesolver/v0/noderesolver.proto", }
NodeResolver_ServiceDesc is the grpc.ServiceDesc for NodeResolver service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func NodeResolverPluginServer ¶
func NodeResolverPluginServer(server NodeResolverServer) pluginsdk.PluginServer
func RegisterNodeResolverServer ¶
func RegisterNodeResolverServer(s grpc.ServiceRegistrar, srv NodeResolverServer)
Types ¶
type NodeResolverClient ¶
type NodeResolverClient interface { //* Retrieves a list of properties reflecting the current state of a particular node(s). Resolve(ctx context.Context, in *ResolveRequest, opts ...grpc.CallOption) (*ResolveResponse, error) //* Responsible for configuration of the plugin. Configure(ctx context.Context, in *plugin.ConfigureRequest, opts ...grpc.CallOption) (*plugin.ConfigureResponse, error) //* Returns the version and related metadata of the installed plugin. GetPluginInfo(ctx context.Context, in *plugin.GetPluginInfoRequest, opts ...grpc.CallOption) (*plugin.GetPluginInfoResponse, error) }
NodeResolverClient is the client API for NodeResolver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNodeResolverClient ¶
func NewNodeResolverClient(cc grpc.ClientConnInterface) NodeResolverClient
type NodeResolverPluginClient ¶
type NodeResolverPluginClient struct {
NodeResolverClient
}
func (*NodeResolverPluginClient) GRPCServiceName ¶
func (c *NodeResolverPluginClient) GRPCServiceName() string
func (*NodeResolverPluginClient) InitClient ¶
func (c *NodeResolverPluginClient) InitClient(conn grpc.ClientConnInterface) interface{}
func (*NodeResolverPluginClient) IsInitialized ¶
func (c *NodeResolverPluginClient) IsInitialized() bool
func (NodeResolverPluginClient) Type ¶
func (s NodeResolverPluginClient) Type() string
type NodeResolverServer ¶
type NodeResolverServer interface { //* Retrieves a list of properties reflecting the current state of a particular node(s). Resolve(context.Context, *ResolveRequest) (*ResolveResponse, error) //* Responsible for configuration of the plugin. Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error) //* Returns the version and related metadata of the installed plugin. GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error) // contains filtered or unexported methods }
NodeResolverServer is the server API for NodeResolver service. All implementations must embed UnimplementedNodeResolverServer for forward compatibility
type ResolveRequest ¶
type ResolveRequest struct { //* A list of BaseSPIFFE Ids. BaseSpiffeIdList []string `protobuf:"bytes,1,rep,name=baseSpiffeIdList,proto3" json:"baseSpiffeIdList,omitempty"` // contains filtered or unexported fields }
* Represents a request with a list of BaseSPIFFEIDs.
func (*ResolveRequest) Descriptor
deprecated
func (*ResolveRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.
func (*ResolveRequest) GetBaseSpiffeIdList ¶
func (x *ResolveRequest) GetBaseSpiffeIdList() []string
func (*ResolveRequest) ProtoMessage ¶
func (*ResolveRequest) ProtoMessage()
func (*ResolveRequest) ProtoReflect ¶
func (x *ResolveRequest) ProtoReflect() protoreflect.Message
func (*ResolveRequest) Reset ¶
func (x *ResolveRequest) Reset()
func (*ResolveRequest) String ¶
func (x *ResolveRequest) String() string
type ResolveResponse ¶
type ResolveResponse struct { //* Map[SPIFFE_ID] => Selectors. Map map[string]*common.Selectors `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
* Represents a response with a map of SPIFFE ID to a list of Selectors.
func (*ResolveResponse) Descriptor
deprecated
func (*ResolveResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead.
func (*ResolveResponse) ProtoMessage ¶
func (*ResolveResponse) ProtoMessage()
func (*ResolveResponse) ProtoReflect ¶
func (x *ResolveResponse) ProtoReflect() protoreflect.Message
func (*ResolveResponse) Reset ¶
func (x *ResolveResponse) Reset()
func (*ResolveResponse) String ¶
func (x *ResolveResponse) String() string
type UnimplementedNodeResolverServer ¶
type UnimplementedNodeResolverServer struct { }
UnimplementedNodeResolverServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeResolverServer) Configure ¶
func (UnimplementedNodeResolverServer) Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
func (UnimplementedNodeResolverServer) GetPluginInfo ¶
func (UnimplementedNodeResolverServer) GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
func (UnimplementedNodeResolverServer) Resolve ¶
func (UnimplementedNodeResolverServer) Resolve(context.Context, *ResolveRequest) (*ResolveResponse, error)
type UnsafeNodeResolverServer ¶
type UnsafeNodeResolverServer interface {
// contains filtered or unexported methods
}
UnsafeNodeResolverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeResolverServer will result in compilation errors.