noderesolverv1

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_spire_plugin_server_noderesolver_v1_noderesolver_proto protoreflect.FileDescriptor
View Source
var NodeResolver_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spire.plugin.server.noderesolver.v1.NodeResolver",
	HandlerType: (*NodeResolverServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Resolve",
			Handler:    _NodeResolver_Resolve_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spire/plugin/server/noderesolver/v1/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 {
	// Resolve resolves additional selectors for a given agent.
	Resolve(ctx context.Context, in *ResolveRequest, opts ...grpc.CallOption) (*ResolveResponse, 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.

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

type NodeResolverServer

type NodeResolverServer interface {
	// Resolve resolves additional selectors for a given agent.
	Resolve(context.Context, *ResolveRequest) (*ResolveResponse, 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 {

	// Required. The agent ID to resolve selectors for.
	AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveRequest) Descriptor deprecated

func (*ResolveRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.

func (*ResolveRequest) GetAgentId

func (x *ResolveRequest) GetAgentId() 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 {

	// Optional. The selector values to ascribe to the agent. The type of
	// the selector is inferred from the plugin name.
	SelectorValues []string `protobuf:"bytes,1,rep,name=selector_values,json=selectorValues,proto3" json:"selector_values,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveResponse) Descriptor deprecated

func (*ResolveResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead.

func (*ResolveResponse) GetSelectorValues

func (x *ResolveResponse) GetSelectorValues() []string

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) Resolve

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL