Documentation
¶
Index ¶
- Constants
- Variables
- func CertificateIssuerServicePluginServer(server CertificateIssuerServiceServer) api.PluginServer
- func RegisterCertificateIssuerServiceServer(s grpc.ServiceRegistrar, srv CertificateIssuerServiceServer)
- type CertificateIssuerServiceClient
- type CertificateIssuerServicePluginClient
- type CertificateIssuerServiceServer
- type GetCertificateRequest
- func (*GetCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertificateRequest) GetCommonName() string
- func (x *GetCertificateRequest) GetLocality() []string
- func (x *GetCertificateRequest) GetPrivateKey() *PrivateKey
- func (x *GetCertificateRequest) GetValidity() *GetCertificateValidity
- func (*GetCertificateRequest) ProtoMessage()
- func (x *GetCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *GetCertificateRequest) Reset()
- func (x *GetCertificateRequest) String() string
- type GetCertificateResponse
- func (*GetCertificateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertificateResponse) GetCertificateChain() string
- func (*GetCertificateResponse) ProtoMessage()
- func (x *GetCertificateResponse) ProtoReflect() protoreflect.Message
- func (x *GetCertificateResponse) Reset()
- func (x *GetCertificateResponse) String() string
- type GetCertificateValidity
- func (*GetCertificateValidity) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertificateValidity) GetType() ValidityType
- func (x *GetCertificateValidity) GetValue() int64
- func (*GetCertificateValidity) ProtoMessage()
- func (x *GetCertificateValidity) ProtoReflect() protoreflect.Message
- func (x *GetCertificateValidity) Reset()
- func (x *GetCertificateValidity) String() string
- type PrivateKey
- type UnimplementedCertificateIssuerServiceServer
- type UnsafeCertificateIssuerServiceServer
- type ValidityType
- func (ValidityType) Descriptor() protoreflect.EnumDescriptor
- func (x ValidityType) Enum() *ValidityType
- func (ValidityType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ValidityType) Number() protoreflect.EnumNumber
- func (x ValidityType) String() string
- func (ValidityType) Type() protoreflect.EnumType
Constants ¶
const ( Type = "CertificateIssuerService" GRPCServiceFullName = "plugin.certificate_issuer.v1.CertificateIssuerService" )
const (
CertificateIssuerService_GetCertificate_FullMethodName = "/plugin.certificate_issuer.v1.CertificateIssuerService/GetCertificate"
)
Variables ¶
var ( ValidityType_name = map[int32]string{ 0: "VALIDITY_TYPE_UNSPECIFIED", 1: "VALIDITY_TYPE_DAYS", 2: "VALIDITY_TYPE_MONTHS", 3: "VALIDITY_TYPE_YEARS", } ValidityType_value = map[string]int32{ "VALIDITY_TYPE_UNSPECIFIED": 0, "VALIDITY_TYPE_DAYS": 1, "VALIDITY_TYPE_MONTHS": 2, "VALIDITY_TYPE_YEARS": 3, } )
Enum value maps for ValidityType.
var CertificateIssuerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "plugin.certificate_issuer.v1.CertificateIssuerService", HandlerType: (*CertificateIssuerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCertificate", Handler: _CertificateIssuerService_GetCertificate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/certificate_issuer/v1/certificate_issuer.proto", }
CertificateIssuerService_ServiceDesc is the grpc.ServiceDesc for CertificateIssuerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_plugin_certificate_issuer_v1_certificate_issuer_proto protoreflect.FileDescriptor
Functions ¶
func CertificateIssuerServicePluginServer ¶
func CertificateIssuerServicePluginServer(server CertificateIssuerServiceServer) api.PluginServer
func RegisterCertificateIssuerServiceServer ¶
func RegisterCertificateIssuerServiceServer(s grpc.ServiceRegistrar, srv CertificateIssuerServiceServer)
Types ¶
type CertificateIssuerServiceClient ¶
type CertificateIssuerServiceClient interface {
GetCertificate(ctx context.Context, in *GetCertificateRequest, opts ...grpc.CallOption) (*GetCertificateResponse, error)
}
CertificateIssuerServiceClient is the client API for CertificateIssuerService 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 NewCertificateIssuerServiceClient ¶
func NewCertificateIssuerServiceClient(cc grpc.ClientConnInterface) CertificateIssuerServiceClient
type CertificateIssuerServicePluginClient ¶
type CertificateIssuerServicePluginClient struct {
CertificateIssuerServiceClient
}
func (*CertificateIssuerServicePluginClient) GRPCServiceName ¶
func (c *CertificateIssuerServicePluginClient) GRPCServiceName() string
func (*CertificateIssuerServicePluginClient) InitClient ¶
func (c *CertificateIssuerServicePluginClient) InitClient(conn grpc.ClientConnInterface) any
func (*CertificateIssuerServicePluginClient) IsInitialized ¶
func (c *CertificateIssuerServicePluginClient) IsInitialized() bool
func (CertificateIssuerServicePluginClient) Type ¶
func (s CertificateIssuerServicePluginClient) Type() string
type CertificateIssuerServiceServer ¶
type CertificateIssuerServiceServer interface {
GetCertificate(context.Context, *GetCertificateRequest) (*GetCertificateResponse, error)
// contains filtered or unexported methods
}
CertificateIssuerServiceServer is the server API for CertificateIssuerService service. All implementations must embed UnimplementedCertificateIssuerServiceServer for forward compatibility.
type GetCertificateRequest ¶
type GetCertificateRequest struct {
CommonName string `protobuf:"bytes,1,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"`
Locality []string `protobuf:"bytes,2,rep,name=locality,proto3" json:"locality,omitempty"`
Validity *GetCertificateValidity `protobuf:"bytes,3,opt,name=validity,proto3" json:"validity,omitempty"`
PrivateKey *PrivateKey `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
// contains filtered or unexported fields
}
func (*GetCertificateRequest) Descriptor
deprecated
func (*GetCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCertificateRequest.ProtoReflect.Descriptor instead.
func (*GetCertificateRequest) GetCommonName ¶
func (x *GetCertificateRequest) GetCommonName() string
func (*GetCertificateRequest) GetLocality ¶
func (x *GetCertificateRequest) GetLocality() []string
func (*GetCertificateRequest) GetPrivateKey ¶
func (x *GetCertificateRequest) GetPrivateKey() *PrivateKey
func (*GetCertificateRequest) GetValidity ¶
func (x *GetCertificateRequest) GetValidity() *GetCertificateValidity
func (*GetCertificateRequest) ProtoMessage ¶
func (*GetCertificateRequest) ProtoMessage()
func (*GetCertificateRequest) ProtoReflect ¶
func (x *GetCertificateRequest) ProtoReflect() protoreflect.Message
func (*GetCertificateRequest) Reset ¶
func (x *GetCertificateRequest) Reset()
func (*GetCertificateRequest) String ¶
func (x *GetCertificateRequest) String() string
type GetCertificateResponse ¶
type GetCertificateResponse struct {
CertificateChain string `protobuf:"bytes,1,opt,name=certificate_chain,json=certificateChain,proto3" json:"certificate_chain,omitempty"`
// contains filtered or unexported fields
}
func (*GetCertificateResponse) Descriptor
deprecated
func (*GetCertificateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCertificateResponse.ProtoReflect.Descriptor instead.
func (*GetCertificateResponse) GetCertificateChain ¶
func (x *GetCertificateResponse) GetCertificateChain() string
func (*GetCertificateResponse) ProtoMessage ¶
func (*GetCertificateResponse) ProtoMessage()
func (*GetCertificateResponse) ProtoReflect ¶
func (x *GetCertificateResponse) ProtoReflect() protoreflect.Message
func (*GetCertificateResponse) Reset ¶
func (x *GetCertificateResponse) Reset()
func (*GetCertificateResponse) String ¶
func (x *GetCertificateResponse) String() string
type GetCertificateValidity ¶
type GetCertificateValidity struct {
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
Type ValidityType `protobuf:"varint,2,opt,name=type,proto3,enum=plugin.certificate_issuer.v1.ValidityType" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*GetCertificateValidity) Descriptor
deprecated
func (*GetCertificateValidity) Descriptor() ([]byte, []int)
Deprecated: Use GetCertificateValidity.ProtoReflect.Descriptor instead.
func (*GetCertificateValidity) GetType ¶
func (x *GetCertificateValidity) GetType() ValidityType
func (*GetCertificateValidity) GetValue ¶
func (x *GetCertificateValidity) GetValue() int64
func (*GetCertificateValidity) ProtoMessage ¶
func (*GetCertificateValidity) ProtoMessage()
func (*GetCertificateValidity) ProtoReflect ¶
func (x *GetCertificateValidity) ProtoReflect() protoreflect.Message
func (*GetCertificateValidity) Reset ¶
func (x *GetCertificateValidity) Reset()
func (*GetCertificateValidity) String ¶
func (x *GetCertificateValidity) String() string
type PrivateKey ¶
type PrivateKey struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*PrivateKey) Descriptor
deprecated
func (*PrivateKey) Descriptor() ([]byte, []int)
Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.
func (*PrivateKey) GetData ¶
func (x *PrivateKey) GetData() []byte
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) ProtoReflect ¶
func (x *PrivateKey) ProtoReflect() protoreflect.Message
func (*PrivateKey) Reset ¶
func (x *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (x *PrivateKey) String() string
type UnimplementedCertificateIssuerServiceServer ¶
type UnimplementedCertificateIssuerServiceServer struct{}
UnimplementedCertificateIssuerServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCertificateIssuerServiceServer) GetCertificate ¶
func (UnimplementedCertificateIssuerServiceServer) GetCertificate(context.Context, *GetCertificateRequest) (*GetCertificateResponse, error)
type UnsafeCertificateIssuerServiceServer ¶
type UnsafeCertificateIssuerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCertificateIssuerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CertificateIssuerServiceServer will result in compilation errors.
type ValidityType ¶
type ValidityType int32
const ( ValidityType_VALIDITY_TYPE_UNSPECIFIED ValidityType = 0 ValidityType_VALIDITY_TYPE_DAYS ValidityType = 1 ValidityType_VALIDITY_TYPE_MONTHS ValidityType = 2 ValidityType_VALIDITY_TYPE_YEARS ValidityType = 3 )
func (ValidityType) Descriptor ¶
func (ValidityType) Descriptor() protoreflect.EnumDescriptor
func (ValidityType) Enum ¶
func (x ValidityType) Enum() *ValidityType
func (ValidityType) EnumDescriptor
deprecated
func (ValidityType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValidityType.Descriptor instead.
func (ValidityType) Number ¶
func (x ValidityType) Number() protoreflect.EnumNumber
func (ValidityType) String ¶
func (x ValidityType) String() string
func (ValidityType) Type ¶
func (ValidityType) Type() protoreflect.EnumType