Documentation ¶
Index ¶
- Variables
- func RegisterEdgeAuthServer(s grpc.ServiceRegistrar, srv EdgeAuthServer)
- func RegisterEdgeHSMServer(s grpc.ServiceRegistrar, srv EdgeHSMServer)
- type CreateSignedCertificateReply
- func (*CreateSignedCertificateReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSignedCertificateReply) GetCertificate() string
- func (x *CreateSignedCertificateReply) GetId() string
- func (*CreateSignedCertificateReply) ProtoMessage()
- func (x *CreateSignedCertificateReply) ProtoReflect() protoreflect.Message
- func (x *CreateSignedCertificateReply) Reset()
- func (x *CreateSignedCertificateReply) String() string
- type CreateSignedCertificateRequest
- func (*CreateSignedCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSignedCertificateRequest) GetCommonname() string
- func (x *CreateSignedCertificateRequest) GetCountry() string
- func (x *CreateSignedCertificateRequest) GetIsCA() bool
- func (x *CreateSignedCertificateRequest) GetLocality() string
- func (x *CreateSignedCertificateRequest) GetOrganization() string
- func (x *CreateSignedCertificateRequest) GetOrganizationalUnit() string
- func (x *CreateSignedCertificateRequest) GetParentID() string
- func (x *CreateSignedCertificateRequest) GetProvince() string
- func (*CreateSignedCertificateRequest) ProtoMessage()
- func (x *CreateSignedCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSignedCertificateRequest) Reset()
- func (x *CreateSignedCertificateRequest) String() string
- type CreateTokenReply
- type CreateTokenRequest
- func (*CreateTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenRequest) GetApplication() string
- func (x *CreateTokenRequest) GetPassword() string
- func (x *CreateTokenRequest) GetUser() string
- func (*CreateTokenRequest) ProtoMessage()
- func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTokenRequest) Reset()
- func (x *CreateTokenRequest) String() string
- type EdgeAuthClient
- type EdgeAuthServer
- type EdgeHSMClient
- type EdgeHSMServer
- type UnimplementedEdgeAuthServer
- type UnimplementedEdgeHSMServer
- type UnsafeEdgeAuthServer
- type UnsafeEdgeHSMServer
- type ValidateTokenReply
- func (*ValidateTokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateTokenReply) GetOk() bool
- func (x *ValidateTokenReply) GetPolicy() string
- func (*ValidateTokenReply) ProtoMessage()
- func (x *ValidateTokenReply) ProtoReflect() protoreflect.Message
- func (x *ValidateTokenReply) Reset()
- func (x *ValidateTokenReply) String() string
- type ValidateTokenRequest
- func (*ValidateTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateTokenRequest) GetToken() string
- func (*ValidateTokenRequest) ProtoMessage()
- func (x *ValidateTokenRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateTokenRequest) Reset()
- func (x *ValidateTokenRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var EdgeAuth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "edgeauth.EdgeAuth", HandlerType: (*EdgeAuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateToken", Handler: _EdgeAuth_CreateToken_Handler, }, { MethodName: "ValidateToken", Handler: _EdgeAuth_ValidateToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "edgeauth.proto", }
EdgeAuth_ServiceDesc is the grpc.ServiceDesc for EdgeAuth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var EdgeHSM_ServiceDesc = grpc.ServiceDesc{ ServiceName: "edgehsm.EdgeHSM", HandlerType: (*EdgeHSMServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateSignedCertificate", Handler: _EdgeHSM_CreateSignedCertificate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "edgehsm.proto", }
EdgeHSM_ServiceDesc is the grpc.ServiceDesc for EdgeHSM service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_edgeauth_proto protoreflect.FileDescriptor
var File_edgehsm_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEdgeAuthServer ¶
func RegisterEdgeAuthServer(s grpc.ServiceRegistrar, srv EdgeAuthServer)
func RegisterEdgeHSMServer ¶
func RegisterEdgeHSMServer(s grpc.ServiceRegistrar, srv EdgeHSMServer)
Types ¶
type CreateSignedCertificateReply ¶
type CreateSignedCertificateReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // contains filtered or unexported fields }
func (*CreateSignedCertificateReply) Descriptor
deprecated
func (*CreateSignedCertificateReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateSignedCertificateReply.ProtoReflect.Descriptor instead.
func (*CreateSignedCertificateReply) GetCertificate ¶
func (x *CreateSignedCertificateReply) GetCertificate() string
func (*CreateSignedCertificateReply) GetId ¶
func (x *CreateSignedCertificateReply) GetId() string
func (*CreateSignedCertificateReply) ProtoMessage ¶
func (*CreateSignedCertificateReply) ProtoMessage()
func (*CreateSignedCertificateReply) ProtoReflect ¶
func (x *CreateSignedCertificateReply) ProtoReflect() protoreflect.Message
func (*CreateSignedCertificateReply) Reset ¶
func (x *CreateSignedCertificateReply) Reset()
func (*CreateSignedCertificateReply) String ¶
func (x *CreateSignedCertificateReply) String() string
type CreateSignedCertificateRequest ¶
type CreateSignedCertificateRequest struct { Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` Organization string `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"` OrganizationalUnit string `protobuf:"bytes,3,opt,name=organizationalUnit,proto3" json:"organizationalUnit,omitempty"` Locality string `protobuf:"bytes,4,opt,name=locality,proto3" json:"locality,omitempty"` Province string `protobuf:"bytes,5,opt,name=province,proto3" json:"province,omitempty"` Commonname string `protobuf:"bytes,6,opt,name=commonname,proto3" json:"commonname,omitempty"` IsCA bool `protobuf:"varint,7,opt,name=isCA,proto3" json:"isCA,omitempty"` ParentID string `protobuf:"bytes,10,opt,name=parentID,proto3" json:"parentID,omitempty"` // contains filtered or unexported fields }
func (*CreateSignedCertificateRequest) Descriptor
deprecated
func (*CreateSignedCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSignedCertificateRequest.ProtoReflect.Descriptor instead.
func (*CreateSignedCertificateRequest) GetCommonname ¶
func (x *CreateSignedCertificateRequest) GetCommonname() string
func (*CreateSignedCertificateRequest) GetCountry ¶
func (x *CreateSignedCertificateRequest) GetCountry() string
func (*CreateSignedCertificateRequest) GetIsCA ¶
func (x *CreateSignedCertificateRequest) GetIsCA() bool
func (*CreateSignedCertificateRequest) GetLocality ¶
func (x *CreateSignedCertificateRequest) GetLocality() string
func (*CreateSignedCertificateRequest) GetOrganization ¶
func (x *CreateSignedCertificateRequest) GetOrganization() string
func (*CreateSignedCertificateRequest) GetOrganizationalUnit ¶
func (x *CreateSignedCertificateRequest) GetOrganizationalUnit() string
func (*CreateSignedCertificateRequest) GetParentID ¶
func (x *CreateSignedCertificateRequest) GetParentID() string
func (*CreateSignedCertificateRequest) GetProvince ¶
func (x *CreateSignedCertificateRequest) GetProvince() string
func (*CreateSignedCertificateRequest) ProtoMessage ¶
func (*CreateSignedCertificateRequest) ProtoMessage()
func (*CreateSignedCertificateRequest) ProtoReflect ¶
func (x *CreateSignedCertificateRequest) ProtoReflect() protoreflect.Message
func (*CreateSignedCertificateRequest) Reset ¶
func (x *CreateSignedCertificateRequest) Reset()
func (*CreateSignedCertificateRequest) String ¶
func (x *CreateSignedCertificateRequest) String() string
type CreateTokenReply ¶
type CreateTokenReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CreateTokenReply) Descriptor
deprecated
func (*CreateTokenReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenReply.ProtoReflect.Descriptor instead.
func (*CreateTokenReply) GetToken ¶
func (x *CreateTokenReply) GetToken() string
func (*CreateTokenReply) ProtoMessage ¶
func (*CreateTokenReply) ProtoMessage()
func (*CreateTokenReply) ProtoReflect ¶
func (x *CreateTokenReply) ProtoReflect() protoreflect.Message
func (*CreateTokenReply) Reset ¶
func (x *CreateTokenReply) Reset()
func (*CreateTokenReply) String ¶
func (x *CreateTokenReply) String() string
type CreateTokenRequest ¶
type CreateTokenRequest struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Application string `protobuf:"bytes,3,opt,name=application,proto3" json:"application,omitempty"` // contains filtered or unexported fields }
func (*CreateTokenRequest) Descriptor
deprecated
func (*CreateTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateTokenRequest) GetApplication ¶
func (x *CreateTokenRequest) GetApplication() string
func (*CreateTokenRequest) GetPassword ¶
func (x *CreateTokenRequest) GetPassword() string
func (*CreateTokenRequest) GetUser ¶
func (x *CreateTokenRequest) GetUser() string
func (*CreateTokenRequest) ProtoMessage ¶
func (*CreateTokenRequest) ProtoMessage()
func (*CreateTokenRequest) ProtoReflect ¶
func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
func (*CreateTokenRequest) Reset ¶
func (x *CreateTokenRequest) Reset()
func (*CreateTokenRequest) String ¶
func (x *CreateTokenRequest) String() string
type EdgeAuthClient ¶
type EdgeAuthClient interface { CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenReply, error) ValidateToken(ctx context.Context, in *ValidateTokenRequest, opts ...grpc.CallOption) (*ValidateTokenReply, error) }
EdgeAuthClient is the client API for EdgeAuth 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 NewEdgeAuthClient ¶
func NewEdgeAuthClient(cc grpc.ClientConnInterface) EdgeAuthClient
type EdgeAuthServer ¶
type EdgeAuthServer interface { CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenReply, error) ValidateToken(context.Context, *ValidateTokenRequest) (*ValidateTokenReply, error) // contains filtered or unexported methods }
EdgeAuthServer is the server API for EdgeAuth service. All implementations must embed UnimplementedEdgeAuthServer for forward compatibility
type EdgeHSMClient ¶
type EdgeHSMClient interface {
CreateSignedCertificate(ctx context.Context, in *CreateSignedCertificateRequest, opts ...grpc.CallOption) (*CreateSignedCertificateReply, error)
}
EdgeHSMClient is the client API for EdgeHSM 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 NewEdgeHSMClient ¶
func NewEdgeHSMClient(cc grpc.ClientConnInterface) EdgeHSMClient
type EdgeHSMServer ¶
type EdgeHSMServer interface { CreateSignedCertificate(context.Context, *CreateSignedCertificateRequest) (*CreateSignedCertificateReply, error) // contains filtered or unexported methods }
EdgeHSMServer is the server API for EdgeHSM service. All implementations must embed UnimplementedEdgeHSMServer for forward compatibility
type UnimplementedEdgeAuthServer ¶
type UnimplementedEdgeAuthServer struct { }
UnimplementedEdgeAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedEdgeAuthServer) CreateToken ¶
func (UnimplementedEdgeAuthServer) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenReply, error)
func (UnimplementedEdgeAuthServer) ValidateToken ¶
func (UnimplementedEdgeAuthServer) ValidateToken(context.Context, *ValidateTokenRequest) (*ValidateTokenReply, error)
type UnimplementedEdgeHSMServer ¶
type UnimplementedEdgeHSMServer struct { }
UnimplementedEdgeHSMServer must be embedded to have forward compatible implementations.
func (UnimplementedEdgeHSMServer) CreateSignedCertificate ¶
func (UnimplementedEdgeHSMServer) CreateSignedCertificate(context.Context, *CreateSignedCertificateRequest) (*CreateSignedCertificateReply, error)
type UnsafeEdgeAuthServer ¶
type UnsafeEdgeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeEdgeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EdgeAuthServer will result in compilation errors.
type UnsafeEdgeHSMServer ¶
type UnsafeEdgeHSMServer interface {
// contains filtered or unexported methods
}
UnsafeEdgeHSMServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EdgeHSMServer will result in compilation errors.
type ValidateTokenReply ¶
type ValidateTokenReply struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Policy string `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"` // contains filtered or unexported fields }
func (*ValidateTokenReply) Descriptor
deprecated
func (*ValidateTokenReply) Descriptor() ([]byte, []int)
Deprecated: Use ValidateTokenReply.ProtoReflect.Descriptor instead.
func (*ValidateTokenReply) GetOk ¶
func (x *ValidateTokenReply) GetOk() bool
func (*ValidateTokenReply) GetPolicy ¶
func (x *ValidateTokenReply) GetPolicy() string
func (*ValidateTokenReply) ProtoMessage ¶
func (*ValidateTokenReply) ProtoMessage()
func (*ValidateTokenReply) ProtoReflect ¶
func (x *ValidateTokenReply) ProtoReflect() protoreflect.Message
func (*ValidateTokenReply) Reset ¶
func (x *ValidateTokenReply) Reset()
func (*ValidateTokenReply) String ¶
func (x *ValidateTokenReply) String() string
type ValidateTokenRequest ¶
type ValidateTokenRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ValidateTokenRequest) Descriptor
deprecated
func (*ValidateTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateTokenRequest.ProtoReflect.Descriptor instead.
func (*ValidateTokenRequest) GetToken ¶
func (x *ValidateTokenRequest) GetToken() string
func (*ValidateTokenRequest) ProtoMessage ¶
func (*ValidateTokenRequest) ProtoMessage()
func (*ValidateTokenRequest) ProtoReflect ¶
func (x *ValidateTokenRequest) ProtoReflect() protoreflect.Message
func (*ValidateTokenRequest) Reset ¶
func (x *ValidateTokenRequest) Reset()
func (*ValidateTokenRequest) String ¶
func (x *ValidateTokenRequest) String() string