proto

package
v0.0.0-...-bd045b9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

ca/proto/ca.proto

It has these top-level messages:

IssueCertificateRequest
GenerateOCSPRequest
OCSPResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCertificateAuthorityServer

func RegisterCertificateAuthorityServer(s *grpc.Server, srv CertificateAuthorityServer)

func RegisterOCSPGeneratorServer

func RegisterOCSPGeneratorServer(s *grpc.Server, srv OCSPGeneratorServer)

Types

type CertificateAuthorityClient

type CertificateAuthorityClient interface {
	IssueCertificate(ctx context.Context, in *IssueCertificateRequest, opts ...grpc.CallOption) (*core.Certificate, error)
}

func NewCertificateAuthorityClient

func NewCertificateAuthorityClient(cc *grpc.ClientConn) CertificateAuthorityClient

type CertificateAuthorityServer

type CertificateAuthorityServer interface {
	IssueCertificate(context.Context, *IssueCertificateRequest) (*core.Certificate, error)
}

type GenerateOCSPRequest

type GenerateOCSPRequest struct {
	CertDER          []byte  `protobuf:"bytes,1,opt,name=certDER" json:"certDER,omitempty"`
	Status           *string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
	Reason           *int32  `protobuf:"varint,3,opt,name=reason" json:"reason,omitempty"`
	RevokedAt        *int64  `protobuf:"varint,4,opt,name=revokedAt" json:"revokedAt,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*GenerateOCSPRequest) Descriptor

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

func (*GenerateOCSPRequest) GetCertDER

func (m *GenerateOCSPRequest) GetCertDER() []byte

func (*GenerateOCSPRequest) GetReason

func (m *GenerateOCSPRequest) GetReason() int32

func (*GenerateOCSPRequest) GetRevokedAt

func (m *GenerateOCSPRequest) GetRevokedAt() int64

func (*GenerateOCSPRequest) GetStatus

func (m *GenerateOCSPRequest) GetStatus() string

func (*GenerateOCSPRequest) ProtoMessage

func (*GenerateOCSPRequest) ProtoMessage()

func (*GenerateOCSPRequest) Reset

func (m *GenerateOCSPRequest) Reset()

func (*GenerateOCSPRequest) String

func (m *GenerateOCSPRequest) String() string

type IssueCertificateRequest

type IssueCertificateRequest struct {
	Csr              []byte `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"`
	RegistrationID   *int64 `protobuf:"varint,2,opt,name=registrationID" json:"registrationID,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*IssueCertificateRequest) Descriptor

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

func (*IssueCertificateRequest) GetCsr

func (m *IssueCertificateRequest) GetCsr() []byte

func (*IssueCertificateRequest) GetRegistrationID

func (m *IssueCertificateRequest) GetRegistrationID() int64

func (*IssueCertificateRequest) ProtoMessage

func (*IssueCertificateRequest) ProtoMessage()

func (*IssueCertificateRequest) Reset

func (m *IssueCertificateRequest) Reset()

func (*IssueCertificateRequest) String

func (m *IssueCertificateRequest) String() string

type OCSPGeneratorClient

type OCSPGeneratorClient interface {
	GenerateOCSP(ctx context.Context, in *GenerateOCSPRequest, opts ...grpc.CallOption) (*OCSPResponse, error)
}

func NewOCSPGeneratorClient

func NewOCSPGeneratorClient(cc *grpc.ClientConn) OCSPGeneratorClient

type OCSPGeneratorServer

type OCSPGeneratorServer interface {
	GenerateOCSP(context.Context, *GenerateOCSPRequest) (*OCSPResponse, error)
}

type OCSPResponse

type OCSPResponse struct {
	Response         []byte `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*OCSPResponse) Descriptor

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

func (*OCSPResponse) GetResponse

func (m *OCSPResponse) GetResponse() []byte

func (*OCSPResponse) ProtoMessage

func (*OCSPResponse) ProtoMessage()

func (*OCSPResponse) Reset

func (m *OCSPResponse) Reset()

func (*OCSPResponse) String

func (m *OCSPResponse) String() string

Jump to

Keyboard shortcuts

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