certificate_issuerv1

package
v0.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Type                = "CertificateIssuerService"
	GRPCServiceFullName = "plugin.certificate_issuer.v1.CertificateIssuerService"
)
View Source
const (
	CertificateIssuerService_GetCertificate_FullMethodName = "/plugin.certificate_issuer.v1.CertificateIssuerService/GetCertificate"
)

Variables

View Source
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.

View Source
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)

View Source
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.

type CertificateIssuerServicePluginClient

type CertificateIssuerServicePluginClient struct {
	CertificateIssuerServiceClient
}

func (*CertificateIssuerServicePluginClient) GRPCServiceName

func (c *CertificateIssuerServicePluginClient) GRPCServiceName() string

func (*CertificateIssuerServicePluginClient) InitClient

func (*CertificateIssuerServicePluginClient) IsInitialized

func (c *CertificateIssuerServicePluginClient) IsInitialized() bool

func (CertificateIssuerServicePluginClient) Type

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 (*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

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

Cause function returns cause value.

func (GetCertificateRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCertificateRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCertificateRequestValidationError) Field

Field function returns field value.

func (GetCertificateRequestValidationError) Key

Key function returns key value.

func (GetCertificateRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetCertificateResponseValidationError) Error

Error satisfies the builtin error interface

func (GetCertificateResponseValidationError) ErrorName

ErrorName returns error name.

func (GetCertificateResponseValidationError) Field

Field function returns field value.

func (GetCertificateResponseValidationError) Key

Key function returns key value.

func (GetCertificateResponseValidationError) Reason

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

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

Cause function returns cause value.

func (GetCertificateValidityValidationError) Error

Error satisfies the builtin error interface

func (GetCertificateValidityValidationError) ErrorName

ErrorName returns error name.

func (GetCertificateValidityValidationError) Field

Field function returns field value.

func (GetCertificateValidityValidationError) Key

Key function returns key value.

func (GetCertificateValidityValidationError) Reason

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

Error satisfies the builtin error interface

func (PrivateKeyValidationError) ErrorName

func (e PrivateKeyValidationError) ErrorName() string

ErrorName returns error name.

func (PrivateKeyValidationError) Field

Field function returns field value.

func (PrivateKeyValidationError) Key

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.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCertificateIssuerServiceServer) GetCertificate

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) Enum

func (x ValidityType) Enum() *ValidityType

func (ValidityType) EnumDescriptor deprecated

func (ValidityType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ValidityType.Descriptor instead.

func (ValidityType) Number

func (ValidityType) String

func (x ValidityType) String() string

func (ValidityType) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL