boulder/va/proto/va.pb.go

402 lines
14 KiB
Go

// Code generated by protoc-gen-go.
// source: va/proto/va.proto
// DO NOT EDIT!
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
va/proto/va.proto
It has these top-level messages:
IsCAAValidRequest
IsCAAValidResponse
IsSafeDomainRequest
IsDomainSafe
PerformValidationRequest
AuthzMeta
ValidationResult
*/
package proto
import proto1 "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import core "github.com/letsencrypt/boulder/core/proto"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto1.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package
type IsCAAValidRequest struct {
Domain *string `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *IsCAAValidRequest) Reset() { *m = IsCAAValidRequest{} }
func (m *IsCAAValidRequest) String() string { return proto1.CompactTextString(m) }
func (*IsCAAValidRequest) ProtoMessage() {}
func (*IsCAAValidRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *IsCAAValidRequest) GetDomain() string {
if m != nil && m.Domain != nil {
return *m.Domain
}
return ""
}
// If CAA is valid for the requested domain, the problem will be empty
type IsCAAValidResponse struct {
Problem *core.ProblemDetails `protobuf:"bytes,1,opt,name=problem" json:"problem,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *IsCAAValidResponse) Reset() { *m = IsCAAValidResponse{} }
func (m *IsCAAValidResponse) String() string { return proto1.CompactTextString(m) }
func (*IsCAAValidResponse) ProtoMessage() {}
func (*IsCAAValidResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *IsCAAValidResponse) GetProblem() *core.ProblemDetails {
if m != nil {
return m.Problem
}
return nil
}
type IsSafeDomainRequest struct {
Domain *string `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *IsSafeDomainRequest) Reset() { *m = IsSafeDomainRequest{} }
func (m *IsSafeDomainRequest) String() string { return proto1.CompactTextString(m) }
func (*IsSafeDomainRequest) ProtoMessage() {}
func (*IsSafeDomainRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *IsSafeDomainRequest) GetDomain() string {
if m != nil && m.Domain != nil {
return *m.Domain
}
return ""
}
type IsDomainSafe struct {
IsSafe *bool `protobuf:"varint,1,opt,name=isSafe" json:"isSafe,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *IsDomainSafe) Reset() { *m = IsDomainSafe{} }
func (m *IsDomainSafe) String() string { return proto1.CompactTextString(m) }
func (*IsDomainSafe) ProtoMessage() {}
func (*IsDomainSafe) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *IsDomainSafe) GetIsSafe() bool {
if m != nil && m.IsSafe != nil {
return *m.IsSafe
}
return false
}
type PerformValidationRequest struct {
Domain *string `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
Challenge *core.Challenge `protobuf:"bytes,2,opt,name=challenge" json:"challenge,omitempty"`
Authz *AuthzMeta `protobuf:"bytes,3,opt,name=authz" json:"authz,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *PerformValidationRequest) Reset() { *m = PerformValidationRequest{} }
func (m *PerformValidationRequest) String() string { return proto1.CompactTextString(m) }
func (*PerformValidationRequest) ProtoMessage() {}
func (*PerformValidationRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *PerformValidationRequest) GetDomain() string {
if m != nil && m.Domain != nil {
return *m.Domain
}
return ""
}
func (m *PerformValidationRequest) GetChallenge() *core.Challenge {
if m != nil {
return m.Challenge
}
return nil
}
func (m *PerformValidationRequest) GetAuthz() *AuthzMeta {
if m != nil {
return m.Authz
}
return nil
}
type AuthzMeta struct {
Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
RegID *int64 `protobuf:"varint,2,opt,name=regID" json:"regID,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *AuthzMeta) Reset() { *m = AuthzMeta{} }
func (m *AuthzMeta) String() string { return proto1.CompactTextString(m) }
func (*AuthzMeta) ProtoMessage() {}
func (*AuthzMeta) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *AuthzMeta) GetId() string {
if m != nil && m.Id != nil {
return *m.Id
}
return ""
}
func (m *AuthzMeta) GetRegID() int64 {
if m != nil && m.RegID != nil {
return *m.RegID
}
return 0
}
type ValidationResult struct {
Records []*core.ValidationRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
Problems *core.ProblemDetails `protobuf:"bytes,2,opt,name=problems" json:"problems,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ValidationResult) Reset() { *m = ValidationResult{} }
func (m *ValidationResult) String() string { return proto1.CompactTextString(m) }
func (*ValidationResult) ProtoMessage() {}
func (*ValidationResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *ValidationResult) GetRecords() []*core.ValidationRecord {
if m != nil {
return m.Records
}
return nil
}
func (m *ValidationResult) GetProblems() *core.ProblemDetails {
if m != nil {
return m.Problems
}
return nil
}
func init() {
proto1.RegisterType((*IsCAAValidRequest)(nil), "va.IsCAAValidRequest")
proto1.RegisterType((*IsCAAValidResponse)(nil), "va.IsCAAValidResponse")
proto1.RegisterType((*IsSafeDomainRequest)(nil), "va.IsSafeDomainRequest")
proto1.RegisterType((*IsDomainSafe)(nil), "va.IsDomainSafe")
proto1.RegisterType((*PerformValidationRequest)(nil), "va.PerformValidationRequest")
proto1.RegisterType((*AuthzMeta)(nil), "va.AuthzMeta")
proto1.RegisterType((*ValidationResult)(nil), "va.ValidationResult")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for VA service
type VAClient interface {
IsSafeDomain(ctx context.Context, in *IsSafeDomainRequest, opts ...grpc.CallOption) (*IsDomainSafe, error)
PerformValidation(ctx context.Context, in *PerformValidationRequest, opts ...grpc.CallOption) (*ValidationResult, error)
}
type vAClient struct {
cc *grpc.ClientConn
}
func NewVAClient(cc *grpc.ClientConn) VAClient {
return &vAClient{cc}
}
func (c *vAClient) IsSafeDomain(ctx context.Context, in *IsSafeDomainRequest, opts ...grpc.CallOption) (*IsDomainSafe, error) {
out := new(IsDomainSafe)
err := grpc.Invoke(ctx, "/va.VA/IsSafeDomain", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *vAClient) PerformValidation(ctx context.Context, in *PerformValidationRequest, opts ...grpc.CallOption) (*ValidationResult, error) {
out := new(ValidationResult)
err := grpc.Invoke(ctx, "/va.VA/PerformValidation", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for VA service
type VAServer interface {
IsSafeDomain(context.Context, *IsSafeDomainRequest) (*IsDomainSafe, error)
PerformValidation(context.Context, *PerformValidationRequest) (*ValidationResult, error)
}
func RegisterVAServer(s *grpc.Server, srv VAServer) {
s.RegisterService(&_VA_serviceDesc, srv)
}
func _VA_IsSafeDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IsSafeDomainRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VAServer).IsSafeDomain(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/va.VA/IsSafeDomain",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VAServer).IsSafeDomain(ctx, req.(*IsSafeDomainRequest))
}
return interceptor(ctx, in, info, handler)
}
func _VA_PerformValidation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PerformValidationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VAServer).PerformValidation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/va.VA/PerformValidation",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VAServer).PerformValidation(ctx, req.(*PerformValidationRequest))
}
return interceptor(ctx, in, info, handler)
}
var _VA_serviceDesc = grpc.ServiceDesc{
ServiceName: "va.VA",
HandlerType: (*VAServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "IsSafeDomain",
Handler: _VA_IsSafeDomain_Handler,
},
{
MethodName: "PerformValidation",
Handler: _VA_PerformValidation_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "va/proto/va.proto",
}
// Client API for CAA service
type CAAClient interface {
IsCAAValid(ctx context.Context, in *IsCAAValidRequest, opts ...grpc.CallOption) (*IsCAAValidResponse, error)
}
type cAAClient struct {
cc *grpc.ClientConn
}
func NewCAAClient(cc *grpc.ClientConn) CAAClient {
return &cAAClient{cc}
}
func (c *cAAClient) IsCAAValid(ctx context.Context, in *IsCAAValidRequest, opts ...grpc.CallOption) (*IsCAAValidResponse, error) {
out := new(IsCAAValidResponse)
err := grpc.Invoke(ctx, "/va.CAA/IsCAAValid", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for CAA service
type CAAServer interface {
IsCAAValid(context.Context, *IsCAAValidRequest) (*IsCAAValidResponse, error)
}
func RegisterCAAServer(s *grpc.Server, srv CAAServer) {
s.RegisterService(&_CAA_serviceDesc, srv)
}
func _CAA_IsCAAValid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IsCAAValidRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CAAServer).IsCAAValid(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/va.CAA/IsCAAValid",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CAAServer).IsCAAValid(ctx, req.(*IsCAAValidRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CAA_serviceDesc = grpc.ServiceDesc{
ServiceName: "va.CAA",
HandlerType: (*CAAServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "IsCAAValid",
Handler: _CAA_IsCAAValid_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "va/proto/va.proto",
}
func init() { proto1.RegisterFile("va/proto/va.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 368 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xc1, 0x8e, 0xda, 0x30,
0x14, 0x24, 0x89, 0x28, 0xf0, 0x28, 0x2d, 0xbc, 0x02, 0x8d, 0x22, 0x54, 0x21, 0x57, 0x50, 0x4e,
0x41, 0xca, 0x15, 0xf5, 0x90, 0x92, 0x4b, 0x0e, 0x95, 0x50, 0x2b, 0x71, 0xd8, 0x9b, 0x37, 0x31,
0x10, 0x29, 0x60, 0xd6, 0x0e, 0x39, 0xec, 0x37, 0xec, 0x47, 0xaf, 0x6c, 0x67, 0x17, 0xc4, 0xc2,
0xed, 0xe5, 0xcd, 0x64, 0xde, 0x78, 0x34, 0xd0, 0x2b, 0xe9, 0xfc, 0x28, 0x78, 0xc1, 0xe7, 0x25,
0xf5, 0xf5, 0x80, 0x76, 0x49, 0xbd, 0x41, 0xc2, 0x05, 0xab, 0x00, 0x35, 0x1a, 0x88, 0xfc, 0x84,
0x5e, 0x2c, 0x97, 0x61, 0xb8, 0xa6, 0x79, 0x96, 0xfe, 0x63, 0x4f, 0x27, 0x26, 0x0b, 0xfc, 0x02,
0x9f, 0x52, 0xbe, 0xa7, 0xd9, 0xc1, 0xb5, 0xc6, 0xd6, 0xac, 0x45, 0x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