Documentation ¶
Index ¶
- Variables
- func RegisterCertificateAuthorityServer(s grpc.ServiceRegistrar, srv CertificateAuthorityServer)
- type CASignRequest
- type CASignResponse
- type CertificateAuthorityClient
- type CertificateAuthorityServer
- type GetCACertificateRequest
- type GetCACertificateResponse
- func (*GetCACertificateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCACertificateResponse) GetCert() []byte
- func (*GetCACertificateResponse) ProtoMessage()
- func (x *GetCACertificateResponse) ProtoReflect() protoreflect.Message
- func (x *GetCACertificateResponse) Reset()
- func (x *GetCACertificateResponse) String() string
- type GetSignedCertificateRequest
- func (*GetSignedCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSignedCertificateRequest) GetCsr() []byte
- func (x *GetSignedCertificateRequest) GetDecrypted() string
- func (*GetSignedCertificateRequest) ProtoMessage()
- func (x *GetSignedCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *GetSignedCertificateRequest) Reset()
- func (x *GetSignedCertificateRequest) String() string
- type GetSignedCertificateResponse
- func (*GetSignedCertificateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSignedCertificateResponse) GetCert() []byte
- func (x *GetSignedCertificateResponse) GetIsSigned() bool
- func (*GetSignedCertificateResponse) ProtoMessage()
- func (x *GetSignedCertificateResponse) ProtoReflect() protoreflect.Message
- func (x *GetSignedCertificateResponse) Reset()
- func (x *GetSignedCertificateResponse) String() string
- type UnimplementedCertificateAuthorityServer
- func (UnimplementedCertificateAuthorityServer) GetCACertificate(context.Context, *GetCACertificateRequest) (*GetCACertificateResponse, error)
- func (UnimplementedCertificateAuthorityServer) GetSignedCertificate(context.Context, *GetSignedCertificateRequest) (*GetSignedCertificateResponse, error)
- func (UnimplementedCertificateAuthorityServer) RequestCASignCSR(context.Context, *CASignRequest) (*CASignResponse, error)
- type UnsafeCertificateAuthorityServer
Constants ¶
This section is empty.
Variables ¶
var CertificateAuthority_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cert_auth.CertificateAuthority", HandlerType: (*CertificateAuthorityServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCACertificate", Handler: _CertificateAuthority_GetCACertificate_Handler, }, { MethodName: "RequestCASignCSR", Handler: _CertificateAuthority_RequestCASignCSR_Handler, }, { MethodName: "GetSignedCertificate", Handler: _CertificateAuthority_GetSignedCertificate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "certificate-authority.proto", }
CertificateAuthority_ServiceDesc is the grpc.ServiceDesc for CertificateAuthority service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCertificateAuthorityServer ¶
func RegisterCertificateAuthorityServer(s grpc.ServiceRegistrar, srv CertificateAuthorityServer)
Types ¶
type CASignRequest ¶
type CASignRequest struct { Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` // contains filtered or unexported fields }
func (*CASignRequest) Descriptor
deprecated
func (*CASignRequest) Descriptor() ([]byte, []int)
Deprecated: Use CASignRequest.ProtoReflect.Descriptor instead.
func (*CASignRequest) GetCsr ¶
func (x *CASignRequest) GetCsr() []byte
func (*CASignRequest) ProtoMessage ¶
func (*CASignRequest) ProtoMessage()
func (*CASignRequest) ProtoReflect ¶
func (x *CASignRequest) ProtoReflect() protoreflect.Message
func (*CASignRequest) Reset ¶
func (x *CASignRequest) Reset()
func (*CASignRequest) String ¶
func (x *CASignRequest) String() string
type CASignResponse ¶
type CASignResponse struct { Encrypted string `protobuf:"bytes,1,opt,name=encrypted,proto3" json:"encrypted,omitempty"` // contains filtered or unexported fields }
func (*CASignResponse) Descriptor
deprecated
func (*CASignResponse) Descriptor() ([]byte, []int)
Deprecated: Use CASignResponse.ProtoReflect.Descriptor instead.
func (*CASignResponse) GetEncrypted ¶
func (x *CASignResponse) GetEncrypted() string
func (*CASignResponse) ProtoMessage ¶
func (*CASignResponse) ProtoMessage()
func (*CASignResponse) ProtoReflect ¶
func (x *CASignResponse) ProtoReflect() protoreflect.Message
func (*CASignResponse) Reset ¶
func (x *CASignResponse) Reset()
func (*CASignResponse) String ¶
func (x *CASignResponse) String() string
type CertificateAuthorityClient ¶
type CertificateAuthorityClient interface { GetCACertificate(ctx context.Context, in *GetCACertificateRequest, opts ...grpc.CallOption) (*GetCACertificateResponse, error) RequestCASignCSR(ctx context.Context, in *CASignRequest, opts ...grpc.CallOption) (*CASignResponse, error) GetSignedCertificate(ctx context.Context, in *GetSignedCertificateRequest, opts ...grpc.CallOption) (*GetSignedCertificateResponse, error) }
CertificateAuthorityClient is the client API for CertificateAuthority 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 NewCertificateAuthorityClient ¶
func NewCertificateAuthorityClient(cc grpc.ClientConnInterface) CertificateAuthorityClient
type CertificateAuthorityServer ¶
type CertificateAuthorityServer interface { GetCACertificate(context.Context, *GetCACertificateRequest) (*GetCACertificateResponse, error) RequestCASignCSR(context.Context, *CASignRequest) (*CASignResponse, error) GetSignedCertificate(context.Context, *GetSignedCertificateRequest) (*GetSignedCertificateResponse, error) // contains filtered or unexported methods }
CertificateAuthorityServer is the server API for CertificateAuthority service. All implementations must embed UnimplementedCertificateAuthorityServer for forward compatibility
type GetCACertificateRequest ¶
type GetCACertificateRequest struct {
// contains filtered or unexported fields
}
func (*GetCACertificateRequest) Descriptor
deprecated
func (*GetCACertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCACertificateRequest.ProtoReflect.Descriptor instead.
func (*GetCACertificateRequest) ProtoMessage ¶
func (*GetCACertificateRequest) ProtoMessage()
func (*GetCACertificateRequest) ProtoReflect ¶
func (x *GetCACertificateRequest) ProtoReflect() protoreflect.Message
func (*GetCACertificateRequest) Reset ¶
func (x *GetCACertificateRequest) Reset()
func (*GetCACertificateRequest) String ¶
func (x *GetCACertificateRequest) String() string
type GetCACertificateResponse ¶
type GetCACertificateResponse struct { Cert []byte `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"` // contains filtered or unexported fields }
func (*GetCACertificateResponse) Descriptor
deprecated
func (*GetCACertificateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCACertificateResponse.ProtoReflect.Descriptor instead.
func (*GetCACertificateResponse) GetCert ¶
func (x *GetCACertificateResponse) GetCert() []byte
func (*GetCACertificateResponse) ProtoMessage ¶
func (*GetCACertificateResponse) ProtoMessage()
func (*GetCACertificateResponse) ProtoReflect ¶
func (x *GetCACertificateResponse) ProtoReflect() protoreflect.Message
func (*GetCACertificateResponse) Reset ¶
func (x *GetCACertificateResponse) Reset()
func (*GetCACertificateResponse) String ¶
func (x *GetCACertificateResponse) String() string
type GetSignedCertificateRequest ¶
type GetSignedCertificateRequest struct { Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` Decrypted string `protobuf:"bytes,2,opt,name=decrypted,proto3" json:"decrypted,omitempty"` // contains filtered or unexported fields }
func (*GetSignedCertificateRequest) Descriptor
deprecated
func (*GetSignedCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSignedCertificateRequest.ProtoReflect.Descriptor instead.
func (*GetSignedCertificateRequest) GetCsr ¶
func (x *GetSignedCertificateRequest) GetCsr() []byte
func (*GetSignedCertificateRequest) GetDecrypted ¶
func (x *GetSignedCertificateRequest) GetDecrypted() string
func (*GetSignedCertificateRequest) ProtoMessage ¶
func (*GetSignedCertificateRequest) ProtoMessage()
func (*GetSignedCertificateRequest) ProtoReflect ¶
func (x *GetSignedCertificateRequest) ProtoReflect() protoreflect.Message
func (*GetSignedCertificateRequest) Reset ¶
func (x *GetSignedCertificateRequest) Reset()
func (*GetSignedCertificateRequest) String ¶
func (x *GetSignedCertificateRequest) String() string
type GetSignedCertificateResponse ¶
type GetSignedCertificateResponse struct { IsSigned bool `protobuf:"varint,1,opt,name=is_signed,json=isSigned,proto3" json:"is_signed,omitempty"` Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` // contains filtered or unexported fields }
func (*GetSignedCertificateResponse) Descriptor
deprecated
func (*GetSignedCertificateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSignedCertificateResponse.ProtoReflect.Descriptor instead.
func (*GetSignedCertificateResponse) GetCert ¶
func (x *GetSignedCertificateResponse) GetCert() []byte
func (*GetSignedCertificateResponse) GetIsSigned ¶
func (x *GetSignedCertificateResponse) GetIsSigned() bool
func (*GetSignedCertificateResponse) ProtoMessage ¶
func (*GetSignedCertificateResponse) ProtoMessage()
func (*GetSignedCertificateResponse) ProtoReflect ¶
func (x *GetSignedCertificateResponse) ProtoReflect() protoreflect.Message
func (*GetSignedCertificateResponse) Reset ¶
func (x *GetSignedCertificateResponse) Reset()
func (*GetSignedCertificateResponse) String ¶
func (x *GetSignedCertificateResponse) String() string
type UnimplementedCertificateAuthorityServer ¶
type UnimplementedCertificateAuthorityServer struct { }
UnimplementedCertificateAuthorityServer must be embedded to have forward compatible implementations.
func (UnimplementedCertificateAuthorityServer) GetCACertificate ¶
func (UnimplementedCertificateAuthorityServer) GetCACertificate(context.Context, *GetCACertificateRequest) (*GetCACertificateResponse, error)
func (UnimplementedCertificateAuthorityServer) GetSignedCertificate ¶
func (UnimplementedCertificateAuthorityServer) GetSignedCertificate(context.Context, *GetSignedCertificateRequest) (*GetSignedCertificateResponse, error)
func (UnimplementedCertificateAuthorityServer) RequestCASignCSR ¶
func (UnimplementedCertificateAuthorityServer) RequestCASignCSR(context.Context, *CASignRequest) (*CASignResponse, error)
type UnsafeCertificateAuthorityServer ¶
type UnsafeCertificateAuthorityServer interface {
// contains filtered or unexported methods
}
UnsafeCertificateAuthorityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CertificateAuthorityServer will result in compilation errors.