multihop

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_multihop_github_com_hashicorp_nodeenrollment_multihop_v1_proto protoreflect.FileDescriptor
View Source
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.

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.

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.

Jump to

Keyboard shortcuts

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