proto

package
v0.0.0-...-cfc7823 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 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:

va/proto/va.proto

It has these top-level messages:

IsCAAValidRequest
IsCAAValidResponse
IsSafeDomainRequest
IsDomainSafe
PerformValidationRequest
AuthzMeta
ValidationResult

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCAAServer

func RegisterCAAServer(s *grpc.Server, srv CAAServer)

func RegisterVAServer

func RegisterVAServer(s *grpc.Server, srv VAServer)

Types

type AuthzMeta

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 (*AuthzMeta) Descriptor

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

func (*AuthzMeta) GetId

func (m *AuthzMeta) GetId() string

func (*AuthzMeta) GetRegID

func (m *AuthzMeta) GetRegID() int64

func (*AuthzMeta) ProtoMessage

func (*AuthzMeta) ProtoMessage()

func (*AuthzMeta) Reset

func (m *AuthzMeta) Reset()

func (*AuthzMeta) String

func (m *AuthzMeta) String() string

type CAAClient

type CAAClient interface {
	IsCAAValid(ctx context.Context, in *IsCAAValidRequest, opts ...grpc.CallOption) (*IsCAAValidResponse, error)
}

func NewCAAClient

func NewCAAClient(cc *grpc.ClientConn) CAAClient

type CAAServer

type CAAServer interface {
	IsCAAValid(context.Context, *IsCAAValidRequest) (*IsCAAValidResponse, error)
}

type IsCAAValidRequest

type IsCAAValidRequest struct {
	// NOTE: Domain may be a name with a wildcard prefix (e.g. `*.example.com`)
	Domain           *string `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*IsCAAValidRequest) Descriptor

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

func (*IsCAAValidRequest) GetDomain

func (m *IsCAAValidRequest) GetDomain() string

func (*IsCAAValidRequest) ProtoMessage

func (*IsCAAValidRequest) ProtoMessage()

func (*IsCAAValidRequest) Reset

func (m *IsCAAValidRequest) Reset()

func (*IsCAAValidRequest) String

func (m *IsCAAValidRequest) String() string

type IsCAAValidResponse

type IsCAAValidResponse struct {
	Problem          *core.ProblemDetails `protobuf:"bytes,1,opt,name=problem" json:"problem,omitempty"`
	XXX_unrecognized []byte               `json:"-"`
}

If CAA is valid for the requested domain, the problem will be empty

func (*IsCAAValidResponse) Descriptor

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

func (*IsCAAValidResponse) GetProblem

func (m *IsCAAValidResponse) GetProblem() *core.ProblemDetails

func (*IsCAAValidResponse) ProtoMessage

func (*IsCAAValidResponse) ProtoMessage()

func (*IsCAAValidResponse) Reset

func (m *IsCAAValidResponse) Reset()

func (*IsCAAValidResponse) String

func (m *IsCAAValidResponse) String() string

type IsDomainSafe

type IsDomainSafe struct {
	IsSafe           *bool  `protobuf:"varint,1,opt,name=isSafe" json:"isSafe,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*IsDomainSafe) Descriptor

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

func (*IsDomainSafe) GetIsSafe

func (m *IsDomainSafe) GetIsSafe() bool

func (*IsDomainSafe) ProtoMessage

func (*IsDomainSafe) ProtoMessage()

func (*IsDomainSafe) Reset

func (m *IsDomainSafe) Reset()

func (*IsDomainSafe) String

func (m *IsDomainSafe) String() string

type IsSafeDomainRequest

type IsSafeDomainRequest struct {
	Domain           *string `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*IsSafeDomainRequest) Descriptor

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

func (*IsSafeDomainRequest) GetDomain

func (m *IsSafeDomainRequest) GetDomain() string

func (*IsSafeDomainRequest) ProtoMessage

func (*IsSafeDomainRequest) ProtoMessage()

func (*IsSafeDomainRequest) Reset

func (m *IsSafeDomainRequest) Reset()

func (*IsSafeDomainRequest) String

func (m *IsSafeDomainRequest) String() string

type PerformValidationRequest

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 (*PerformValidationRequest) Descriptor

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

func (*PerformValidationRequest) GetAuthz

func (m *PerformValidationRequest) GetAuthz() *AuthzMeta

func (*PerformValidationRequest) GetChallenge

func (m *PerformValidationRequest) GetChallenge() *core.Challenge

func (*PerformValidationRequest) GetDomain

func (m *PerformValidationRequest) GetDomain() string

func (*PerformValidationRequest) ProtoMessage

func (*PerformValidationRequest) ProtoMessage()

func (*PerformValidationRequest) Reset

func (m *PerformValidationRequest) Reset()

func (*PerformValidationRequest) String

func (m *PerformValidationRequest) String() string

type VAClient

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

func NewVAClient

func NewVAClient(cc *grpc.ClientConn) VAClient

type VAServer

type VAServer interface {
	IsSafeDomain(context.Context, *IsSafeDomainRequest) (*IsDomainSafe, error)
	PerformValidation(context.Context, *PerformValidationRequest) (*ValidationResult, error)
}

type ValidationResult

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 (*ValidationResult) Descriptor

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

func (*ValidationResult) GetProblems

func (m *ValidationResult) GetProblems() *core.ProblemDetails

func (*ValidationResult) GetRecords

func (m *ValidationResult) GetRecords() []*core.ValidationRecord

func (*ValidationResult) ProtoMessage

func (*ValidationResult) ProtoMessage()

func (*ValidationResult) Reset

func (m *ValidationResult) Reset()

func (*ValidationResult) String

func (m *ValidationResult) String() string

Jump to

Keyboard shortcuts

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