certificatepb

package
v1.58.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package certificatepb contains protobuf definitions for certificate signing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DRPCRegisterCertificates

func DRPCRegisterCertificates(mux drpc.Mux, impl DRPCCertificatesServer) error

Types

type DRPCCertificatesClient

type DRPCCertificatesClient interface {
	DRPCConn() drpc.Conn

	Sign(ctx context.Context, in *SigningRequest) (*SigningResponse, error)
}

func NewDRPCCertificatesClient

func NewDRPCCertificatesClient(cc drpc.Conn) DRPCCertificatesClient

type DRPCCertificatesDescription

type DRPCCertificatesDescription struct{}

func (DRPCCertificatesDescription) Method

func (DRPCCertificatesDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCCertificatesDescription) NumMethods

func (DRPCCertificatesDescription) NumMethods() int

type DRPCCertificatesServer

type DRPCCertificatesServer interface {
	Sign(context.Context, *SigningRequest) (*SigningResponse, error)
}

type DRPCCertificatesUnimplementedServer

type DRPCCertificatesUnimplementedServer struct{}

func (*DRPCCertificatesUnimplementedServer) Sign

type DRPCCertificates_SignStream

type DRPCCertificates_SignStream interface {
	drpc.Stream
	SendAndClose(*SigningResponse) error
}

type SigningRequest

type SigningRequest struct {
	AuthToken            string   `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"`
	Timestamp            int64    `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SigningRequest) Descriptor

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

func (*SigningRequest) GetAuthToken

func (m *SigningRequest) GetAuthToken() string

func (*SigningRequest) GetTimestamp

func (m *SigningRequest) GetTimestamp() int64

func (*SigningRequest) ProtoMessage

func (*SigningRequest) ProtoMessage()

func (*SigningRequest) Reset

func (m *SigningRequest) Reset()

func (*SigningRequest) String

func (m *SigningRequest) String() string

func (*SigningRequest) XXX_DiscardUnknown

func (m *SigningRequest) XXX_DiscardUnknown()

func (*SigningRequest) XXX_Marshal

func (m *SigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SigningRequest) XXX_Merge

func (m *SigningRequest) XXX_Merge(src proto.Message)

func (*SigningRequest) XXX_Size

func (m *SigningRequest) XXX_Size() int

func (*SigningRequest) XXX_Unmarshal

func (m *SigningRequest) XXX_Unmarshal(b []byte) error

type SigningResponse

type SigningResponse struct {
	Chain                [][]byte `protobuf:"bytes,1,rep,name=chain,proto3" json:"chain,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SigningResponse) Descriptor

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

func (*SigningResponse) GetChain

func (m *SigningResponse) GetChain() [][]byte

func (*SigningResponse) ProtoMessage

func (*SigningResponse) ProtoMessage()

func (*SigningResponse) Reset

func (m *SigningResponse) Reset()

func (*SigningResponse) String

func (m *SigningResponse) String() string

func (*SigningResponse) XXX_DiscardUnknown

func (m *SigningResponse) XXX_DiscardUnknown()

func (*SigningResponse) XXX_Marshal

func (m *SigningResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SigningResponse) XXX_Merge

func (m *SigningResponse) XXX_Merge(src proto.Message)

func (*SigningResponse) XXX_Size

func (m *SigningResponse) XXX_Size() int

func (*SigningResponse) XXX_Unmarshal

func (m *SigningResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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