Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMultihopServiceServer(s grpc.ServiceRegistrar, srv MultihopServiceServer)
- type MultihopServiceClient
- type MultihopServiceServer
- type UnimplementedMultihopServiceServer
- func (UnimplementedMultihopServiceServer) FetchNodeCredentials(context.Context, *types.FetchNodeCredentialsRequest) (*types.FetchNodeCredentialsResponse, error)
- func (UnimplementedMultihopServiceServer) GenerateServerCertificates(context.Context, *types.GenerateServerCertificatesRequest) (*types.GenerateServerCertificatesResponse, error)
- func (UnimplementedMultihopServiceServer) RotateNodeCredentials(context.Context, *types.RotateNodeCredentialsRequest) (*types.RotateNodeCredentialsResponse, error)
- type UnsafeMultihopServiceServer
Constants ¶
const ( MultihopService_FetchNodeCredentials_FullMethodName = "/github.com.hashicorp.nodeenrollment.multihop.v1.MultihopService/FetchNodeCredentials" MultihopService_GenerateServerCertificates_FullMethodName = "/github.com.hashicorp.nodeenrollment.multihop.v1.MultihopService/GenerateServerCertificates" MultihopService_RotateNodeCredentials_FullMethodName = "/github.com.hashicorp.nodeenrollment.multihop.v1.MultihopService/RotateNodeCredentials" )
Variables ¶
var File_multihop_github_com_hashicorp_nodeenrollment_multihop_v1_proto protoreflect.FileDescriptor
var MultihopService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.hashicorp.nodeenrollment.multihop.v1.MultihopService", HandlerType: (*MultihopServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchNodeCredentials", Handler: _MultihopService_FetchNodeCredentials_Handler, }, { MethodName: "GenerateServerCertificates", Handler: _MultihopService_GenerateServerCertificates_Handler, }, { MethodName: "RotateNodeCredentials", Handler: _MultihopService_RotateNodeCredentials_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "multihop/github.com.hashicorp.nodeenrollment.multihop.v1.proto", }
MultihopService_ServiceDesc is the grpc.ServiceDesc for MultihopService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMultihopServiceServer ¶
func RegisterMultihopServiceServer(s grpc.ServiceRegistrar, srv MultihopServiceServer)
Types ¶
type MultihopServiceClient ¶
type MultihopServiceClient interface { // FetchNodeCredentials provides lookup capability for nodes to fetch // credentials. FetchNodeCredentials(ctx context.Context, in *types.FetchNodeCredentialsRequest, opts ...grpc.CallOption) (*types.FetchNodeCredentialsResponse, error) // GenerateServerCertificates provides a capability to get a server // certificate for an incoming fetch or authentication request. GenerateServerCertificates(ctx context.Context, in *types.GenerateServerCertificatesRequest, opts ...grpc.CallOption) (*types.GenerateServerCertificatesResponse, error) // RotateNodeCredentials a way for a node to request rotation of its // credentials. RotateNodeCredentials(ctx context.Context, in *types.RotateNodeCredentialsRequest, opts ...grpc.CallOption) (*types.RotateNodeCredentialsResponse, error) }
MultihopServiceClient is the client API for MultihopService 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 NewMultihopServiceClient ¶
func NewMultihopServiceClient(cc grpc.ClientConnInterface) MultihopServiceClient
type MultihopServiceServer ¶
type MultihopServiceServer interface { // FetchNodeCredentials provides lookup capability for nodes to fetch // credentials. FetchNodeCredentials(context.Context, *types.FetchNodeCredentialsRequest) (*types.FetchNodeCredentialsResponse, error) // GenerateServerCertificates provides a capability to get a server // certificate for an incoming fetch or authentication request. GenerateServerCertificates(context.Context, *types.GenerateServerCertificatesRequest) (*types.GenerateServerCertificatesResponse, error) // RotateNodeCredentials a way for a node to request rotation of its // credentials. RotateNodeCredentials(context.Context, *types.RotateNodeCredentialsRequest) (*types.RotateNodeCredentialsResponse, error) // contains filtered or unexported methods }
MultihopServiceServer is the server API for MultihopService service. All implementations must embed UnimplementedMultihopServiceServer for forward compatibility
type UnimplementedMultihopServiceServer ¶
type UnimplementedMultihopServiceServer struct { }
UnimplementedMultihopServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMultihopServiceServer) FetchNodeCredentials ¶
func (UnimplementedMultihopServiceServer) FetchNodeCredentials(context.Context, *types.FetchNodeCredentialsRequest) (*types.FetchNodeCredentialsResponse, error)
func (UnimplementedMultihopServiceServer) GenerateServerCertificates ¶
func (UnimplementedMultihopServiceServer) GenerateServerCertificates(context.Context, *types.GenerateServerCertificatesRequest) (*types.GenerateServerCertificatesResponse, error)
func (UnimplementedMultihopServiceServer) RotateNodeCredentials ¶
func (UnimplementedMultihopServiceServer) RotateNodeCredentials(context.Context, *types.RotateNodeCredentialsRequest) (*types.RotateNodeCredentialsResponse, error)
type UnsafeMultihopServiceServer ¶
type UnsafeMultihopServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMultihopServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MultihopServiceServer will result in compilation errors.