authzv1alpha

package
v0.0.0-...-9fa10a5 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeysService_GetPublicKeys_FullMethodName = "/blocky.authz.v1alpha.KeysService/GetPublicKeys"
)

Variables

View Source
var File_blocky_authz_v1alpha_keys_proto protoreflect.FileDescriptor
View Source
var KeysService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.authz.v1alpha.KeysService",
	HandlerType: (*KeysServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPublicKeys",
			Handler:    _KeysService_GetPublicKeys_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/authz/v1alpha/keys.proto",
}

KeysService_ServiceDesc is the grpc.ServiceDesc for KeysService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKeysServiceServer

func RegisterKeysServiceServer(s grpc.ServiceRegistrar, srv KeysServiceServer)

Types

type GetPublicKeysRequest

type GetPublicKeysRequest struct {
	// contains filtered or unexported fields
}

GetPublicKeysRequest is a request used to get public keys.

func (*GetPublicKeysRequest) Descriptor deprecated

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

Deprecated: Use GetPublicKeysRequest.ProtoReflect.Descriptor instead.

func (*GetPublicKeysRequest) ProtoMessage

func (*GetPublicKeysRequest) ProtoMessage()

func (*GetPublicKeysRequest) ProtoReflect

func (x *GetPublicKeysRequest) ProtoReflect() protoreflect.Message

func (*GetPublicKeysRequest) Reset

func (x *GetPublicKeysRequest) Reset()

func (*GetPublicKeysRequest) String

func (x *GetPublicKeysRequest) String() string

type GetPublicKeysResponse

type GetPublicKeysResponse struct {

	// The public keys used to verify tokens and signatures.
	Keys []*jwkpb.JWK `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

GetPublicKeysResponse is a response used to get public keys.

func (*GetPublicKeysResponse) Descriptor deprecated

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

Deprecated: Use GetPublicKeysResponse.ProtoReflect.Descriptor instead.

func (*GetPublicKeysResponse) GetKeys

func (x *GetPublicKeysResponse) GetKeys() []*jwkpb.JWK

func (*GetPublicKeysResponse) ProtoMessage

func (*GetPublicKeysResponse) ProtoMessage()

func (*GetPublicKeysResponse) ProtoReflect

func (x *GetPublicKeysResponse) ProtoReflect() protoreflect.Message

func (*GetPublicKeysResponse) Reset

func (x *GetPublicKeysResponse) Reset()

func (*GetPublicKeysResponse) String

func (x *GetPublicKeysResponse) String() string

type KeysServiceClient

type KeysServiceClient interface {
	// Returns the public keys used to verify tokens and signatures.
	// The keys are returned in the JWK format as defined in RFC 7517.
	// The order of the keys determines the order in which they are used.
	GetPublicKeys(ctx context.Context, in *GetPublicKeysRequest, opts ...grpc.CallOption) (*GetPublicKeysResponse, error)
}

KeysServiceClient is the client API for KeysService 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 KeysServiceServer

type KeysServiceServer interface {
	// Returns the public keys used to verify tokens and signatures.
	// The keys are returned in the JWK format as defined in RFC 7517.
	// The order of the keys determines the order in which they are used.
	GetPublicKeys(context.Context, *GetPublicKeysRequest) (*GetPublicKeysResponse, error)
	// contains filtered or unexported methods
}

KeysServiceServer is the server API for KeysService service. All implementations must embed UnimplementedKeysServiceServer for forward compatibility

type UnimplementedKeysServiceServer

type UnimplementedKeysServiceServer struct {
}

UnimplementedKeysServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedKeysServiceServer) GetPublicKeys

type UnsafeKeysServiceServer

type UnsafeKeysServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKeysServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeysServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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