security

package
v1.5.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecurityService_Certificate_FullMethodName = "/securityapi.SecurityService/Certificate"
)

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_security_security_proto protoreflect.FileDescriptor
View Source
var SecurityService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "securityapi.SecurityService",
	HandlerType: (*SecurityServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Certificate",
			Handler:    _SecurityService_Certificate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "security/security.proto",
}

SecurityService_ServiceDesc is the grpc.ServiceDesc for SecurityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSecurityServiceServer

func RegisterSecurityServiceServer(s grpc.ServiceRegistrar, srv SecurityServiceServer)

Types

type CertificateRequest

type CertificateRequest struct {

	// Certificate Signing Request in PEM format.
	Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the certificate signing request.

func (*CertificateRequest) Descriptor deprecated

func (*CertificateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CertificateRequest.ProtoReflect.Descriptor instead.

func (*CertificateRequest) GetCsr

func (x *CertificateRequest) GetCsr() []byte

func (*CertificateRequest) MarshalToSizedBufferVT

func (m *CertificateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CertificateRequest) MarshalToVT

func (m *CertificateRequest) MarshalToVT(dAtA []byte) (int, error)

func (*CertificateRequest) MarshalVT

func (m *CertificateRequest) MarshalVT() (dAtA []byte, err error)

func (*CertificateRequest) ProtoMessage

func (*CertificateRequest) ProtoMessage()

func (*CertificateRequest) ProtoReflect

func (x *CertificateRequest) ProtoReflect() protoreflect.Message

func (*CertificateRequest) Reset

func (x *CertificateRequest) Reset()

func (*CertificateRequest) SizeVT

func (m *CertificateRequest) SizeVT() (n int)

func (*CertificateRequest) String

func (x *CertificateRequest) String() string

func (*CertificateRequest) UnmarshalVT

func (m *CertificateRequest) UnmarshalVT(dAtA []byte) error

type CertificateResponse

type CertificateResponse struct {

	// Certificate of the CA that signed the requested certificate in PEM format.
	Ca []byte `protobuf:"bytes,1,opt,name=ca,proto3" json:"ca,omitempty"`
	// Signed X.509 requested certificate in PEM format.
	Crt []byte `protobuf:"bytes,2,opt,name=crt,proto3" json:"crt,omitempty"`
	// contains filtered or unexported fields
}

The response message containing signed certificate.

func (*CertificateResponse) Descriptor deprecated

func (*CertificateResponse) Descriptor() ([]byte, []int)

Deprecated: Use CertificateResponse.ProtoReflect.Descriptor instead.

func (*CertificateResponse) GetCa

func (x *CertificateResponse) GetCa() []byte

func (*CertificateResponse) GetCrt

func (x *CertificateResponse) GetCrt() []byte

func (*CertificateResponse) MarshalToSizedBufferVT

func (m *CertificateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CertificateResponse) MarshalToVT

func (m *CertificateResponse) MarshalToVT(dAtA []byte) (int, error)

func (*CertificateResponse) MarshalVT

func (m *CertificateResponse) MarshalVT() (dAtA []byte, err error)

func (*CertificateResponse) ProtoMessage

func (*CertificateResponse) ProtoMessage()

func (*CertificateResponse) ProtoReflect

func (x *CertificateResponse) ProtoReflect() protoreflect.Message

func (*CertificateResponse) Reset

func (x *CertificateResponse) Reset()

func (*CertificateResponse) SizeVT

func (m *CertificateResponse) SizeVT() (n int)

func (*CertificateResponse) String

func (x *CertificateResponse) String() string

func (*CertificateResponse) UnmarshalVT

func (m *CertificateResponse) UnmarshalVT(dAtA []byte) error

type SecurityServiceClient

type SecurityServiceClient interface {
	Certificate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
}

SecurityServiceClient is the client API for SecurityService 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 SecurityServiceServer

type SecurityServiceServer interface {
	Certificate(context.Context, *CertificateRequest) (*CertificateResponse, error)
	// contains filtered or unexported methods
}

SecurityServiceServer is the server API for SecurityService service. All implementations must embed UnimplementedSecurityServiceServer for forward compatibility

type UnimplementedSecurityServiceServer

type UnimplementedSecurityServiceServer struct {
}

UnimplementedSecurityServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSecurityServiceServer) Certificate

type UnsafeSecurityServiceServer

type UnsafeSecurityServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSecurityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecurityServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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