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
- func (m *GetCertificateRequest) Validate() error
- func (m *GetCertificateRequest) ValidateAll() error
- type GetCertificateRequestMultiError
- type GetCertificateRequestValidationError
- func (e GetCertificateRequestValidationError) Cause() error
- func (e GetCertificateRequestValidationError) Error() string
- func (e GetCertificateRequestValidationError) ErrorName() string
- func (e GetCertificateRequestValidationError) Field() string
- func (e GetCertificateRequestValidationError) Key() bool
- func (e GetCertificateRequestValidationError) Reason() 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
- func (m *GetCertificateResponse) Validate() error
- func (m *GetCertificateResponse) ValidateAll() error
- type GetCertificateResponseMultiError
- type GetCertificateResponseValidationError
- func (e GetCertificateResponseValidationError) Cause() error
- func (e GetCertificateResponseValidationError) Error() string
- func (e GetCertificateResponseValidationError) ErrorName() string
- func (e GetCertificateResponseValidationError) Field() string
- func (e GetCertificateResponseValidationError) Key() bool
- func (e GetCertificateResponseValidationError) Reason() 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
- func (m *GetCertificateValidity) Validate() error
- func (m *GetCertificateValidity) ValidateAll() error
- type GetCertificateValidityMultiError
- type GetCertificateValidityValidationError
- func (e GetCertificateValidityValidationError) Cause() error
- func (e GetCertificateValidityValidationError) Error() string
- func (e GetCertificateValidityValidationError) ErrorName() string
- func (e GetCertificateValidityValidationError) Field() string
- func (e GetCertificateValidityValidationError) Key() bool
- func (e GetCertificateValidityValidationError) Reason() string
- type PrivateKey
- func (*PrivateKey) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateKey) GetData() []byte
- func (*PrivateKey) ProtoMessage()
- func (x *PrivateKey) ProtoReflect() protoreflect.Message
- func (x *PrivateKey) Reset()
- func (x *PrivateKey) String() string
- func (m *PrivateKey) Validate() error
- func (m *PrivateKey) ValidateAll() error
- type PrivateKeyMultiError
- type PrivateKeyValidationError
- 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
func (*GetCertificateRequest) Validate ¶
func (m *GetCertificateRequest) Validate() error
Validate checks the field values on GetCertificateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCertificateRequest) ValidateAll ¶
func (m *GetCertificateRequest) ValidateAll() error
ValidateAll checks the field values on GetCertificateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCertificateRequestMultiError, or nil if none found.
type GetCertificateRequestMultiError ¶
type GetCertificateRequestMultiError []error
GetCertificateRequestMultiError is an error wrapping multiple validation errors returned by GetCertificateRequest.ValidateAll() if the designated constraints aren't met.
func (GetCertificateRequestMultiError) AllErrors ¶
func (m GetCertificateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCertificateRequestMultiError) Error ¶
func (m GetCertificateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCertificateRequestValidationError ¶
type GetCertificateRequestValidationError struct {
// contains filtered or unexported fields
}
GetCertificateRequestValidationError is the validation error returned by GetCertificateRequest.Validate if the designated constraints aren't met.
func (GetCertificateRequestValidationError) Cause ¶
func (e GetCertificateRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCertificateRequestValidationError) Error ¶
func (e GetCertificateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCertificateRequestValidationError) ErrorName ¶
func (e GetCertificateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCertificateRequestValidationError) Field ¶
func (e GetCertificateRequestValidationError) Field() string
Field function returns field value.
func (GetCertificateRequestValidationError) Key ¶
func (e GetCertificateRequestValidationError) Key() bool
Key function returns key value.
func (GetCertificateRequestValidationError) Reason ¶
func (e GetCertificateRequestValidationError) Reason() string
Reason function returns reason value.
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
func (*GetCertificateResponse) Validate ¶
func (m *GetCertificateResponse) Validate() error
Validate checks the field values on GetCertificateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCertificateResponse) ValidateAll ¶
func (m *GetCertificateResponse) ValidateAll() error
ValidateAll checks the field values on GetCertificateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCertificateResponseMultiError, or nil if none found.
type GetCertificateResponseMultiError ¶
type GetCertificateResponseMultiError []error
GetCertificateResponseMultiError is an error wrapping multiple validation errors returned by GetCertificateResponse.ValidateAll() if the designated constraints aren't met.
func (GetCertificateResponseMultiError) AllErrors ¶
func (m GetCertificateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCertificateResponseMultiError) Error ¶
func (m GetCertificateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCertificateResponseValidationError ¶
type GetCertificateResponseValidationError struct {
// contains filtered or unexported fields
}
GetCertificateResponseValidationError is the validation error returned by GetCertificateResponse.Validate if the designated constraints aren't met.
func (GetCertificateResponseValidationError) Cause ¶
func (e GetCertificateResponseValidationError) Cause() error
Cause function returns cause value.
func (GetCertificateResponseValidationError) Error ¶
func (e GetCertificateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetCertificateResponseValidationError) ErrorName ¶
func (e GetCertificateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetCertificateResponseValidationError) Field ¶
func (e GetCertificateResponseValidationError) Field() string
Field function returns field value.
func (GetCertificateResponseValidationError) Key ¶
func (e GetCertificateResponseValidationError) Key() bool
Key function returns key value.
func (GetCertificateResponseValidationError) Reason ¶
func (e GetCertificateResponseValidationError) Reason() string
Reason function returns reason value.
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
func (*GetCertificateValidity) Validate ¶
func (m *GetCertificateValidity) Validate() error
Validate checks the field values on GetCertificateValidity with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCertificateValidity) ValidateAll ¶
func (m *GetCertificateValidity) ValidateAll() error
ValidateAll checks the field values on GetCertificateValidity with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCertificateValidityMultiError, or nil if none found.
type GetCertificateValidityMultiError ¶
type GetCertificateValidityMultiError []error
GetCertificateValidityMultiError is an error wrapping multiple validation errors returned by GetCertificateValidity.ValidateAll() if the designated constraints aren't met.
func (GetCertificateValidityMultiError) AllErrors ¶
func (m GetCertificateValidityMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCertificateValidityMultiError) Error ¶
func (m GetCertificateValidityMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCertificateValidityValidationError ¶
type GetCertificateValidityValidationError struct {
// contains filtered or unexported fields
}
GetCertificateValidityValidationError is the validation error returned by GetCertificateValidity.Validate if the designated constraints aren't met.
func (GetCertificateValidityValidationError) Cause ¶
func (e GetCertificateValidityValidationError) Cause() error
Cause function returns cause value.
func (GetCertificateValidityValidationError) Error ¶
func (e GetCertificateValidityValidationError) Error() string
Error satisfies the builtin error interface
func (GetCertificateValidityValidationError) ErrorName ¶
func (e GetCertificateValidityValidationError) ErrorName() string
ErrorName returns error name.
func (GetCertificateValidityValidationError) Field ¶
func (e GetCertificateValidityValidationError) Field() string
Field function returns field value.
func (GetCertificateValidityValidationError) Key ¶
func (e GetCertificateValidityValidationError) Key() bool
Key function returns key value.
func (GetCertificateValidityValidationError) Reason ¶
func (e GetCertificateValidityValidationError) Reason() string
Reason function returns reason value.
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
func (*PrivateKey) Validate ¶
func (m *PrivateKey) Validate() error
Validate checks the field values on PrivateKey with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrivateKey) ValidateAll ¶
func (m *PrivateKey) ValidateAll() error
ValidateAll checks the field values on PrivateKey with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrivateKeyMultiError, or nil if none found.
type PrivateKeyMultiError ¶
type PrivateKeyMultiError []error
PrivateKeyMultiError is an error wrapping multiple validation errors returned by PrivateKey.ValidateAll() if the designated constraints aren't met.
func (PrivateKeyMultiError) AllErrors ¶
func (m PrivateKeyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrivateKeyMultiError) Error ¶
func (m PrivateKeyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrivateKeyValidationError ¶
type PrivateKeyValidationError struct {
// contains filtered or unexported fields
}
PrivateKeyValidationError is the validation error returned by PrivateKey.Validate if the designated constraints aren't met.
func (PrivateKeyValidationError) Cause ¶
func (e PrivateKeyValidationError) Cause() error
Cause function returns cause value.
func (PrivateKeyValidationError) Error ¶
func (e PrivateKeyValidationError) Error() string
Error satisfies the builtin error interface
func (PrivateKeyValidationError) ErrorName ¶
func (e PrivateKeyValidationError) ErrorName() string
ErrorName returns error name.
func (PrivateKeyValidationError) Field ¶
func (e PrivateKeyValidationError) Field() string
Field function returns field value.
func (PrivateKeyValidationError) Key ¶
func (e PrivateKeyValidationError) Key() bool
Key function returns key value.
func (PrivateKeyValidationError) Reason ¶
func (e PrivateKeyValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCertificateIssuerServiceServer ¶
type UnimplementedCertificateIssuerServiceServer struct {
}
UnimplementedCertificateIssuerServiceServer must be embedded to have forward compatible implementations.
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