Documentation ¶
Index ¶
- Variables
- func IdentityProviderServiceServer(server IdentityProviderServer) pluginsdk.ServiceServer
- func RegisterIdentityProviderServer(s grpc.ServiceRegistrar, srv IdentityProviderServer)
- type FetchX509IdentityRequest
- type FetchX509IdentityResponse
- func (*FetchX509IdentityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchX509IdentityResponse) GetBundle() *types.Bundle
- func (x *FetchX509IdentityResponse) GetIdentity() *X509Identity
- func (*FetchX509IdentityResponse) ProtoMessage()
- func (x *FetchX509IdentityResponse) ProtoReflect() protoreflect.Message
- func (x *FetchX509IdentityResponse) Reset()
- func (x *FetchX509IdentityResponse) String() string
- type IdentityProviderClient
- type IdentityProviderServer
- type IdentityProviderServiceClient
- type UnimplementedIdentityProviderServer
- type UnsafeIdentityProviderServer
- type X509Identity
- func (*X509Identity) Descriptor() ([]byte, []int)deprecated
- func (x *X509Identity) GetCertChain() [][]byte
- func (x *X509Identity) GetPrivateKey() []byte
- func (*X509Identity) ProtoMessage()
- func (x *X509Identity) ProtoReflect() protoreflect.Message
- func (x *X509Identity) Reset()
- func (x *X509Identity) String() string
Constants ¶
This section is empty.
Variables ¶
var File_spire_hostservice_server_identityprovider_v1_identityprovider_proto protoreflect.FileDescriptor
var IdentityProvider_ServiceDesc = grpc.ServiceDesc{ ServiceName: "spire.hostservice.server.identityprovider.v1.IdentityProvider", HandlerType: (*IdentityProviderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchX509Identity", Handler: _IdentityProvider_FetchX509Identity_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "spire/hostservice/server/identityprovider/v1/identityprovider.proto", }
IdentityProvider_ServiceDesc is the grpc.ServiceDesc for IdentityProvider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func IdentityProviderServiceServer ¶
func IdentityProviderServiceServer(server IdentityProviderServer) pluginsdk.ServiceServer
func RegisterIdentityProviderServer ¶
func RegisterIdentityProviderServer(s grpc.ServiceRegistrar, srv IdentityProviderServer)
Types ¶
type FetchX509IdentityRequest ¶
type FetchX509IdentityRequest struct {
// contains filtered or unexported fields
}
func (*FetchX509IdentityRequest) Descriptor
deprecated
func (*FetchX509IdentityRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchX509IdentityRequest.ProtoReflect.Descriptor instead.
func (*FetchX509IdentityRequest) ProtoMessage ¶
func (*FetchX509IdentityRequest) ProtoMessage()
func (*FetchX509IdentityRequest) ProtoReflect ¶
func (x *FetchX509IdentityRequest) ProtoReflect() protoreflect.Message
func (*FetchX509IdentityRequest) Reset ¶
func (x *FetchX509IdentityRequest) Reset()
func (*FetchX509IdentityRequest) String ¶
func (x *FetchX509IdentityRequest) String() string
type FetchX509IdentityResponse ¶
type FetchX509IdentityResponse struct { // Required. The X.509 identity. Identity *X509Identity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // Required. The bundle of the trust domain. Bundle *types.Bundle `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"` // contains filtered or unexported fields }
func (*FetchX509IdentityResponse) Descriptor
deprecated
func (*FetchX509IdentityResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchX509IdentityResponse.ProtoReflect.Descriptor instead.
func (*FetchX509IdentityResponse) GetBundle ¶
func (x *FetchX509IdentityResponse) GetBundle() *types.Bundle
func (*FetchX509IdentityResponse) GetIdentity ¶
func (x *FetchX509IdentityResponse) GetIdentity() *X509Identity
func (*FetchX509IdentityResponse) ProtoMessage ¶
func (*FetchX509IdentityResponse) ProtoMessage()
func (*FetchX509IdentityResponse) ProtoReflect ¶
func (x *FetchX509IdentityResponse) ProtoReflect() protoreflect.Message
func (*FetchX509IdentityResponse) Reset ¶
func (x *FetchX509IdentityResponse) Reset()
func (*FetchX509IdentityResponse) String ¶
func (x *FetchX509IdentityResponse) String() string
type IdentityProviderClient ¶
type IdentityProviderClient interface { // Fetches an X.509 identity (i.e. X509-SVID) that the caller can use to // authenticate with other members of the trust domain. Also returns the // bundle required to authenticate other identities from the trust domain. FetchX509Identity(ctx context.Context, in *FetchX509IdentityRequest, opts ...grpc.CallOption) (*FetchX509IdentityResponse, error) }
IdentityProviderClient is the client API for IdentityProvider 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 NewIdentityProviderClient ¶
func NewIdentityProviderClient(cc grpc.ClientConnInterface) IdentityProviderClient
type IdentityProviderServer ¶
type IdentityProviderServer interface { // Fetches an X.509 identity (i.e. X509-SVID) that the caller can use to // authenticate with other members of the trust domain. Also returns the // bundle required to authenticate other identities from the trust domain. FetchX509Identity(context.Context, *FetchX509IdentityRequest) (*FetchX509IdentityResponse, error) // contains filtered or unexported methods }
IdentityProviderServer is the server API for IdentityProvider service. All implementations must embed UnimplementedIdentityProviderServer for forward compatibility
type IdentityProviderServiceClient ¶
type IdentityProviderServiceClient struct {
IdentityProviderClient
}
func (*IdentityProviderServiceClient) GRPCServiceName ¶
func (c *IdentityProviderServiceClient) GRPCServiceName() string
func (*IdentityProviderServiceClient) InitClient ¶
func (c *IdentityProviderServiceClient) InitClient(conn grpc.ClientConnInterface) interface{}
func (*IdentityProviderServiceClient) IsInitialized ¶
func (c *IdentityProviderServiceClient) IsInitialized() bool
type UnimplementedIdentityProviderServer ¶
type UnimplementedIdentityProviderServer struct { }
UnimplementedIdentityProviderServer must be embedded to have forward compatible implementations.
func (UnimplementedIdentityProviderServer) FetchX509Identity ¶
func (UnimplementedIdentityProviderServer) FetchX509Identity(context.Context, *FetchX509IdentityRequest) (*FetchX509IdentityResponse, error)
type UnsafeIdentityProviderServer ¶
type UnsafeIdentityProviderServer interface {
// contains filtered or unexported methods
}
UnsafeIdentityProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityProviderServer will result in compilation errors.
type X509Identity ¶
type X509Identity struct { // Required. The certificate chain (ASN.1 encoded). The first certificate // in the chain is the leaf (e.g. the X509-SVID). CertChain [][]byte `protobuf:"bytes,1,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"` // Required. The private key for the identity (PKCS #8 encoded). PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // contains filtered or unexported fields }
func (*X509Identity) Descriptor
deprecated
func (*X509Identity) Descriptor() ([]byte, []int)
Deprecated: Use X509Identity.ProtoReflect.Descriptor instead.
func (*X509Identity) GetCertChain ¶
func (x *X509Identity) GetCertChain() [][]byte
func (*X509Identity) GetPrivateKey ¶
func (x *X509Identity) GetPrivateKey() []byte
func (*X509Identity) ProtoMessage ¶
func (*X509Identity) ProtoMessage()
func (*X509Identity) ProtoReflect ¶
func (x *X509Identity) ProtoReflect() protoreflect.Message
func (*X509Identity) Reset ¶
func (x *X509Identity) Reset()
func (*X509Identity) String ¶
func (x *X509Identity) String() string