Documentation ¶
Index ¶
Constants ¶
const (
AgentService_Authenticate_FullMethodName = "/AgentService/Authenticate"
)
Variables ¶
var AgentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "AgentService", HandlerType: (*AgentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authenticate", Handler: _AgentService_Authenticate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "agent.proto", }
AgentService_ServiceDesc is the grpc.ServiceDesc for AgentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_agent_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentServiceServer ¶
func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
Types ¶
type AgentServiceClient ¶
type AgentServiceClient interface { // Give the agent an authn token with which it can retrieve a new cert Authenticate(ctx context.Context, in *AuthnRequest, opts ...grpc.CallOption) (*AuthnResponse, error) }
AgentServiceClient is the client API for AgentService 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 NewAgentServiceClient ¶
func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient
func NewClient ¶
func NewClient(path string) (AgentServiceClient, error)
NewClient creates anew RPC client for an Agent
type AgentServiceServer ¶
type AgentServiceServer interface { // Give the agent an authn token with which it can retrieve a new cert Authenticate(context.Context, *AuthnRequest) (*AuthnResponse, error) // contains filtered or unexported methods }
AgentServiceServer is the server API for AgentService service. All implementations must embed UnimplementedAgentServiceServer for forward compatibility
type AuthnRequest ¶
type AuthnRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthnRequest) Descriptor
deprecated
func (*AuthnRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthnRequest.ProtoReflect.Descriptor instead.
func (*AuthnRequest) GetToken ¶
func (x *AuthnRequest) GetToken() string
func (*AuthnRequest) ProtoMessage ¶
func (*AuthnRequest) ProtoMessage()
func (*AuthnRequest) ProtoReflect ¶ added in v0.1.0
func (x *AuthnRequest) ProtoReflect() protoreflect.Message
func (*AuthnRequest) Reset ¶
func (x *AuthnRequest) Reset()
func (*AuthnRequest) String ¶
func (x *AuthnRequest) String() string
type AuthnResponse ¶
type AuthnResponse struct {
// contains filtered or unexported fields
}
func (*AuthnResponse) Descriptor
deprecated
func (*AuthnResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthnResponse.ProtoReflect.Descriptor instead.
func (*AuthnResponse) ProtoMessage ¶
func (*AuthnResponse) ProtoMessage()
func (*AuthnResponse) ProtoReflect ¶ added in v0.1.0
func (x *AuthnResponse) ProtoReflect() protoreflect.Message
func (*AuthnResponse) Reset ¶
func (x *AuthnResponse) Reset()
func (*AuthnResponse) String ¶
func (x *AuthnResponse) String() string
type UnimplementedAgentServiceServer ¶
type UnimplementedAgentServiceServer struct { }
UnimplementedAgentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentServiceServer) Authenticate ¶
func (UnimplementedAgentServiceServer) Authenticate(context.Context, *AuthnRequest) (*AuthnResponse, error)
type UnsafeAgentServiceServer ¶ added in v0.1.0
type UnsafeAgentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServiceServer will result in compilation errors.